Test serializer tag

This commit is contained in:
Jinzhu 2022-02-15 22:50:31 +08:00
parent 379ce9f27b
commit 992042b46e

View File

@ -16,7 +16,7 @@ import (
type SerializerStruct struct { type SerializerStruct struct {
gorm.Model gorm.Model
Name []byte `gorm:"json"` Name []byte `gorm:"json"`
Roles Roles `gorm:"json"` Roles Roles `gorm:"serializer:json"`
EncryptedString EncryptedString EncryptedString EncryptedString
} }