mirror of
https://gitee.com/technical-laohu/mpay_v2_webman.git
synced 2026-04-26 20:14:26 +08:00
1. 调整异常处理类
2. 统一职责分工 3. 清除多余代码
This commit is contained in:
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": "账户锁定时长不能为空"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user