mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
refactor: 完成系统架构升级与模块拆分
本次提交进行了大规模的系统重构: 1. 拆分租户相关模块到platform平台层,重构租户表名与关联关系 2. 迁移日志、工单、插件等模块到对应层级,统一代码结构 3. 重构批量操作接口路径,从/available/setting改为/status/batch 4. 新增批量删除基础模型,统一处理批量操作逻辑 5. 优化导入导出接口,修正路由方法与描述信息 6. 修复循环引用问题,重构依赖注入与类型导入 7. 更新初始化脚本与路由注册,新增平台管理路由 8. 重构岗位模型,新增岗位编码字段与校验 9. 完善部门删除逻辑,新增子部门删除限制 10. 更新初始化数据与配置文件,适配新架构
This commit is contained in:
@@ -4,12 +4,79 @@
|
||||
"code": "GROUP",
|
||||
"order": 1,
|
||||
"status": "0",
|
||||
"leader": "部门负责人",
|
||||
"phone": "1582112620",
|
||||
"email": "deptadmin@example.com",
|
||||
"description": "集团总公司",
|
||||
"leader": "张总",
|
||||
"phone": "13800138000",
|
||||
"email": "ceo@example.com",
|
||||
"description": "集团总部",
|
||||
"parent_id": null,
|
||||
"tenant_id": 1,
|
||||
"children": []
|
||||
"children": [
|
||||
{
|
||||
"name": "技术研发部",
|
||||
"code": "TECH",
|
||||
"order": 1,
|
||||
"status": "0",
|
||||
"leader": "李工",
|
||||
"phone": "13800138001",
|
||||
"email": "tech@example.com",
|
||||
"description": "负责技术研发",
|
||||
"parent_id": null,
|
||||
"tenant_id": 1,
|
||||
"children": [
|
||||
{
|
||||
"name": "后端开发组",
|
||||
"code": "BACKEND",
|
||||
"order": 1,
|
||||
"status": "0",
|
||||
"leader": "王工",
|
||||
"phone": "13800138002",
|
||||
"email": "backend@example.com",
|
||||
"description": "后端技术开发",
|
||||
"parent_id": null,
|
||||
"tenant_id": 1,
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "前端开发组",
|
||||
"code": "FRONTEND",
|
||||
"order": 2,
|
||||
"status": "0",
|
||||
"leader": "陈工",
|
||||
"phone": "13800138003",
|
||||
"email": "frontend@example.com",
|
||||
"description": "前端技术开发",
|
||||
"parent_id": null,
|
||||
"tenant_id": 1,
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "产品运营部",
|
||||
"code": "PRODUCT",
|
||||
"order": 2,
|
||||
"status": "0",
|
||||
"leader": "赵经理",
|
||||
"phone": "13800138004",
|
||||
"email": "product@example.com",
|
||||
"description": "产品与运营",
|
||||
"parent_id": null,
|
||||
"tenant_id": 1,
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "人力资源部",
|
||||
"code": "HR",
|
||||
"order": 3,
|
||||
"status": "0",
|
||||
"leader": "刘经理",
|
||||
"phone": "13800138005",
|
||||
"email": "hr@example.com",
|
||||
"description": "人事管理",
|
||||
"parent_id": null,
|
||||
"tenant_id": 1,
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user