package model import ( model2 "Medical_OAuth/common/model" ) type SysDictData struct { DictCode int `json:"dictCode" gorm:"primaryKey;column:dict_code;autoIncrement;comment:主键编码"` DictSort int `json:"dictSort" gorm:"size:20;comment:DictSort"` DictLabel string `json:"dictLabel" gorm:"size:128;comment:DictLabel"` DictValue string `json:"dictValue" gorm:"size:255;comment:DictValue"` DictType string `json:"dictType" gorm:"size:64;comment:DictType"` CssClass string `json:"cssClass" gorm:"size:128;comment:CssClass"` ListClass string `json:"listClass" gorm:"size:128;comment:ListClass"` IsDefault string `json:"isDefault" gorm:"size:8;comment:IsDefault"` Status int `json:"status" gorm:"size:4;not null;default:2;comment:状态"` // 1-停用 2-正常 Default string `json:"default" gorm:"size:8;comment:Default"` Remark string `json:"remark" gorm:"size:255;comment:Remark"` model2.ControlBy model2.ModelTime } func (SysDictData) TableName() string { return "sys_dict_data" } func (e *SysDictData) Generate() model2.ActiveRecord { o := *e return &o } func (e *SysDictData) GetId() interface{} { return e.DictCode }