feat(ECR-014): MembershipPlan 套餐配置并 Closed

membership_plans 表、admin 套餐页、Grant/CreateOrder 读表;
Loop continuous 自动 Approve/Closed。Next:ECR-015 RedemptionCode。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 18:03:38 +08:00
co-authored by Cursor
parent e25cd94b0c
commit 882c01d81a
31 changed files with 887 additions and 27 deletions
+29
View File
@@ -0,0 +1,29 @@
# TEST_REPORT — ECR-014 MembershipPlan
Date: 2026-08-07 · Loop continuous
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestMembershipPlans -count=1
npm run build:admin
```
## Results
| Check | Result |
|-------|--------|
| TestMembershipPlans | PASS |
| build:admin | PASS |
## AC
| ID | Evidence |
|----|----------|
| AC-F-01 | GET plans ≥3 codes |
| AC-F-02 | PUT month → GET 一致 |
| AC-F-03 | grant month 200(读表 duration |
| AC-S-01 | RequirePermission middleware(同 013A 模式) |
| AC-S-02 | 无 token → 401 |
| AC-P-01 | GET &lt; 500ms |
| AC-O-01 | AuditLog membership.plans.update |