gorm 如何对字段进行comment注释?

type User struct {
    Model
    Name string `gorm:"type:char(30);comment:'姓名'"`
}
posted @ 2020-05-08 11:21  HaimaBlog  阅读(4320)  评论(0)    收藏  举报