package daytask // DtNotice 公告表 type DtNotice struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:公告ID"` Title string `json:"title" gorm:"column:title;type:varchar(128);not null;comment:标题"` TitleVi string `json:"titleVi" gorm:"column:title_vi;type:varchar(128);comment:标题(越南语)"` Content string `json:"content" gorm:"column:content;type:text;comment:内容"` ContentVi string `json:"contentVi" gorm:"column:content_vi;type:text;comment:内容(越南语)"` Type int8 `json:"type" gorm:"column:type;type:tinyint;default:1;index:idx_type;comment:类型: 1=系统公告 2=活动公告"` IsPopup int8 `json:"isPopup" gorm:"column:is_popup;type:tinyint;default:0;comment:是否弹窗: 0=否 1=是"` IsTop int8 `json:"isTop" gorm:"column:is_top;type:tinyint;default:0;comment:是否置顶: 0=否 1=是"` StartTime int64 `json:"startTime" gorm:"column:start_time;type:bigint;comment:开始时间"` EndTime int64 `json:"endTime" gorm:"column:end_time;type:bigint;comment:结束时间"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;index:idx_status;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"column:sort;type:int;default:0;comment:排序"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtNotice) TableName() string { return "dt_notice" } func NewDtNotice() *DtNotice { return &DtNotice{} } // DtBanner Banner表 type DtBanner struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:BannerID"` Title string `json:"title" gorm:"column:title;type:varchar(128);not null;comment:标题"` Image string `json:"image" gorm:"column:image;type:varchar(255);not null;comment:图片"` ImageVi string `json:"imageVi" gorm:"column:image_vi;type:varchar(255);comment:图片(越南语版)"` LinkType int8 `json:"linkType" gorm:"column:link_type;type:tinyint;default:0;comment:链接类型: 0=无 1=内部页面 2=外部链接 3=公告详情"` LinkUrl string `json:"linkUrl" gorm:"column:link_url;type:varchar(512);comment:链接地址"` Position string `json:"position" gorm:"column:position;type:varchar(32);default:home;index:idx_position;comment:位置: home/task/activity"` StartTime int64 `json:"startTime" gorm:"column:start_time;type:bigint;comment:开始时间"` EndTime int64 `json:"endTime" gorm:"column:end_time;type:bigint;comment:结束时间"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;index:idx_status;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"column:sort;type:int;default:0;comment:排序"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtBanner) TableName() string { return "dt_banner" } func NewDtBanner() *DtBanner { return &DtBanner{} } // DtHelpCategory 帮助分类表 type DtHelpCategory struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:分类ID"` Name string `json:"name" gorm:"column:name;type:varchar(64);not null;comment:分类名称"` NameVi string `json:"nameVi" gorm:"column:name_vi;type:varchar(64);comment:分类名称(越南语)"` Icon string `json:"icon" gorm:"column:icon;type:varchar(255);comment:图标"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"column:sort;type:int;default:0;comment:排序"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtHelpCategory) TableName() string { return "dt_help_category" } func NewDtHelpCategory() *DtHelpCategory { return &DtHelpCategory{} } // DtHelp 帮助中心表 type DtHelp struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:帮助ID"` CategoryId int64 `json:"categoryId" gorm:"column:category_id;type:bigint;default:0;index:idx_category_id;comment:分类ID"` Title string `json:"title" gorm:"column:title;type:varchar(128);not null;comment:标题"` TitleVi string `json:"titleVi" gorm:"column:title_vi;type:varchar(128);comment:标题(越南语)"` Content string `json:"content" gorm:"column:content;type:text;comment:内容"` ContentVi string `json:"contentVi" gorm:"column:content_vi;type:text;comment:内容(越南语)"` ViewCount int `json:"viewCount" gorm:"column:view_count;type:int;default:0;comment:浏览次数"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"column:sort;type:int;default:0;comment:排序"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtHelp) TableName() string { return "dt_help" } func NewDtHelp() *DtHelp { return &DtHelp{} } // DtCustomerService 客服配置表 type DtCustomerService struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:ID"` Name string `json:"name" gorm:"column:name;type:varchar(64);not null;comment:客服名称"` Type string `json:"type" gorm:"column:type;type:varchar(32);not null;comment:类型: telegram/zalo/whatsapp/link"` Account string `json:"account" gorm:"column:account;type:varchar(128);not null;comment:账号/链接"` Qrcode string `json:"qrcode" gorm:"column:qrcode;type:varchar(255);comment:二维码"` WorkTime string `json:"workTime" gorm:"column:work_time;type:varchar(64);comment:工作时间"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;comment:状态: 0=禁用 1=启用"` Sort int `json:"sort" gorm:"column:sort;type:int;default:0;comment:排序"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtCustomerService) TableName() string { return "dt_customer_service" } func NewDtCustomerService() *DtCustomerService { return &DtCustomerService{} }