mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-10 16:38:47 +08:00
[系统用户]实现系统用户的增删改
This commit is contained in:
8
pkg/systemconfigs/admin_module.go
Normal file
8
pkg/systemconfigs/admin_module.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package systemconfigs
|
||||
|
||||
// 用户模块权限
|
||||
type AdminModule struct {
|
||||
Code string `json:"code"` // 模块代号
|
||||
AllowAll bool `json:"allowAll"` // 允许所有的动作
|
||||
Actions []string `json:"actions"` // 只允许的动作
|
||||
}
|
||||
@@ -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"` // 是否允许再次修改配置
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user