增加字典全局权限

This commit is contained in:
2025-11-11 20:25:32 +08:00
parent 8c5859bad5
commit ad4cc5408d
7 changed files with 109 additions and 23 deletions
+1
View File
@@ -12,6 +12,7 @@ type DictType struct {
DictName string `orm:"column(dict_name);size(100)" json:"dict_name"` // 字典名称
ParentId int `orm:"column(parent_id);default(0)" json:"parent_id"` // 父级字典ID(支持多级)
Status int8 `orm:"column(status);default(1)" json:"status"` // 0-禁用,1-启用
IsGlobal int8 `orm:"column(is_global);default(0)" json:"is_global"` // 0-租户私有,1-全局展示
Sort int `orm:"column(sort);default(0)" json:"sort"` // 排序号
Remark string `orm:"column(remark);size(500);null" json:"remark"` // 备注
CreateBy string `orm:"column(create_by);size(50);null" json:"create_by"`