refactor: 完成系统架构升级与模块拆分

本次提交进行了大规模的系统重构:
1. 拆分租户相关模块到platform平台层,重构租户表名与关联关系
2. 迁移日志、工单、插件等模块到对应层级,统一代码结构
3. 重构批量操作接口路径,从/available/setting改为/status/batch
4. 新增批量删除基础模型,统一处理批量操作逻辑
5. 优化导入导出接口,修正路由方法与描述信息
6. 修复循环引用问题,重构依赖注入与类型导入
7. 更新初始化脚本与路由注册,新增平台管理路由
8. 重构岗位模型,新增岗位编码字段与校验
9. 完善部门删除逻辑,新增子部门删除限制
10. 更新初始化数据与配置文件,适配新架构
This commit is contained in:
zhangtao
2026-06-03 00:53:19 +08:00
parent 290728d9d2
commit 17b3cd0a4c
104 changed files with 2666 additions and 1438 deletions
+72 -30
View File
@@ -4,8 +4,8 @@
"username": "super",
"password": "$2b$12$e2IJgS/cvHgJ0H3G7Xa08OXoXnk6N/NX3IZRtubBDElA0VLZhkNOa",
"name": "超级管理员",
"mobile": null,
"email": null,
"mobile": "13800138000",
"email": "super@example.com",
"gender": "0",
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
"is_superuser": true,
@@ -16,7 +16,7 @@
"qq_login": null,
"dept_id": 1,
"status": "0",
"description": "超级管理员",
"description": "系统超级管理员",
"created_id": null,
"updated_id": null
},
@@ -25,29 +25,8 @@
"username": "admin",
"password": "$2b$12$e2IJgS/cvHgJ0H3G7Xa08OXoXnk6N/NX3IZRtubBDElA0VLZhkNOa",
"name": "管理员",
"mobile": null,
"email": null,
"gender": "0",
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
"is_superuser": true,
"last_login": null,
"gitee_login": null,
"github_login": null,
"wx_login": null,
"qq_login": null,
"dept_id": 1,
"status": "0",
"description": "管理员",
"created_id": null,
"updated_id": null
},
{
"tenant_id": 1,
"username": "user",
"password": "$2b$12$e2IJgS/cvHgJ0H3G7Xa08OXoXnk6N/NX3IZRtubBDElA0VLZhkNOa",
"name": "普通用户",
"mobile": null,
"email": null,
"mobile": "13800138001",
"email": "admin@example.com",
"gender": "0",
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
"is_superuser": false,
@@ -56,10 +35,73 @@
"github_login": null,
"wx_login": null,
"qq_login": null,
"dept_id": 1,
"dept_id": 2,
"status": "0",
"description": "普通用户",
"created_id": null,
"description": "技术部门管理员",
"created_id": 1,
"updated_id": null
},
{
"tenant_id": 1,
"username": "user",
"password": "$2b$12$e2IJgS/cvHgJ0H3G7Xa08OXoXnk6N/NX3IZRtubBDElA0VLZhkNOa",
"name": "普通用户",
"mobile": "13800138002",
"email": "user@example.com",
"gender": "0",
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
"is_superuser": false,
"last_login": null,
"gitee_login": null,
"github_login": null,
"wx_login": null,
"qq_login": null,
"dept_id": 3,
"status": "0",
"description": "后端开发工程师",
"created_id": 1,
"updated_id": null
},
{
"tenant_id": 1,
"username": "product",
"password": "$2b$12$e2IJgS/cvHgJ0H3G7Xa08OXoXnk6N/NX3IZRtubBDElA0VLZhkNOa",
"name": "产品经理",
"mobile": "13800138003",
"email": "product@example.com",
"gender": "1",
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
"is_superuser": false,
"last_login": null,
"gitee_login": null,
"github_login": null,
"wx_login": null,
"qq_login": null,
"dept_id": 5,
"status": "0",
"description": "产品经理",
"created_id": 1,
"updated_id": null
},
{
"tenant_id": 1,
"username": "hr",
"password": "$2b$12$e2IJgS/cvHgJ0H3G7Xa08OXoXnk6N/NX3IZRtubBDElA0VLZhkNOa",
"name": "HR专员",
"mobile": "13800138004",
"email": "hr@example.com",
"gender": "1",
"avatar": "https://service.fastapiadmin.com/api/v1/static/image/avatar.png",
"is_superuser": false,
"last_login": null,
"gitee_login": null,
"github_login": null,
"wx_login": null,
"qq_login": null,
"dept_id": 6,
"status": "0",
"description": "人力资源专员",
"created_id": 1,
"updated_id": null
}
]
]