feat(ECR-018): Entitlement 用户权益只读并 Closed

聚合 GET /admin/users/:id/entitlements(Membership∪DeepAccess∪问答额度)与 admin-h5 权益 Tab;无 migration / 无真支付。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 19:26:15 +08:00
co-authored by Cursor
parent 37b91e51b8
commit c81f57a7d1
28 changed files with 597 additions and 12 deletions
@@ -0,0 +1,24 @@
# Backend Design: ECR-018 Entitlement
| ID | BD-2026-018 |
| Status | Approved |
| Coding | Loop authorized |
| Level | L2 |
| Migration | NO |
## Backend Change Boundary
```text
Domain: Entitlement read model (Membership DeepAccess ask quotas)
App: AdminHandler → admin.Service → AdminRepo + ReportRepo.GetMembership
API: GET /api/v1/admin/users/{id}/entitlements
Permission: admin.users.read
Migration: NO
UI: admin-h5 UserDetail「权益」Tab
```
## Out of boundary
Payment gateway · new entitlement matrix table · order mutation · UGC
Rollback: remove route + UI tab(无 schema