[系统用户]实现系统用户的增删改

This commit is contained in:
GoEdgeLab
2020-12-02 23:11:54 +08:00
parent 431dccfde8
commit abc503def2
10 changed files with 1593 additions and 183 deletions

View File

@@ -0,0 +1,8 @@
package systemconfigs
// 用户模块权限
type AdminModule struct {
Code string `json:"code"` // 模块代号
AllowAll bool `json:"allowAll"` // 允许所有的动作
Actions []string `json:"actions"` // 只允许的动作
}

View File

@@ -11,7 +11,8 @@ func DefaultLogConfig() *LogConfig {
Count: 1,
Unit: shared.SizeCapacityUnitGB,
},
Days: 30,
Days: 30,
CanChange: true,
}
}
@@ -21,4 +22,5 @@ type LogConfig struct {
CanClean bool `json:"canClean"` // 是否可清理
Capacity *shared.SizeCapacity `json:"capacity"` // 容量
Days int `json:"days"` // 自动保存天数
CanChange bool `json:"canChange"` // 是否允许再次修改配置
}