Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datatypes.JSONSlice not found #245

Open
AzraelJi opened this issue Mar 5, 2024 · 2 comments
Open

datatypes.JSONSlice not found #245

AzraelJi opened this issue Mar 5, 2024 · 2 comments
Assignees

Comments

@AzraelJi
Copy link

AzraelJi commented Mar 5, 2024

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
Copy link

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

@AzraelJi
Copy link
Author

gorm.io/gorm v1.25.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants