datatypes.JSONSlice not found
Opened this issue · 2 comments
AzraelJi commented
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"
}
JSONSlice is error
Rezwanul-Haque commented
Please share some more details like version info of gorm.io/datatypes
, the error details, etc.
AzraelJi commented
gorm.io/gorm v1.25.2