mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
优化脚本代码配置
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package systemconfigs
|
||||
|
||||
// 用户模块权限
|
||||
// AdminModule 管理用户模块权限
|
||||
type AdminModule struct {
|
||||
Code string `json:"code"` // 模块代号
|
||||
AllowAll bool `json:"allowAll"` // 允许所有的动作
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package systemconfigs
|
||||
|
||||
// 数据库相关配置
|
||||
// DatabaseConfig 数据库相关配置
|
||||
type DatabaseConfig struct {
|
||||
ServerAccessLog struct {
|
||||
Clean struct {
|
||||
|
||||
@@ -2,7 +2,7 @@ package systemconfigs
|
||||
|
||||
import "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
|
||||
|
||||
// 默认日志配置
|
||||
// DefaultLogConfig 默认日志配置
|
||||
func DefaultLogConfig() *LogConfig {
|
||||
return &LogConfig{
|
||||
CanDelete: false,
|
||||
@@ -16,7 +16,7 @@ func DefaultLogConfig() *LogConfig {
|
||||
}
|
||||
}
|
||||
|
||||
// 操作日志相关配置
|
||||
// LogConfig 操作日志相关配置
|
||||
type LogConfig struct {
|
||||
CanDelete bool `json:"canDelete"` // 是否可删除
|
||||
CanClean bool `json:"canClean"` // 是否可清理
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package systemconfigs
|
||||
|
||||
// 用户界面相关配置
|
||||
// UserUIConfig 用户界面相关配置
|
||||
type UserUIConfig struct {
|
||||
ProductName string `json:"productName"` // 产品名
|
||||
UserSystemName string `json:"userSystemName"` // 管理员系统名称
|
||||
|
||||
Reference in New Issue
Block a user