feat(ECR-009): Ops-D order filters, plan display prices, refund status

LOOP-RUN-002 sample: admin order multi-filter, membership display
price catalog, read-only refund_status. No real payment or RBAC.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 02:45:32 +08:00
co-authored by Cursor
parent 7ab9add5dd
commit ca3b13554c
37 changed files with 2169 additions and 25 deletions
+2 -1
View File
@@ -234,7 +234,8 @@ UI **不出现「塔罗」**。禁止神谕吉凶、恐吓话术。
| Phase A `[Ops]` | 登录 · 用户/订单查询 · 会员授予 · 审计 · `apps/admin-h5`ECR-006 Closed |
| Phase B `[Ops]` | 行为分析:自有埋点 + 管理端「数据」看板(**ECR-007 Implemented** · Spec `ops-analytics.md` |
| Phase C `[Ops]` | 内容:首页宫格 CRUD · 测评上下架(**ECR-008 Implemented** · Spec `ops-content.md` |
| Phase D+ | 商业加深 · RBAC · 封禁 · 推送(各开独立 ECR |
| Phase D `[Ops]` | 商业加深:订单筛选 · 展示价 · 退款只读(**ECR-009** · Spec `ops-commerce.md` |
| Phase E+ | RBAC · 封禁 · 推送(各开独立 ECR) |
不计入 P1 Complete;不进入五 Tab。
+2 -1
View File
@@ -22,7 +22,8 @@
| [image-card.md](image-card.md) | 意象卡片 | §2.8 | `/cards` | P2 设计 |
| [ops-admin.md](ops-admin.md) | 运营后台 | §7 | `admin-h5` `/` `/users/:id` … | Ops-A |
| [ops-analytics.md](ops-analytics.md) | 运营行为分析(埋点+数据看板) | §7 | `admin-h5` `/analytics` · H5 track | Ops-B · ECR-007 Implemented |
| [ops-content.md](ops-content.md) | 运营内容(宫格+测评上下架) | §7 | `admin-h5` `/content` · `GET /home/tools` | Ops-C · ECR-008 Approved |
| [ops-content.md](ops-content.md) | 运营内容(宫格+测评上下架) | §7 | `admin-h5` `/content` · `GET /home/tools` | Ops-C · ECR-008 Implemented |
| [ops-commerce.md](ops-commerce.md) | 运营商业加深(订单筛选+展示价+退款只读) | §7 | `admin-h5` `/orders` `/pricing` | Ops-D · ECR-009 |
新功能:复制 `_TEMPLATE.md` → 填满 → 在本表登记 → 再编码。
+48
View File
@@ -0,0 +1,48 @@
# Feature Spec: 运营商业加深(Ops-D
> Status: `Active` · Map: `§7 Phase D` · Phase: `Ops-D` · ECR: `ECR-009`
> 规范:[../feature-design.md](../feature-design.md)
> 上游:Ops-A/B/CECR-006/007/008
---
## 1. 功能定义
| 字段 | 内容 |
|---|---|
| Name | 运营商业加深 Ops-D |
| Purpose | 订单可筛选;套餐展示价可配;退款状态只读可见 |
| Business Goal | 运营无需改库即可查单与维护展示价 |
| In | Out |
|---|---|
| 订单筛选:status / kind / fromto / user_id | 真支付 · 退款工单流转 |
| `refund_status` 只读字段 | 优惠券 · 发票 |
| 会员套餐展示价 CRUD(分) | RBACOps-E |
---
## 2. 验收
**Given** 库内多状态订单
**When** `GET /api/v1/admin/orders?status=paid&kind=membership&from=&to=`
**Then** 仅返回匹配项,且含 `refund_status`
**Given** Admin 配置 `monthly` 展示价
**When** `PUT /api/v1/admin/membership/plan-prices`
**Then** `GET` 返回新价;不改历史 `orders.amount_cents`
---
## 3. 页面
| 路由 | 说明 |
|---|---|
| `/orders` | 增加筛选条 + 退款状态列 |
| `/pricing` | 套餐展示价表 |
---
## 4. 非目标
真支付网关 · 退款执行 · Ops-E 权限矩阵 · UGC