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