release: freeze V1.2 demo acceptance 2026-10-25
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Waiting to run
CI/CD Pipeline / Backend Build & Test (push) Waiting to run
CI/CD Pipeline / Admin Web Build (push) Waiting to run
CI/CD Pipeline / Mini Program Compile Check (push) Waiting to run
CI/CD Pipeline / Migration Validation (push) Blocked by required conditions
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Waiting to run
CI/CD Pipeline / E2E (live stack) (push) Blocked by required conditions

This commit is contained in:
WorkBuddy
2026-10-25 14:29:29 +08:00
parent f6744d3f91
commit 377429995c
137 changed files with 4136 additions and 175 deletions
@@ -0,0 +1,37 @@
# V1.2 Task 4 红娘团队管理完成报告
日期:2026-10-25
## 结论
- 代码实现:PASS
- 静态契约测试:PASS(2/2)
- 后端运营权限回归:PASS(6/6)
- 管理端类型检查:PASS
- 管理端生产构建:PASS
- Docker 重建与 V075 活栈迁移:PASS
## 已实现
1. 新增 `matchmaker.role.manage` 权限,仅授予 `platform_admin`、`super_admin`。
2. 新增红娘团队专用接口:成员列表、角色模板、新增、编辑、启用、停用、重置密码。
3. 后端白名单限制只能管理 `matchmaker`、`matchmaker_leader`,组长必须绑定组织,禁止通过专用接口分配管理员角色。
4. 新增管理端“红娘团队管理”页面和导航入口,展示 SELF/TEAM 数据范围并支持组织选择。
5. 角色调整复用现有运营账号服务和审计记录,不返回密码哈希。
## 活栈验收证据
- Compose 重建成功,backend/admin 容器已重新创建并健康运行。
- PostgreSQL Flyway 当前版本为 `075`。
- `e2e_admin / demo123` 登录成功,角色模板返回 `matchmaker`、`matchmaker_leader`,成员列表请求成功,当前返回 9 名成员。
- `e2e_matchmaker / demo123` 访问 `/api/v1/operator/matchmaker-team/members` 返回 `403`。
- 管理端 `/admin/matchmaker-team` 返回 `200`。
后续人工验收可使用:
```powershell
docker compose --env-file infrastructure/.env -f infrastructure/docker-compose.yml up -d --build
docker exec danyang-match-postgres psql -U postgres -d danyang_match -Atc "select version from flyway_schema_history order by installed_rank desc limit 1;"
```
并继续验证管理员创建普通红娘/组长、组长组织必填、角色变更后工作台数据范围。