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

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