feat(ECR-020): QualityFeedback 问答质量反馈并 Closed

新增 ask_quality_feedback、运营/C端评分 API 与 admin-h5 问答反馈区;禁改消息/UGC/真支付。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 23:02:13 +08:00
co-authored by Cursor
parent e270a38393
commit 93227d3316
34 changed files with 932 additions and 9 deletions
+32
View File
@@ -0,0 +1,32 @@
# TEST_REPORT — ECR-020 QualityFeedback
Date: 2026-08-07 · Loop continuous · commit: (pending)
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestQualityFeedback -count=1
npm run build:admin
python3 scripts/ess-validate.py --phase review --ecr ECR-020
python3 scripts/ess-gate-check.py --ecr ECR-020
```
## Results
| Check | Result |
|-------|--------|
| TestQualityFeedback | PASS |
| build:admin | PASS |
| ess-validate review | PASS |
## AC
| ID | Evidence |
|----|----------|
| AC-F-01 | admin POST → list 可见 |
| AC-F-02 | user POST → 200 |
| AC-F-03 | rating=9 → 400 |
| AC-S-01 | 无 token list → 401 |
| AC-S-02 | 仅 ask.read POST → 403 |
| AC-P-01 | list &lt; 500ms |
| AC-O-01 | AuditLog ask.feedback.create |