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:
@@ -0,0 +1,49 @@
|
||||
# ECR-009
|
||||
|
||||
**Title:** 运营商业加深 Ops-D(订单筛选 · 展示价 · 退款只读)
|
||||
**Status:** Approved
|
||||
**Date:** 2026-08-07
|
||||
**Approved:** 2026-08-07(Human Goal → LOOP-RUN-002 supervised)
|
||||
**Change Level:** L2
|
||||
|
||||
## Change
|
||||
|
||||
1. Active Spec:`.ai/product/feature-spec/ops-commerce.md`
|
||||
2. migration `000015_ops_commerce`:`orders.refund_status` + `membership_plan_prices`
|
||||
3. `GET /api/v1/admin/orders` 增加 query 筛选
|
||||
4. `GET|PUT /api/v1/admin/membership/plan-prices`
|
||||
5. admin-h5:Orders 筛选 + Pricing 页
|
||||
6. OpenAPI · TRACEABILITY · TEST_REPORT · CODE_REVIEW
|
||||
|
||||
## Motivation
|
||||
|
||||
Ops-A 订单列表无筛选;展示价写死;无退款状态可见性。
|
||||
|
||||
## Scope
|
||||
|
||||
### Allowed
|
||||
|
||||
- 上列 Spec / migration / admin API / admin-h5
|
||||
- 审计(改价写 audit)
|
||||
|
||||
### Forbidden
|
||||
|
||||
- 真支付 · 退款执行 API · RBAC · UGC · 改 ESS
|
||||
|
||||
## Risk
|
||||
|
||||
| Risk | Mitigation |
|
||||
|------|------------|
|
||||
| 误改历史订单金额 | 只改展示价表,不 UPDATE orders.amount |
|
||||
| 筛选扫全表 | 限 limit≤100;索引 created_at/status |
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] 筛选与 refund_status
|
||||
- [ ] 展示价 GET/PUT
|
||||
- [ ] integration + build
|
||||
- [ ] Loop artifacts + Gate
|
||||
|
||||
## Trace
|
||||
|
||||
Spec `ops-commerce` · BD-2026-009 · LOOP-RUN-002
|
||||
Reference in New Issue
Block a user