mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
1. 重构后端API路由、CRUD与模块结构,整合日志管理,移除废弃demo代码 2. 优化前端组件类型定义、样式与路由配置,修复权限判断逻辑 3. 调整默认排序规则、滚动条样式与工具类函数,更新依赖与配置文件 4. 修复多处类型不匹配与默认值问题,完善表单与菜单验证逻辑
153 lines
4.9 KiB
JSON
153 lines
4.9 KiB
JSON
[
|
|
{
|
|
"request_path": "/api/v1/system/auth/login",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"username\": \"super\", \"password\": \"***\"}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"登录成功\"}",
|
|
"process_time": "45ms",
|
|
"tenant_id": 1,
|
|
"description": "用户登录"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/user/current/info",
|
|
"request_method": "GET",
|
|
"request_payload": null,
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"data\": {\"username\": \"super\"}}",
|
|
"process_time": "12ms",
|
|
"tenant_id": 1,
|
|
"description": "获取当前用户信息"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/platform/menu/create",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"name\": \"测试菜单\", \"type\": 2, \"parent_id\": 1}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"创建成功\"}",
|
|
"process_time": "23ms",
|
|
"tenant_id": 1,
|
|
"description": "创建菜单"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/user/update/3",
|
|
"request_method": "PUT",
|
|
"request_payload": "{\"name\": \"普通用户\", \"status\": 0}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"更新成功\"}",
|
|
"process_time": "18ms",
|
|
"tenant_id": 1,
|
|
"description": "更新用户信息"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/dept/create",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"name\": \"测试部门\", \"parent_id\": 1}",
|
|
"response_code": 400,
|
|
"response_json": "{\"code\": 400, \"msg\": \"部门编码已存在\"}",
|
|
"process_time": "8ms",
|
|
"tenant_id": 1,
|
|
"description": "创建部门(失败)"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/role/delete",
|
|
"request_method": "DELETE",
|
|
"request_payload": "{\"ids\": [5]}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"删除成功\"}",
|
|
"process_time": "15ms",
|
|
"tenant_id": 1,
|
|
"description": "删除角色"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/platform/menu/list",
|
|
"request_method": "GET",
|
|
"request_payload": null,
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"data\": {\"items\": [...]}}",
|
|
"process_time": "35ms",
|
|
"tenant_id": 3,
|
|
"description": "查询菜单列表"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/dict/data/list",
|
|
"request_method": "GET",
|
|
"request_payload": null,
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"data\": {\"items\": [...]}}",
|
|
"process_time": "22ms",
|
|
"tenant_id": 3,
|
|
"description": "查询字典数据"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/workflow/definition/create",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"name\": \"审批流程\", \"code\": \"approval_v1\"}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"创建成功\"}",
|
|
"process_time": "28ms",
|
|
"tenant_id": 4,
|
|
"description": "创建工作流"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/notice/create",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"notice_title\": \"测试通知\", \"notice_type\": \"1\"}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"创建成功\"}",
|
|
"process_time": "11ms",
|
|
"tenant_id": 1,
|
|
"description": "创建通知"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/user/export",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"status\": 0}",
|
|
"response_code": 200,
|
|
"response_json": "{\"file\": \"用户列表_20250601.xlsx\"}",
|
|
"process_time": "156ms",
|
|
"tenant_id": 1,
|
|
"description": "导出用户数据"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/system/user/import",
|
|
"request_method": "POST",
|
|
"request_payload": "\"file\": \"users.xlsx\" (multipart/form-data)",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"成功导入 25 条数据\"}",
|
|
"process_time": "320ms",
|
|
"tenant_id": 1,
|
|
"description": "批量导入用户"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/cronjob/node/execute/1",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"trigger\": \"now\"}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"调试节点成功\"}",
|
|
"process_time": "1024ms",
|
|
"tenant_id": 1,
|
|
"description": "执行定时任务节点"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/workflow/definition/execute",
|
|
"request_method": "POST",
|
|
"request_payload": "{\"workflow_id\": 1, \"variables\": {}}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"data\": {\"status\": \"completed\"}}",
|
|
"process_time": "3200ms",
|
|
"tenant_id": 4,
|
|
"description": "执行工作流"
|
|
},
|
|
{
|
|
"request_path": "/api/v1/cronjob/job/log/delete",
|
|
"request_method": "DELETE",
|
|
"request_payload": "{\"ids\": [1, 2, 3]}",
|
|
"response_code": 200,
|
|
"response_json": "{\"code\": 200, \"msg\": \"删除成功\"}",
|
|
"process_time": "19ms",
|
|
"tenant_id": 1,
|
|
"description": "批量删除执行日志"
|
|
}
|
|
]
|