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