24 lines
1.4 KiB
Go
24 lines
1.4 KiB
Go
package models
|
||
|
||
import "time"
|
||
|
||
// PlatformUpgradeNotice 平台更新通知记录表:yz_platform_upgrade_notice
|
||
// 用于展示平台近期更新内容,支持按时间排序展示
|
||
type PlatformUpgradeNotice struct {
|
||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"` // 租户 ID,0 表示全局
|
||
UpdateDate string `orm:"column(update_date);size(20)" json:"update_date"` // 更新日期 YYYY-MM-DD
|
||
Title string `orm:"column(title);size(255)" json:"title"` // 更新标题
|
||
Content string `orm:"column(content);type(text)" json:"content"` // 更新内容详情
|
||
Sort int `orm:"column(sort);default(0)" json:"sort"` // 排序权重,越大越靠前
|
||
Status int8 `orm:"column(status);default(1)" json:"status"` // 状态:0-隐藏 1-显示
|
||
CreateUserID string `orm:"column(create_user_id);size(64)" json:"create_user_id"`
|
||
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
||
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"update_time"`
|
||
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
||
}
|
||
|
||
func (m *PlatformUpgradeNotice) TableName() string {
|
||
return "yz_platform_upgrade_notice"
|
||
}
|