Files
digital-psychology/docs/TEST_REPORT/ECR-006.md
T
jackyu66gitandCursor 879bf70cb7
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s
feat(ECR-006): 落地运营后台 Phase A(admin API + admin-h5)
新增独立鉴权的 /api/v1/admin 与 Vue 控制台;会员授予与审计同事务,并补集成/单测。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 18:35:53 +08:00

37 lines
887 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# TEST_REPORT — ECR-006 Ops Admin Phase A
Date: 2026-08-06
## Commands
```bash
cd apps/api && go test ./internal/middleware/ ./internal/service/admin/ ./internal/integration/ \
-count=1 -run 'TestBearerToken|TestPlanDays|TestAdminOps'
npm run build:admin
```
## Results
| Check | Result |
|-------|--------|
| `TestBearerToken` | PASS |
| `TestPlanDays` | PASS |
| `TestAdminOpsPhaseA`401 · login · grant+audit 原子 · lowercase logout | PASS |
| `npm run build:admin` | PASS(既有) |
## Spec mapping
| Spec | Evidence |
|------|----------|
| T1 无 token → 401 | TestAdminOpsPhaseA |
| T2 登录 | login 200 |
| T3 列表 users | list users len>0 |
| T4 grant + audit | membership.active + audit target_id |
| T5 admin-h5 | build 绿 |
## Follow-up fixesreview
- Grant/Audit 单事务
- Logout `bearer`/`Bearer` 一致
- Bootstrap 失败日志