feat(ECR-019): ContentSafety FilterRule 只读并 Closed

新增 filter_rules、admin.content_safety.read、列表/详情/试匹配 API 与 admin-h5「安全」页;禁审核写/UGC/真支付。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 22:13:22 +08:00
co-authored by Cursor
parent de025d72bc
commit cae3380cbf
33 changed files with 724 additions and 6 deletions
+32
View File
@@ -0,0 +1,32 @@
# TEST_REPORT — ECR-019 ContentSafety
Date: 2026-08-07 · Loop continuous · commit: (pending)
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestContentSafetyFilterRules -count=1
npm run build:admin
python3 scripts/ess-validate.py --phase review --ecr ECR-019
python3 scripts/ess-gate-check.py --ecr ECR-019
```
## Results
| Check | Result |
|-------|--------|
| TestContentSafetyFilterRules | PASS |
| build:admin | PASS |
| ess-validate review | PASS |
## AC
| ID | Evidence |
|----|----------|
| AC-F-01 | list 含 system 种子 |
| AC-F-02 | evaluate「不想活了」命中 |
| AC-F-03 | 未知 id → 404 |
| AC-S-01 | 无 token → 401 |
| AC-S-02 | 仅 users.read → 403 |
| AC-P-01 | list &lt; 500ms |
| AC-O-01 | evaluate 不写工单 |