feat(api): 更新代销平台 API v0.1,增强适当性检查功能

- 在 `risk_suitability_log` 表中新增 `check_source` 枚举值 `platform`,支持代销平台的适当性检查。
- 更新相关 SQL 脚本以适应新的数据结构,确保数据一致性。
- 修改文档以反映 API 的最新状态和测试基线,确保文档与实现保持一致。
- 测试基线更新至 530 passed, 0 skipped,确保系统稳定性。

此更新为代销平台提供了更全面的适当性检查能力,提升了系统的功能性与可维护性。
This commit is contained in:
2026-09-08 21:44:16 +08:00
parent ef56c56435
commit c9cac1cdf9
20 changed files with 204 additions and 32 deletions
@@ -15,7 +15,7 @@
| S2 接缝 | `auth_adapter.module_auth_from_host()` 已接线 |
| trace 中间件 | ApiError / AppError / PermissionDenied / RequestValidationError / StarletteHTTPException **re-raise**;仅未捕获 → 500 |
| 边界测试 | `tests/test_module_boundary.py` 全绿(宿主 D 类文件排除跨层扫描) |
| 测试基线 | **`python -m pytest` → 502 passed, 1 skipped** |
| 测试基线 | **`python -m pytest` → 530 passed, 0 skipped** |
**架构结论:** 宿主 `gateway/` 与模块 `deps.py` **双栈并存**;对外 token 统一;模块 API 禁止 import `app/gateway/`。