package models import "time" // CmsFrontendTemplate 官网模板登记 yz_cms_frontend_template // 由 platform 端登记管理(上传/编辑/启停),租户端只读选用。 type CmsFrontendTemplate struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Code string `orm:"column(code);size(50)" json:"code"` Name string `orm:"column(name);size(100)" json:"name"` Description string `orm:"column(description);size(500);default()" json:"description"` Preview string `orm:"column(preview);size(500);default()" json:"preview"` Status int8 `orm:"column(status);default(1)" json:"status"` Sort int `orm:"column(sort);default(0)" json:"sort"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *CmsFrontendTemplate) TableName() string { return "yz_cms_frontend_template" } // CmsFrontendBanner 官网 Banner yz_cms_frontend_banner(按租户隔离) type CmsFrontendBanner struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Tid uint64 `orm:"column(tid);default(0)" json:"tid"` Title string `orm:"column(title);size(255)" json:"title"` Desc string `orm:"column(desc);size(500);default()" json:"desc"` Image string `orm:"column(image);size(500);default()" json:"image"` Url string `orm:"column(url);size(500);default()" json:"url"` Sort int `orm:"column(sort);default(0)" json:"sort"` Status int8 `orm:"column(status);default(1)" json:"status"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *CmsFrontendBanner) TableName() string { return "yz_cms_frontend_banner" } // CmsFrontendFriendlink 官网友情链接 yz_cms_frontend_friendlink(按租户隔离) type CmsFrontendFriendlink struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Tid uint64 `orm:"column(tid);default(0)" json:"tid"` LinkName string `orm:"column(link_name);size(100)" json:"link_name"` LinkUrl string `orm:"column(link_url);size(500);default()" json:"link_url"` LinkLogo string `orm:"column(link_logo);size(500);default()" json:"link_logo"` Description string `orm:"column(description);size(500);default()" json:"description"` Sort int `orm:"column(sort);default(0)" json:"sort"` Status int8 `orm:"column(status);default(1)" json:"status"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *CmsFrontendFriendlink) TableName() string { return "yz_cms_frontend_friendlink" } // CmsFrontendOnepage 官网单页 yz_cms_frontend_onepage(按租户隔离,path 租户内唯一) type CmsFrontendOnepage struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Tid uint64 `orm:"column(tid);default(0)" json:"tid"` Title string `orm:"column(title);size(255)" json:"title"` Path string `orm:"column(path);size(100)" json:"path"` Content string `orm:"column(content);type(longtext);null" json:"content"` Sort int `orm:"column(sort);default(0)" json:"sort"` Status int8 `orm:"column(status);default(1)" json:"status"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *CmsFrontendOnepage) TableName() string { return "yz_cms_frontend_onepage" }