RELATIONSHIPS
- • ScanInput → OrderMessage (0..1, RabbitMQ 路径持有引用)
- • ScanResult → RiskResult (1..*, 风控产出)
- • ScanResult → StageResult (1..*, 每阶段执行记录)
- • AlertReport → RiskResult (1..*, 按 confidence 降序)
- • AlertReport → AlertNote (0..*, unknown_code 等)
- • OrderInfoResponse → DBConfig (0..1, 数据库配置)
RISKRESULT
- • 6 个必填字段 (# 前缀) + 2 个选填
- • is_known_pattern: bool (true=已知, false=未知)
- • confidence: 0-5 整数, 0 合法
- • Validate() 校验必填 + credibility 范围
- • JSON tag 使用 snake_case