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

@@ -18,11 +18,11 @@ type SysDictionaryDetail struct {
CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3)" json:"deleted_at"`
Label string `gorm:"column:label;type:varchar(191)" json:"label"` // 展示值
Value int64 `gorm:"column:value;type:bigint(20)" json:"value"` // 字典值
Status bool `gorm:"column:status;type:tinyint(1)" json:"status"` // 启用状态
Sort int64 `gorm:"column:sort;type:bigint(20)" json:"sort"` // 排序标记
SysDictionaryID int64 `gorm:"column:sys_dictionary_id;type:bigint(20)" json:"sys_dictionary_id"` // 关联标记
Label string `gorm:"column:label;type:varchar(191)" json:"label"` // 展示值
Value string `gorm:"column:value;type:varchar(191)" json:"value"` // 字典值
Status bool `gorm:"column:status;type:tinyint(1)" json:"status"` // 启用状态
Weight int64 `gorm:"column:weight;type:bigint(20)" json:"weight"` // 排序权重
}
// TableName SysDictionaryDetail's table name