sys_dictionary.go 870 B

1234567891011121314151617181920
  1. // 自动生成模板SysDictionary
  2. package system
  3. import (
  4. "lcfns/global"
  5. )
  6. // 如果含有time.Time 请自行import time包
  7. type SysDictionary struct {
  8. global.GVA_MODEL
  9. Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"` // 字典名(中)
  10. Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"` // 字典名(英)
  11. Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"` // 状态
  12. Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:描述"` // 描述
  13. SysDictionaryDetails []SysDictionaryDetail `json:"sysDictionaryDetails" form:"sysDictionaryDetails"`
  14. }
  15. func (SysDictionary) TableName() string {
  16. return "sys_dictionaries"
  17. }