初始提交: Qihu-AIFlow v2.0.1 完整项目
- 前端 React+TypeScript (源码+构建产物) - 后端 Python FastAPI - 数据库迁移 001-015 - Docker部署配置 - 微信ClawBot API频道绑定 - 项目文档 README.md
This commit is contained in:
commit
78ff261b5a
199 files changed
+69126
No files matched your search
@@ -0,0 +1,454 @@
|
||||
{
|
||||
"summary": {
|
||||
"passed": 74,
|
||||
"failed": 0,
|
||||
"total": 74,
|
||||
"pass_rate": "100%"
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"name": "ADMIN-LOGIN",
|
||||
"status": "PASS",
|
||||
"detail": "管理员登录成功",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "USER-TOKEN",
|
||||
"status": "PASS",
|
||||
"detail": "使用管理员Token替代普通用户",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "1.1 获取对话列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /chat/conversations"
|
||||
},
|
||||
{
|
||||
"name": "1.3 置顶对话",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c"
|
||||
},
|
||||
{
|
||||
"name": "1.4 取消置顶",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c"
|
||||
},
|
||||
{
|
||||
"name": "1.5 重命名对话",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c"
|
||||
},
|
||||
{
|
||||
"name": "1.6 归档对话",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c"
|
||||
},
|
||||
{
|
||||
"name": "1.7 取消归档",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c"
|
||||
},
|
||||
{
|
||||
"name": "1.8 转知识图谱",
|
||||
"status": "PASS",
|
||||
"detail": "HTTP 200",
|
||||
"endpoint": "POST /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c/to-knowledge-graph"
|
||||
},
|
||||
{
|
||||
"name": "1.9 创建待删除对话",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "POST /chat/conversations"
|
||||
},
|
||||
{
|
||||
"name": "1.10 删除对话",
|
||||
"status": "PASS",
|
||||
"detail": "HTTP 200",
|
||||
"endpoint": "DELETE /chat/conversations/a1312eec-4348-408c-8c7a-8db0338d68f2"
|
||||
},
|
||||
{
|
||||
"name": "2.1 获取可用Agent列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/services/agents"
|
||||
},
|
||||
{
|
||||
"name": "2.2 Agent列表格式验证",
|
||||
"status": "PASS",
|
||||
"detail": "共2个Agent",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "2.3 获取服务列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/services/"
|
||||
},
|
||||
{
|
||||
"name": "2.4 绑定Agent到服务",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /admin/services/92e59b44-6030-43f0-941b-9c4c8e0dbfb0/agent"
|
||||
},
|
||||
{
|
||||
"name": "3.1 获取知识库列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /knowledge/bases"
|
||||
},
|
||||
{
|
||||
"name": "3.3 上传文档到知识库",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "POST /knowledge/bases/87a86c1c-8ee9-4831-96c0-ec4a1b5a1909/documents"
|
||||
},
|
||||
{
|
||||
"name": "3.4 获取资产(文档分类)",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /assets/?category=doc"
|
||||
},
|
||||
{
|
||||
"name": "3.5 文档分类资产验证",
|
||||
"status": "PASS",
|
||||
"detail": "文档分类下3条记录",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "3.6 获取全部分类资产",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /assets/"
|
||||
},
|
||||
{
|
||||
"name": "4.1 知识库列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /knowledge/bases"
|
||||
},
|
||||
{
|
||||
"name": "4.2 知识库列表非空",
|
||||
"status": "PASS",
|
||||
"detail": "共4个",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "4.3 Agent列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /market/apps?type=agent"
|
||||
},
|
||||
{
|
||||
"name": "4.4 Agent列表格式",
|
||||
"status": "PASS",
|
||||
"detail": "共2个",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "4.5 技能列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /market/apps?type=skill"
|
||||
},
|
||||
{
|
||||
"name": "4.6 技能列表格式",
|
||||
"status": "PASS",
|
||||
"detail": "共11个",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "5.1 生成微信授权二维码",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "POST /channels/authorize/scan?platform=wechat"
|
||||
},
|
||||
{
|
||||
"name": "5.2 QR URL非localhost",
|
||||
"status": "PASS",
|
||||
"detail": "is_mock=True",
|
||||
"endpoint": "POST /channels/authorize/scan"
|
||||
},
|
||||
{
|
||||
"name": "5.3 返回status字段",
|
||||
"status": "PASS",
|
||||
"detail": "waiting",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "5.4 返回message字段",
|
||||
"status": "PASS",
|
||||
"detail": "模拟测试二维码 - 绑定正式环境需提供真实微信开放平台AppID/AppSecret",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "5.5 查询扫描状态",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "POST /channels/authorize/scan/status"
|
||||
},
|
||||
{
|
||||
"name": "6.1 仪表盘统计数据",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/dashboard/stats"
|
||||
},
|
||||
{
|
||||
"name": "6.2 active_users统计字段",
|
||||
"status": "PASS",
|
||||
"detail": "用户总数=3",
|
||||
"endpoint": "GET /admin/dashboard/stats"
|
||||
},
|
||||
{
|
||||
"name": "6.2 enabled_models统计字段",
|
||||
"status": "PASS",
|
||||
"detail": "模型数=9",
|
||||
"endpoint": "GET /admin/dashboard/stats"
|
||||
},
|
||||
{
|
||||
"name": "6.2 today_orders统计字段",
|
||||
"status": "PASS",
|
||||
"detail": "今日订单=0",
|
||||
"endpoint": "GET /admin/dashboard/stats"
|
||||
},
|
||||
{
|
||||
"name": "6.2 today_tokens统计字段",
|
||||
"status": "PASS",
|
||||
"detail": "今日Token=26",
|
||||
"endpoint": "GET /admin/dashboard/stats"
|
||||
},
|
||||
{
|
||||
"name": "6.3 最近操作日志",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/dashboard/recent-logs"
|
||||
},
|
||||
{
|
||||
"name": "6.4 操作日志数据",
|
||||
"status": "PASS",
|
||||
"detail": "共10条",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "6.5 最近审计日志",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/dashboard/recent-audit"
|
||||
},
|
||||
{
|
||||
"name": "6.6 审计日志数据",
|
||||
"status": "PASS",
|
||||
"detail": "共10条",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "7.1 修改密码",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /profile/password"
|
||||
},
|
||||
{
|
||||
"name": "7.2 新密码登录",
|
||||
"status": "PASS",
|
||||
"detail": "新密码登录成功",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "7.3 恢复原密码",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /profile/password"
|
||||
},
|
||||
{
|
||||
"name": "7.4 原密码恢复成功",
|
||||
"status": "PASS",
|
||||
"detail": "登录正常",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "7.5 旧密码错误拒绝",
|
||||
"status": "PASS",
|
||||
"detail": "HTTP 400",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "8.1 获取邮件配置",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/settings/email"
|
||||
},
|
||||
{
|
||||
"name": "8.2 保存邮件配置",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "PUT /admin/settings/email"
|
||||
},
|
||||
{
|
||||
"name": "8.3 配置回显验证",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/settings/email"
|
||||
},
|
||||
{
|
||||
"name": "8.4 回显smtp_host",
|
||||
"status": "PASS",
|
||||
"detail": "smtp.example.com",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "8.5 发送测试邮件(假SMTP)",
|
||||
"status": "PASS",
|
||||
"detail": "HTTP 500 (预期失败)",
|
||||
"endpoint": "POST /admin/settings/email/test"
|
||||
},
|
||||
{
|
||||
"name": "8.6 无配置测试邮件",
|
||||
"status": "PASS",
|
||||
"detail": "HTTP 400 (预期400)",
|
||||
"endpoint": "POST /admin/settings/email/test"
|
||||
},
|
||||
{
|
||||
"name": "9.1 日志统计",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/logs/stats"
|
||||
},
|
||||
{
|
||||
"name": "9.2 api_calls统计",
|
||||
"status": "PASS",
|
||||
"detail": "=0",
|
||||
"endpoint": "GET /admin/logs/stats"
|
||||
},
|
||||
{
|
||||
"name": "9.2 errors统计",
|
||||
"status": "PASS",
|
||||
"detail": "=0",
|
||||
"endpoint": "GET /admin/logs/stats"
|
||||
},
|
||||
{
|
||||
"name": "9.2 operation_logs统计",
|
||||
"status": "PASS",
|
||||
"detail": "=20",
|
||||
"endpoint": "GET /admin/logs/stats"
|
||||
},
|
||||
{
|
||||
"name": "9.2 audit_logs统计",
|
||||
"status": "PASS",
|
||||
"detail": "=4",
|
||||
"endpoint": "GET /admin/logs/stats"
|
||||
},
|
||||
{
|
||||
"name": "9.3 操作日志列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/logs/operations"
|
||||
},
|
||||
{
|
||||
"name": "9.4 操作日志数据",
|
||||
"status": "PASS",
|
||||
"detail": "共20条",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.5 操作日志含username",
|
||||
"status": "PASS",
|
||||
"detail": "admin",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.5 操作日志含action",
|
||||
"status": "PASS",
|
||||
"detail": "change_password",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.5 操作日志含target",
|
||||
"status": "PASS",
|
||||
"detail": "user",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.5 操作日志含created_at",
|
||||
"status": "PASS",
|
||||
"detail": "2026-06-01T09:02:19",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.6 审计日志列表",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/logs/audit-logs"
|
||||
},
|
||||
{
|
||||
"name": "9.7 审计日志数据",
|
||||
"status": "PASS",
|
||||
"detail": "共20条",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.8 审计日志含admin_name",
|
||||
"status": "PASS",
|
||||
"detail": "admin",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.8 审计日志含action",
|
||||
"status": "PASS",
|
||||
"detail": "update_email_config",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.8 审计日志含target_type",
|
||||
"status": "PASS",
|
||||
"detail": "email_config",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.8 审计日志含created_at",
|
||||
"status": "PASS",
|
||||
"detail": "2026-06-01T09:02:19",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.9 Token日志",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/logs/token-logs"
|
||||
},
|
||||
{
|
||||
"name": "9.10 Token日志数据",
|
||||
"status": "PASS",
|
||||
"detail": "共9条",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.11 付费日志",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/logs/payment-logs"
|
||||
},
|
||||
{
|
||||
"name": "9.12 付费日志数据",
|
||||
"status": "PASS",
|
||||
"detail": "共0条",
|
||||
"endpoint": ""
|
||||
},
|
||||
{
|
||||
"name": "9.13 操作日志分页",
|
||||
"status": "PASS",
|
||||
"detail": "OK",
|
||||
"endpoint": "GET /admin/logs/operations?page=1&page_size=5"
|
||||
},
|
||||
{
|
||||
"name": "9.14 分页格式",
|
||||
"status": "PASS",
|
||||
"detail": "total=181, items=5",
|
||||
"endpoint": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user