Files
leaudit-platform-frontend/app
TanWenyan 4b9d9868c2 feat(evaluation): 将评查点 CRUD 操作从 PostgREST 迁移到 FastAPI
完成评查点管理的完整 API 迁移:
-  createEvaluationPoint: POST /api/v3/evaluation-points
-  updateEvaluationPoint: PUT /api/v3/evaluation-points/{id}
-  getEvaluationPoint: GET /api/v3/evaluation-points/{id}
-  deleteRule: DELETE /api/v3/evaluation-points/{id}
-  getRulesList: GET /api/v3/evaluation-points (带查询参数)

主要变更:
1. 将所有 postgrest* 函数调用替换为 apiRequest (axios-client)
2. 从 PostgREST 查询参数格式迁移到 REST API 路径格式
3. 简化响应处理逻辑 (FastAPI 返回清晰的 JSON)
4. 修复类型定义 (ApiRule 接口字段可选化)
5. 移除复杂的 PostgREST 嵌套查询逻辑

技术细节:
- 删除函数返回类型改为 {success: boolean, message: string}
- getRulesList 从 226 行简化到 122 行
- 所有接口统一使用 JWT Bearer 认证
- 响应格式:{data: T[], total: number, page: number, page_size: number}

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 17:39:02 +08:00
..
2025-11-22 16:03:56 +08:00
2025-06-04 11:25:53 +08:00
2025-11-24 18:41:14 +08:00