package entity // DtHelpCategory 帮助分类表 type DtHelpCategory struct { MysqlBaseModel Name string `json:"name" gorm:"type:varchar(64);comment:分类名称"` NameVi string `json:"nameVi" gorm:"type:varchar(64);comment:分类名称(越南语)"` Icon string `json:"icon" gorm:"type:varchar(255);comment:分类图标"` Status int8 `json:"status" gorm:"default:1;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"default:0;comment:排序"` } func (*DtHelpCategory) TableName() string { return "dt_help_category" } func (*DtHelpCategory) Comment() string { return "帮助分类表" } func NewDtHelpCategory() *DtHelpCategory { return &DtHelpCategory{} } // DtHelp 帮助文档表 type DtHelp struct { MysqlBaseModel CategoryId int64 `json:"categoryId" gorm:"index:idx_category_id;comment:分类ID"` Title string `json:"title" gorm:"type:varchar(128);comment:标题"` TitleVi string `json:"titleVi" gorm:"type:varchar(128);comment:标题(越南语)"` Content string `json:"content" gorm:"type:text;comment:内容"` ContentVi string `json:"contentVi" gorm:"type:text;comment:内容(越南语)"` ViewCount int `json:"viewCount" gorm:"default:0;comment:浏览次数"` Status int8 `json:"status" gorm:"default:1;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"default:0;comment:排序"` } func (*DtHelp) TableName() string { return "dt_help" } func (*DtHelp) Comment() string { return "帮助文档表" } func NewDtHelp() *DtHelp { return &DtHelp{} }