Files
mpay_v2_webman/config/base-config/permission.json
技术老胡 d5a134d3a8 1. 调整异常处理类
2. 统一职责分工
3. 清除多余代码
2026-02-24 13:37:35 +08:00

100 lines
2.1 KiB
JSON

{
"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": "账户锁定时长不能为空"
}
]
}
]
}