优化脚本代码配置

This commit is contained in:
GoEdgeLab
2022-01-03 21:51:24 +08:00
parent d9458913c8
commit e9066d8da0
8 changed files with 57 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
package systemconfigs
// 用户模块权限
// AdminModule 管理用户模块权限
type AdminModule struct {
Code string `json:"code"` // 模块代号
AllowAll bool `json:"allowAll"` // 允许所有的动作

View File

@@ -1,6 +1,6 @@
package systemconfigs
// 数据库相关配置
// DatabaseConfig 数据库相关配置
type DatabaseConfig struct {
ServerAccessLog struct {
Clean struct {

View File

@@ -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"` // 是否可清理

View File

@@ -1,6 +1,6 @@
package systemconfigs
// 用户界面相关配置
// UserUIConfig 用户界面相关配置
type UserUIConfig struct {
ProductName string `json:"productName"` // 产品名
UserSystemName string `json:"userSystemName"` // 管理员系统名称