mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 14:23:48 +00:00
refactor: 完成项目代码结构优化与权限清理
主要变更: 1. 重构健康检查模块,迁移目录结构并合并重复代码 2. 清理路由标签冗余的"系统管理/平台管理"前缀,简化标签名称 3. 重构工作流相关目录与API,统一命名为flow和nodes 4. 重命名缓存删除接口为clear,同步前后端路由与权限 5. 简化接口参数描述,统一批量状态修改的请求体格式 6. 重构动态路由加载逻辑,优化初始化流程 7. 清理废弃的self_service模块,整合租户自助服务到租户API 8. 重构发票管理接口,统一路由前缀与权限控制 9. 优化代码生成模板,补全参数注解与描述 10: 修复日志删除接口的参数解析逻辑
This commit is contained in:
@@ -214,7 +214,7 @@
|
||||
"type": 2,
|
||||
"icon": "ri:presentation-line",
|
||||
"order": 2,
|
||||
"permission": "module_system:tenant:query",
|
||||
"permission": "module_platform:tenant:query",
|
||||
"route_name": "Tenant",
|
||||
"route_path": "tenant",
|
||||
"component_path": "module_platform/tenant/index",
|
||||
@@ -233,7 +233,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "module_system:tenant:create",
|
||||
"permission": "module_platform:tenant:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -260,7 +260,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "module_system:tenant:update",
|
||||
"permission": "module_platform:tenant:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -287,7 +287,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "module_system:tenant:delete",
|
||||
"permission": "module_platform:tenant:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -314,7 +314,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "module_system:tenant:patch",
|
||||
"permission": "module_platform:tenant:patch",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -341,7 +341,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"permission": "module_system:tenant:query",
|
||||
"permission": "module_platform:tenant:query",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -368,7 +368,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 6,
|
||||
"permission": "module_system:tenant:query",
|
||||
"permission": "module_platform:tenant:query",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -395,7 +395,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 11,
|
||||
"permission": "module_system:tenant:update",
|
||||
"permission": "module_platform:tenant:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -1000,7 +1000,7 @@
|
||||
"permission": "module_platform:workspace:query",
|
||||
"route_name": "PlatformWorkspace",
|
||||
"route_path": "workspace",
|
||||
"component_path": "module_platform/self_service/index",
|
||||
"component_path": "module_platform/tenant/workspace",
|
||||
"status": 0,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
@@ -3908,7 +3908,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 7,
|
||||
"permission": "module_monitor:resource:create_dir",
|
||||
"permission": "module_monitor:resource:mkdir",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5110,7 +5110,7 @@
|
||||
"title": "工作流",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": "/task/workflow/definition",
|
||||
"redirect": "/task/workflow/flow",
|
||||
"description": "流程编排与节点类型",
|
||||
"children": [
|
||||
{
|
||||
@@ -5118,10 +5118,10 @@
|
||||
"type": 2,
|
||||
"icon": "ri:tools-line",
|
||||
"order": 1,
|
||||
"permission": "module_task:workflow:definition:query",
|
||||
"permission": "module_task:workflow:flow:query",
|
||||
"route_name": "Workflow",
|
||||
"route_path": "task/workflow/definition",
|
||||
"component_path": "module_task/workflow/definition/index",
|
||||
"route_path": "task/workflow/flow",
|
||||
"component_path": "module_task/workflow/flow/index",
|
||||
"status": 0,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
@@ -5137,7 +5137,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "module_task:workflow:definition:create",
|
||||
"permission": "module_task:workflow:flow:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5164,7 +5164,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "module_task:workflow:definition:execute",
|
||||
"permission": "module_task:workflow:flow:execute",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5191,7 +5191,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "module_task:workflow:definition:update",
|
||||
"permission": "module_task:workflow:flow:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5218,7 +5218,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "module_task:workflow:definition:delete",
|
||||
"permission": "module_task:workflow:flow:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5245,7 +5245,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"permission": "module_task:workflow:definition:detail",
|
||||
"permission": "module_task:workflow:flow:detail",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5272,7 +5272,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 6,
|
||||
"permission": "module_task:workflow:definition:query",
|
||||
"permission": "module_task:workflow:flow:query",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5309,10 +5309,10 @@
|
||||
"type": 2,
|
||||
"icon": "ri:layout-grid-line",
|
||||
"order": 2,
|
||||
"permission": "module_task:workflow:node-type:query",
|
||||
"permission": "module_task:workflow:nodes:query",
|
||||
"route_name": "WorkflowNodeType",
|
||||
"route_path": "task/workflow/node-type",
|
||||
"component_path": "module_task/workflow/node-type/index",
|
||||
"route_path": "task/workflow/nodes",
|
||||
"component_path": "module_task/workflow/nodes/index",
|
||||
"status": 0,
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
@@ -5328,7 +5328,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"permission": "module_task:workflow:node-type:create",
|
||||
"permission": "module_task:workflow:nodes:create",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5355,7 +5355,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 2,
|
||||
"permission": "module_task:workflow:node-type:update",
|
||||
"permission": "module_task:workflow:nodes:update",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5382,7 +5382,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"permission": "module_task:workflow:node-type:delete",
|
||||
"permission": "module_task:workflow:nodes:delete",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5409,7 +5409,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"permission": "module_task:workflow:node-type:detail",
|
||||
"permission": "module_task:workflow:nodes:detail",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
@@ -5436,7 +5436,7 @@
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"permission": "module_task:workflow:node-type:query",
|
||||
"permission": "module_task:workflow:nodes:query",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
|
||||
Reference in New Issue
Block a user