mirror of
https://gitee.com/technical-laohu/mpay_v2_webman.git
synced 2026-04-24 11:04:26 +08:00
1. 调整异常处理类
2. 统一职责分工 3. 清除多余代码
This commit is contained in:
84
config/base-config/basic.json
Normal file
84
config/base-config/basic.json
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"formId": "basic-config",
|
||||
"title": "基础设置",
|
||||
"submitText": "保存设置",
|
||||
"submitUrl": "/adminapi/system/base-config/submit/basic",
|
||||
"cacheKey": "basic_config_cache",
|
||||
"refreshAfterSubmit": true,
|
||||
"rules": [
|
||||
{
|
||||
"type": "input",
|
||||
"field": "site_name",
|
||||
"title": "站点名称",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入站点名称"
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "站点名称不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "textarea",
|
||||
"field": "site_description",
|
||||
"title": "站点描述",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入站点描述",
|
||||
"autoSize": {
|
||||
"minRows": 3,
|
||||
"maxRows": 6
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"field": "site_logo",
|
||||
"title": "站点Logo",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入Logo地址或上传Logo"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"field": "icp_number",
|
||||
"title": "备案号",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入ICP备案号"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "switch",
|
||||
"field": "site_status",
|
||||
"title": "站点状态",
|
||||
"value": true,
|
||||
"props": {
|
||||
"checkedText": "开启",
|
||||
"uncheckedText": "关闭"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inputNumber",
|
||||
"field": "page_size",
|
||||
"title": "每页显示数量",
|
||||
"value": 10,
|
||||
"props": {
|
||||
"min": 1,
|
||||
"max": 100,
|
||||
"precision": 0
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "每页显示数量不能为空"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
112
config/base-config/email.json
Normal file
112
config/base-config/email.json
Normal file
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"formId": "email-config",
|
||||
"title": "邮件设置",
|
||||
"submitText": "保存设置",
|
||||
"submitUrl": "/adminapi/system/base-config/submit/email",
|
||||
"cacheKey": "email_config_cache",
|
||||
"refreshAfterSubmit": true,
|
||||
"rules": [
|
||||
{
|
||||
"type": "input",
|
||||
"field": "smtp_host",
|
||||
"title": "SMTP服务器",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "例如:smtp.qq.com"
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "SMTP服务器不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "inputNumber",
|
||||
"field": "smtp_port",
|
||||
"title": "SMTP端口",
|
||||
"value": 465,
|
||||
"props": {
|
||||
"min": 1,
|
||||
"max": 65535,
|
||||
"precision": 0
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "SMTP端口不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "switch",
|
||||
"field": "smtp_ssl",
|
||||
"title": "启用SSL",
|
||||
"value": true,
|
||||
"props": {
|
||||
"checkedText": "是",
|
||||
"uncheckedText": "否"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"field": "smtp_username",
|
||||
"title": "SMTP用户名",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入SMTP用户名"
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "SMTP用户名不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"field": "smtp_password",
|
||||
"title": "SMTP密码",
|
||||
"value": "",
|
||||
"props": {
|
||||
"type": "password",
|
||||
"placeholder": "请输入SMTP密码或授权码"
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "SMTP密码不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"field": "from_email",
|
||||
"title": "发件人邮箱",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入发件人邮箱地址"
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "发件人邮箱不能为空"
|
||||
},
|
||||
{
|
||||
"type": "email",
|
||||
"message": "请输入正确的邮箱地址"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"field": "from_name",
|
||||
"title": "发件人名称",
|
||||
"value": "",
|
||||
"props": {
|
||||
"placeholder": "请输入发件人名称"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
99
config/base-config/permission.json
Normal file
99
config/base-config/permission.json
Normal file
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"formId": "permission-config",
|
||||
"title": "权限设置",
|
||||
"submitText": "保存设置",
|
||||
"submitUrl": "/adminapi/system/base-config/submit/permission",
|
||||
"cacheKey": "permission_config_cache",
|
||||
"refreshAfterSubmit": true,
|
||||
"rules": [
|
||||
{
|
||||
"type": "switch",
|
||||
"field": "enable_permission",
|
||||
"title": "启用权限控制",
|
||||
"value": true,
|
||||
"props": {
|
||||
"checkedText": "启用",
|
||||
"uncheckedText": "禁用"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inputNumber",
|
||||
"field": "session_timeout",
|
||||
"title": "会话超时时间(分钟)",
|
||||
"value": 30,
|
||||
"props": {
|
||||
"min": 1,
|
||||
"max": 1440,
|
||||
"precision": 0
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "会话超时时间不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "inputNumber",
|
||||
"field": "password_min_length",
|
||||
"title": "密码最小长度",
|
||||
"value": 6,
|
||||
"props": {
|
||||
"min": 4,
|
||||
"max": 32,
|
||||
"precision": 0
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "密码最小长度不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "switch",
|
||||
"field": "require_strong_password",
|
||||
"title": "要求强密码",
|
||||
"value": false,
|
||||
"props": {
|
||||
"checkedText": "是",
|
||||
"uncheckedText": "否"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inputNumber",
|
||||
"field": "max_login_attempts",
|
||||
"title": "最大登录尝试次数",
|
||||
"value": 5,
|
||||
"props": {
|
||||
"min": 1,
|
||||
"max": 10,
|
||||
"precision": 0
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "最大登录尝试次数不能为空"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "inputNumber",
|
||||
"field": "lockout_duration",
|
||||
"title": "账户锁定时长(分钟)",
|
||||
"value": 30,
|
||||
"props": {
|
||||
"min": 1,
|
||||
"max": 1440,
|
||||
"precision": 0
|
||||
},
|
||||
"validate": [
|
||||
{
|
||||
"required": true,
|
||||
"message": "账户锁定时长不能为空"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
27
config/base-config/tabs.json
Normal file
27
config/base-config/tabs.json
Normal file
@@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"key": "basic",
|
||||
"title": "基础设置",
|
||||
"icon": "settings",
|
||||
"description": "配置系统基础信息,包括站点名称、Logo、备案号等",
|
||||
"sort": 1,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"key": "email",
|
||||
"title": "邮件设置",
|
||||
"icon": "email",
|
||||
"description": "配置邮件服务器相关参数,包括SMTP服务器、端口、账号密码等",
|
||||
"sort": 2,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"key": "permission",
|
||||
"title": "权限设置",
|
||||
"icon": "lock",
|
||||
"description": "配置系统权限相关参数,预留权限控制功能",
|
||||
"sort": 3,
|
||||
"disabled": false
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user