2020-06-24 12:41:36 +00:00
|
|
|
// 自动生成模板SysDictionary
|
2021-07-16 12:08:11 +00:00
|
|
|
package system
|
2020-06-24 12:41:36 +00:00
|
|
|
|
|
|
|
|
import (
|
2021-08-23 15:13:24 +00:00
|
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
2020-06-24 12:41:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 如果含有time.Time 请自行import time包
|
|
|
|
|
type SysDictionary struct {
|
2020-10-29 03:23:34 +00:00
|
|
|
global.GVA_MODEL
|
2025-10-19 05:27:48 +00:00
|
|
|
Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"` // 字典名(中)
|
|
|
|
|
Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"` // 字典名(英)
|
|
|
|
|
Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态"` // 状态
|
|
|
|
|
Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:描述"` // 描述
|
|
|
|
|
ParentID *uint `json:"parentID" form:"parentID" gorm:"column:parent_id;comment:父级字典ID"` // 父级字典ID
|
|
|
|
|
Children []SysDictionary `json:"children" gorm:"foreignKey:ParentID"` // 子字典
|
2020-06-24 12:41:36 +00:00
|
|
|
SysDictionaryDetails []SysDictionaryDetail `json:"sysDictionaryDetails" form:"sysDictionaryDetails"`
|
|
|
|
|
}
|
2022-04-12 09:57:11 +00:00
|
|
|
|
|
|
|
|
func (SysDictionary) TableName() string {
|
|
|
|
|
return "sys_dictionaries"
|
|
|
|
|
}
|