package model import "shop-api/global" type SysBrochure struct { // 单页 协议、条款等 global.BASE_ID Title string `gorm:"size:10" json:"title"` // 标题 Type string `gorm:"size:30" json:"type"` // 类型 Content string `gorm:"type:mediumtext" json:"content"` // 内容 Src string `gorm:"size:500" json:"src"` // 静态页面html global.TIME_MODEL } func (SysBrochure) TableName() string { return "sys_brochure" }