gorm 如何对字段进行comment注释?
type User struct {
Model
Name string `gorm:"type:char(30);comment:'姓名'"`
}
[Haima的博客]
http://chuna2.787528.xyz/haima/
type User struct {
Model
Name string `gorm:"type:char(30);comment:'姓名'"`
}