feat(ECR-010): Ops-E 系统运营;修复登出解绑;P2 Complete
落地管理员 RBAC/封禁/推送任务 stub,logout 解绑 device 并统一各页 ensureAccount,同时收口 P2 生日生成与状态文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# ECR-010
|
||||
|
||||
**Title:** 运营系统 Ops-E(RBAC · 封禁 · 推送占位)
|
||||
**Status:** Approved
|
||||
**Date:** 2026-08-11
|
||||
**Approved:** 2026-08-11(Human 确认实施计划)
|
||||
**Change Level:** L2
|
||||
|
||||
## Change
|
||||
|
||||
1. Active Spec:`.ai/product/feature-spec/ops-system.md`
|
||||
2. migration `000016_ops_system`:`admin_accounts.role` · `users.status` CHECK · `push_jobs`
|
||||
3. Admin:ban/unban · admins 列表/改角色 · push-jobs CRUD;Me 含 role
|
||||
4. DeviceAuth 拒绝 `banned`(40310)
|
||||
5. admin-h5:封禁 · `/push` · `/admins`(super)· 导航裁剪
|
||||
6. OpenAPI · TRACEABILITY · TEST_REPORT · CODE_REVIEW
|
||||
|
||||
## Motivation
|
||||
|
||||
全员等同 Admin;无封禁与推送占位,运维只能改库。
|
||||
|
||||
## Scope
|
||||
|
||||
### Allowed
|
||||
|
||||
- 上列 Spec / migration / admin API / DeviceAuth / admin-h5
|
||||
|
||||
### Forbidden
|
||||
|
||||
- 真推送通道 · 细粒度权限矩阵 · UGC · 真支付 · 改 ESS
|
||||
|
||||
## Risk
|
||||
|
||||
| Risk | Mitigation |
|
||||
|------|------------|
|
||||
| 误封正常用户 | 审计 + 一键 unban |
|
||||
| ops 越权写 | service 层角色校验 + integration |
|
||||
| 封禁未生效 | DeviceAuth 统一闸门 |
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [x] ops 写定价/授予会员 → 403
|
||||
- [x] ban 后 C 端 40310;unban 恢复
|
||||
- [x] push draft CRUD;不下发
|
||||
- [x] integration + admin-h5 build
|
||||
|
||||
## Trace
|
||||
|
||||
Spec `ops-system` · BD-2026-010 · TASK-010
|
||||
Reference in New Issue
Block a user