refactor: 完成项目代码结构优化与权限清理

主要变更:
1. 重构健康检查模块,迁移目录结构并合并重复代码
2. 清理路由标签冗余的"系统管理/平台管理"前缀,简化标签名称
3. 重构工作流相关目录与API,统一命名为flow和nodes
4. 重命名缓存删除接口为clear,同步前后端路由与权限
5. 简化接口参数描述,统一批量状态修改的请求体格式
6. 重构动态路由加载逻辑,优化初始化流程
7. 清理废弃的self_service模块,整合租户自助服务到租户API
8. 重构发票管理接口,统一路由前缀与权限控制
9. 优化代码生成模板,补全参数注解与描述
10: 修复日志删除接口的参数解析逻辑
This commit is contained in:
zhangtao
2026-07-02 00:10:02 +08:00
parent fa5bfc2a4f
commit 64bd82ee75
74 changed files with 1434 additions and 1547 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ class TestCache:
assert_route(test_client, "DELETE", "/monitor/cache/delete/key/test", auth=auth_headers)
def test_cache_clear_all(self, test_client: TestClient, auth_headers: dict) -> None:
assert_route(test_client, "DELETE", "/monitor/cache/delete/all", auth=auth_headers)
assert_route(test_client, "DELETE", "/monitor/cache/clear", auth=auth_headers)
class TestServer:
@@ -81,7 +81,7 @@ class TestResource:
def test_resource_create_dir(self, test_client: TestClient, auth_headers: dict) -> None:
assert_route(
test_client, "POST", "/monitor/resource/create-dir", auth=auth_headers,
test_client, "POST", "/monitor/resource/mkdir", auth=auth_headers,
json={"name": "test_dir", "parent_path": "/"},
)