Files
digital-psychology/docs/BACKEND_DESIGN/BD-2026-009-ops-commerce.md
T
jackyu66gitandCursor ca3b13554c 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>
2026-08-07 02:45:32 +08:00

33 lines
784 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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;无新外部依赖。