fix(system): 纠正Redis CURD批量获取方法参数传递问题

- 修正了RedisCURD.mget调用时传递keys参数的方式,去除多余的展开运算符
- 删除了无用的UpdateSystemParamsSchema定义,简化参数模型代码
- 更新系统初始化配置获取逻辑,统一修正mget的keys传递方式
- 调整系统初始化配置json数据,完善帮助文档、隐私政策、用户协议等字段
- 修改开发环境数据库配置,切换为PostgreSQL并更新相应端口及用户信息
- 删除冗余MySQL数据库备份脚本,避免版本管理中的重复和混乱
This commit is contained in:
zhangtao
2025-10-08 04:15:25 +08:00
parent e669722706
commit e1ce533d17
11 changed files with 942 additions and 367 deletions
+54 -54
View File
@@ -62,6 +62,51 @@
"description": "备案信息",
"creator_id": 1
},
{
"config_name": "帮助文档",
"config_key": "sys_help_doc",
"config_value": "https://service.fastapiadmin.com",
"config_type": true,
"status": true,
"description": "帮助文档",
"creator_id": 1
},
{
"config_name": "隐私政策",
"config_key": "sys_web_privacy",
"config_value": "https://github.com/1014TaoTao/fastapi_vue3_admin/blob/master/LICENSE",
"config_type": true,
"status": true,
"description": "隐私政策",
"creator_id": 1
},
{
"config_name": "用户协议",
"config_key": "sys_web_clause",
"config_value": "https://github.com/1014TaoTao/fastapi_vue3_admin/blob/master/LICENSE",
"config_type": true,
"status": true,
"description": "用户协议",
"creator_id": 1
},
{
"config_name": "源码代码",
"config_key": "sys_git_code",
"config_value": "https://github.com/1014TaoTao/fastapi_vue3_admin.git",
"config_type": true,
"status": true,
"description": "源码代码",
"creator_id": 1
},
{
"config_name": "项目版本",
"config_key": "sys_web_version",
"config_value": "2.0.0",
"config_type": true,
"status": true,
"description": "项目版本",
"creator_id": 1
},
{
"config_name": "演示模式启用",
"config_key": "demo_enable",
@@ -71,6 +116,15 @@
"description": "是否开启演示模式",
"creator_id": 1
},
{
"config_name": "演示访问IP白名单",
"config_key": "ip_white_list",
"config_value": "[\"127.0.0.1\"]",
"config_type": true,
"status": true,
"description": "演示模式IP白名单列表",
"creator_id": 1
},
{
"config_name": "接口白名单",
"config_key": "white_api_list_path",
@@ -80,15 +134,6 @@
"description": "接口白名单",
"creator_id": 1
},
{
"config_name": "访问IP白名单",
"config_key": "ip_white_list",
"config_value": "[\"127.0.0.1\"]",
"config_type": true,
"status": true,
"description": "演示模式IP白名单列表",
"creator_id": 1
},
{
"config_name": "访问IP黑名单",
"config_key": "ip_black_list",
@@ -97,50 +142,5 @@
"status": true,
"description": "访问IP黑名单",
"creator_id": 1
},
{
"config_name": "允许上传文件类型",
"config_key": "allowed_extensions",
"config_value": "[\".bmp\", \".gif\", \".jpg\", \".jpeg\", \".png\", \".ico\", \".svg\", \".csv\", \".doc\", \".docx\", \".xls\", \".xlsx\", \".ppt\", \".pptx\", \".html\", \".htm\", \".txt\", \".pdf\", \".rar\", \".zip\", \".gz\", \".bz2\", \".mp4\", \".avi\", \".rmvb\"]",
"config_type": true,
"status": true,
"description": "允许上传的文件类型列表",
"creator_id": 1
},
{
"config_name": "最大文件上传大小",
"config_key": "max_file_size",
"config_value": "10485760",
"config_type": true,
"status": true,
"description": "最大文件上传大小(字节),默认10MB",
"creator_id": 1
},
{
"config_name": "操作日志记录开关",
"config_key": "operation_log_record",
"config_value": "True",
"config_type": true,
"status": true,
"description": "是否记录操作日志",
"creator_id": 1
},
{
"config_name": "操作日志记录方法",
"config_key": "operation_record_method",
"config_value": "[\"POST\", \"PUT\", \"PATCH\", \"DELETE\", \"HEAD\", \"OPTIONS\"]",
"config_type": true,
"status": true,
"description": "操作日志记录方法",
"creator_id": 1
},
{
"config_name": "忽略操作日志函数",
"config_key": "ignore_operation_function",
"config_value": "[\"get_captcha_for_login\"]",
"config_type": true,
"status": true,
"description": "忽略操作日志函数",
"creator_id": 1
}
]