Open AzraelJi opened 4 months ago
type Rule struct { ID uint64 gorm:"column:id" db:"id" Content datatypes.JSONSlice[Tag] gorm:"column:content" type:"json" Version int64 gorm:"column:version" db:"version" // 版本号,时间戳毫秒 CreatedAt time.Time gorm:"column:created_at" db:"created_at" UpdatedAt time.Time gorm:"column:updated_at" db:"updated_at" DeletedAt gorm.DeletedAt gorm:"column:deleted_at" db:"deleted_at" }
gorm:"column:id" db:"id"
gorm:"column:content" type:"json"
gorm:"column:version" db:"version"
gorm:"column:created_at" db:"created_at"
gorm:"column:updated_at" db:"updated_at"
gorm:"column:deleted_at" db:"deleted_at"
JSONSlice is error
Please share some more details like version info of gorm.io/datatypes, the error details, etc.
gorm.io/datatypes
gorm.io/gorm v1.25.2
type Rule struct { ID uint64
gorm:"column:id" db:"id"
Content datatypes.JSONSlice[Tag]gorm:"column:content" type:"json"
Version int64
gorm:"column:version" db:"version"
// 版本号,时间戳毫秒 CreatedAt time.Timegorm:"column:created_at" db:"created_at"
UpdatedAt time.Timegorm:"column:updated_at" db:"updated_at"
DeletedAt gorm.DeletedAtgorm:"column:deleted_at" db:"deleted_at"
}JSONSlice is error