feat(api): 更新代销平台 API v0.1,增强适当性检查功能
- 在 `risk_suitability_log` 表中新增 `check_source` 枚举值 `platform`,支持代销平台的适当性检查。 - 更新相关 SQL 脚本以适应新的数据结构,确保数据一致性。 - 修改文档以反映 API 的最新状态和测试基线,确保文档与实现保持一致。 - 测试基线更新至 530 passed, 0 skipped,确保系统稳定性。 此更新为代销平台提供了更全面的适当性检查能力,提升了系统的功能性与可维护性。
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
| 用途 | 一次 `check_suitability()` 判定 + 审计上下文,**唯一可阻断交易** 的场景 |
|
||||
| 谁写 | **风控 Agent**(含交易前钩子 service 账号) |
|
||||
| 谁读 | 客户(本人)、代理人(名下客户) |
|
||||
| 关键字段 | `trace_id` · `customer_id` · `product_id` · `customer_risk_level`(L0 C档) · `product_risk_level`(R档) · `match_result`(allowed/allowed_with_disclosure/forbidden/risk_expired/professional_exempt) · `mismatch_type` · `is_blocked` · `requires_disclosure` · `needs_branch_confirm`(FM-01) · `risk_was_expired`(FM-03) · `block_response_code`(SUIT_*) · `check_source`(r02_trade/r02_chat/c11_inquiry/manual) · `actor_id` · `rule_refs` |
|
||||
| 关键字段 | `trace_id` · `customer_id` · `product_id` · `customer_risk_level`(L0 C档) · `product_risk_level`(R档) · `match_result`(allowed/allowed_with_disclosure/forbidden/risk_expired/professional_exempt) · `mismatch_type` · `is_blocked` · `requires_disclosure` · `needs_branch_confirm`(FM-01) · `risk_was_expired`(FM-03) · `block_response_code`(SUIT_*) · `check_source`(r02_trade/r02_chat/c11_inquiry/manual/**platform**) · `actor_id` · `rule_refs` |
|
||||
| 关键查询 | 客户查本人能否买某产品;代理人查名下客户适当性历史 |
|
||||
| 关联 | ← `core_ro.check_suitability()` 返回值逐项映射(见下方映射表) |
|
||||
| ⚠️ 红线 | 阻断时同写 `audit_log`(同 trace_id);`blocked=true` 仅 R-02 API 可对外返回 |
|
||||
|
||||
Reference in New Issue
Block a user