新增 filter_rules、admin.content_safety.read、列表/详情/试匹配 API 与 admin-h5「安全」页;禁审核写/UGC/真支付。 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
649 B
Markdown
26 lines
649 B
Markdown
# Backend Design: ECR-019 ContentSafety
|
|
|
|
| ID | BD-2026-019 |
|
|
| Status | Approved |
|
|
| Coding | Loop authorized |
|
|
| Level | L2 |
|
|
| Migration | YES 000020 |
|
|
|
|
## Backend Change Boundary
|
|
|
|
```text
|
|
Domain: FilterRule (read) + evaluate (no ModerationCase write)
|
|
App: AdminHandler → admin.Service → AdminRepo
|
|
API: GET /admin/content-safety/filter-rules[+/:id]
|
|
POST /admin/content-safety/evaluate
|
|
Permission: admin.content_safety.read
|
|
Migration: 000020 table + seed + perm
|
|
UI: admin-h5 /safety
|
|
```
|
|
|
|
## Out of boundary
|
|
|
|
ModerationCase · CrisisPolicy write · UGC · Payment · external moderation vendor
|
|
|
|
Rollback: down migration + remove routes/UI
|