go-gorm/datatypes

datatypes.JSONSlice not found

Opened this issue · 2 comments

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

Please share some more details like version info of gorm.io/datatypes, the error details, etc.

gorm.io/gorm v1.25.2