support user role attachment

This commit is contained in:
yanghao05
2023-02-05 13:30:43 +08:00
parent 285e1f1c51
commit ee631b9714
17 changed files with 518 additions and 50 deletions

View File

@@ -40,10 +40,10 @@ func (m *Migration20230131_165134CreateSysDictionary) table() interface{} {
type SysDictionary struct {
gorm.Model
Name string `gorm:"column:name;comment:字典名(中)"` // 字典名(中)
Type string `gorm:"column:type;comment:字典名(英)"` // 字典名(英)
Status *bool `gorm:"column:status;comment:状态"` // 状态
Desc string `gorm:"column:desc;comment:描述"` // 描述
Name string `gorm:"comment:字典名(中)"` // 字典名(中)
Alias string `gorm:"comment:字典名(英)"` // 字典名(英)
Status bool `gorm:"comment:状态"` // 状态
Description string `gorm:"comment:描述"` // 描述
}
return SysDictionary{}

View File

@@ -40,11 +40,11 @@ func (m *Migration20230131_165218CreateSysDictionaryDetail) table() interface{}
type SysDictionaryDetail struct {
gorm.Model
Label string `gorm:"column:label;comment:展示值"` // 展示值
Value int `gorm:"column:value;comment:字典值"` // 字典值
Status *bool `gorm:"column:status;comment:启用状态"` // 启用状态
Sort int `gorm:"column:sort;comment:排序标记"` // 排序标记
SysDictionaryID int `gorm:"column:sys_dictionary_id;comment:关联标记"` // 关联标记
SysDictionaryID int `gorm:"comment:关联标记"`
Label string `gorm:"comment:展示值"`
Value string `gorm:"comment:字典值"`
Status bool `gorm:"comment:启用状态"`
Weight int `gorm:"comment:排序权重"`
}
return SysDictionaryDetail{}