sys_dictionary_detail.go 975 B

1234567891011121314151617181920
  1. // 自动生成模板SysDictionaryDetail
  2. package system
  3. import (
  4. "lc-fangdaosha/global"
  5. )
  6. // 如果含有time.Time 请自行import time包
  7. type SysDictionaryDetail struct {
  8. global.GVA_MODEL
  9. Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"` // 展示值
  10. Value int `json:"value" form:"value" gorm:"column:value;comment:字典值"` // 字典值
  11. Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"` // 启用状态
  12. Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"` // 排序标记
  13. SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:关联标记"` // 关联标记
  14. }
  15. func (SysDictionaryDetail) TableName() string {
  16. return "sys_dictionary_details"
  17. }