sys_dictionary_detail.go 1.1 KB

123456789101112131415161718192021
  1. // 自动生成模板SysDictionaryDetail
  2. package system
  3. import (
  4. "server/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 string `json:"value" form:"value" gorm:"column:value;comment:字典值"` // 字典值
  11. Extend string `json:"extend" form:"extend" gorm:"column:extend;comment:扩展值"` // 扩展值
  12. Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"` // 启用状态
  13. Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"` // 排序标记
  14. SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id;comment:关联标记"` // 关联标记
  15. }
  16. func (SysDictionaryDetail) TableName() string {
  17. return "sys_dictionary_details"
  18. }