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:
@@ -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 < 500ms |
|
||||
| AC-O-01 | AuditLog membership.plans.update |
|
||||
Reference in New Issue
Block a user