重构初始化

This commit is contained in:
技术老胡
2026-04-15 11:45:46 +08:00
parent 72d72d735b
commit 7612026773
381 changed files with 28287 additions and 14717 deletions

View File

@@ -1,111 +0,0 @@
{
"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": "请输入发件人名称"
}
}
]
}