sys_dict_data.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package model
  2. import (
  3. model2 "Medical_OAuth/common/model"
  4. )
  5. type SysDictData struct {
  6. DictCode int `json:"dictCode" gorm:"primaryKey;column:dict_code;autoIncrement;comment:主键编码"`
  7. DictSort int `json:"dictSort" gorm:"size:20;comment:DictSort"`
  8. DictLabel string `json:"dictLabel" gorm:"size:128;comment:DictLabel"`
  9. DictValue string `json:"dictValue" gorm:"size:255;comment:DictValue"`
  10. DictType string `json:"dictType" gorm:"size:64;comment:DictType"`
  11. CssClass string `json:"cssClass" gorm:"size:128;comment:CssClass"`
  12. ListClass string `json:"listClass" gorm:"size:128;comment:ListClass"`
  13. IsDefault string `json:"isDefault" gorm:"size:8;comment:IsDefault"`
  14. Status int `json:"status" gorm:"size:4;not null;default:2;comment:状态"` // 1-停用 2-正常
  15. Default string `json:"default" gorm:"size:8;comment:Default"`
  16. Remark string `json:"remark" gorm:"size:255;comment:Remark"`
  17. model2.ControlBy
  18. model2.ModelTime
  19. }
  20. func (SysDictData) TableName() string {
  21. return "sys_dict_data"
  22. }
  23. func (e *SysDictData) Generate() model2.ActiveRecord {
  24. o := *e
  25. return &o
  26. }
  27. func (e *SysDictData) GetId() interface{} {
  28. return e.DictCode
  29. }