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>
33 lines
784 B
Markdown
33 lines
784 B
Markdown
# BD-2026-009 — Ops-D Commerce
|
||
|
||
Status: Approved
|
||
**ECR:** ECR-009
|
||
**Date:** 2026-08-07
|
||
|
||
## Backend Change Boundary
|
||
|
||
### In
|
||
|
||
- `orders.refund_status` TEXT NOT NULL DEFAULT `none`(`none|pending|refunded|rejected`)
|
||
- 表 `membership_plan_prices(plan PRIMARY KEY, display_cents INT, updated_at)`
|
||
- `AdminRepo.ListOrders` 增加 Filter 结构
|
||
- `AdminRepo` Get/Upsert plan prices + audit `plan_price.upsert`
|
||
- Handler query 绑定;OpenAPI
|
||
|
||
### Out
|
||
|
||
- 支付渠道 · 退款出账 · Handler 直连 DB
|
||
|
||
### Ownership
|
||
|
||
| Layer | Owner |
|
||
|-------|--------|
|
||
| Repository | AdminRepo |
|
||
| Service | admin.Service |
|
||
| Handler | AdminHandler |
|
||
| UI | admin-h5 Orders / Pricing |
|
||
|
||
## Architecture Evidence
|
||
|
||
仍:Handler → Service → Repository;无新外部依赖。
|