package models import "time" // PlatformDict 平台端数据字典(字典列表): yz_platform_dict // 表结构见 docs/sql/create_dict.sql(人工执行建表,代码不做自动建表)。 type PlatformDict struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` DictName string `orm:"column(dict_name);size(100)" json:"dict_name"` DictCode string `orm:"column(dict_code);size(100)" json:"dict_code"` Remark string `orm:"column(remark);size(500)" json:"remark"` Sort int `orm:"column(sort);default(0)" json:"sort"` Status int8 `orm:"column(status);default(1)" json:"status"` CreateUserID string `orm:"column(create_user_id);size(64)" json:"create_user_id"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" 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 *PlatformDict) TableName() string { return "yz_platform_dict" } // PlatformDictItem 平台端字典项: yz_platform_dict_item type PlatformDictItem struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` DictID uint64 `orm:"column(dict_id);default(0)" json:"dict_id"` ItemLabel string `orm:"column(item_label);size(100)" json:"item_label"` ItemValue string `orm:"column(item_value);size(100)" json:"item_value"` TagType string `orm:"column(tag_type);size(20)" json:"tag_type"` Sort int `orm:"column(sort);default(0)" json:"sort"` Status int8 `orm:"column(status);default(1)" json:"status"` IsDefault int8 `orm:"column(is_default);default(0)" json:"is_default"` Remark string `orm:"column(remark);size(500)" json:"remark"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" 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 *PlatformDictItem) TableName() string { return "yz_platform_dict_item" }