feat(risk): Enhance risk management functionality and access control

- Updated `RiskListAccess` and `ThresholdWriteAccess` to enforce access control in the risk repository and threshold repository, ensuring only authorized roles can perform sensitive operations.
- Introduced new methods in `RiskRepository` for counting pending alerts and listing alerts with access checks, improving data security and compliance.
- Enhanced the `chat.py` and `deps.py` files to integrate compliance roles into the risk management matrix, allowing for more granular access control.
- Updated documentation to reflect the new testing baseline of 825 passed tests, indicating improved stability and functionality across the application.

This update significantly strengthens the risk management capabilities, ensuring robust access control and compliance with organizational policies.
This commit is contained in:
2026-09-11 17:07:22 +08:00
parent 8556da489a
commit 793c0307f8
46 changed files with 1308 additions and 122 deletions
@@ -6,7 +6,7 @@
风控专员 Demo <code>STAFF-30001</code> 带 <code>risk_officer</code> + <code>risk_demo</code> 角色:
能看预警台账、处置、跑 AML 扫描,还能在模拟交易页触发规则引擎。
本地登录页一键切换,改 JWT 角色后需<strong>重新登录</strong>。
仓库基线 <code>merger</code> · <code>python -m pytest</code> → <strong>804 passed</strong>。
仓库基线 <code>merger</code> · <code>python -m pytest</code> → <strong>825 passed</strong>。
</p>
<div class="screen animate-in">