docs: 风控模块 PRD v1.0/规则附表/架构 v1.1/开发计划 v1.1 + 文档联动修正

This commit is contained in:
2026-09-06 15:09:13 +08:00
parent 1ddd44a6cb
commit 487b9da5b1
15 changed files with 914 additions and 6 deletions
+6 -1
View File
@@ -49,9 +49,10 @@
```text
api/ → 路由(chat、knowledge、admin);薄,不含业务 【空壳】
service/ → agent_service、rag_service、memory_service 【空壳】
service/ → agent_service、rag_service、memory_service、risk/* 【空壳】
tool/ → document_parser、embedding_tool、milvus_tool 【空壳】
repository/ → core_ro(Core 只读);后续 agent 库 Repository 【core_ro 已实现】
gateway/ → 模拟交易网关(外部 Core 交易系统替身,非 Agent 分层)【PRD v1.0 新增】
model/ → schemas(Pydantic)、entities(ORM) 【占位】
config/ → settings、database 【settings 已实现】
utils/ → response、exceptions、logger 【占位】
@@ -59,12 +60,16 @@ main.py → FastAPI 入口;当前仅 /health
允许:api → service → tool / repository / model / config
禁止:api 直连 Milvus/MySQL 写复杂逻辑;tool 写业务流程;repository 写 Core
例外:app/gateway/ 为模拟外部系统模块(PRD v1.0),仅 gateway_repository
可 INSERT jinrong_core.core_trade;生产环境由真实交易系统回调替代
```
**脚本(非 app 包):**
```text
scripts/core/ → jinrong_core DDL + 种子 + reset.ps1
scripts/agent/ → jinrong_agent 种子(risk_aml_list AML 名单等)
scripts/demo/ → 演示数据准备(prepare_risk_demo.sql,reset 后重跑)
scripts/sync/ → sync_advisor_rel.py、sync_neo4j.py
scripts/dev/ → rbac-seed-reference.md(联调账号)
```