随笔分类 -  Goland

摘要:一. model type User struct { Name `gorm:"column:name;type:varchar(255);` Title `gorm:"column:title;type:varchar(255);` } 二. 查询 u := query.User cond := 阅读全文
posted @ 2025-12-28 18:20 _Q 阅读(17) 评论(0) 推荐(0)
摘要:一. 官方:https://github.com/go-gorm/datatypes 二. model type User struct { Name `gorm:"column:name;type:varchar(255);` Attributes datatypes.JSON `gorm:"co 阅读全文
posted @ 2025-01-19 22:51 _Q 阅读(577) 评论(0) 推荐(0)