This commit is contained in:
12
openspec/changes/add-agent-distribution-code/tasks.md
Normal file
12
openspec/changes/add-agent-distribution-code/tasks.md
Normal file
@@ -0,0 +1,12 @@
|
||||
## 1. Proposal Review
|
||||
- [x] 1.1 Review and approve this proposal before implementation
|
||||
|
||||
## 2. Implementation
|
||||
- [x] 2.1 Add a typed shop-detail API method for `/api/admin/shops/{shop_id}` and its `distribution_code` field
|
||||
- [x] 2.2 Add a distribution-code page that checks the current user type, fetches the current shop, and renders the code locally as a QR
|
||||
- [x] 2.3 Register the page and add the agent-only home shortcut immediately after withdrawal management using the supplied icon
|
||||
- [x] 2.4 Handle missing shop/code and request failure states
|
||||
|
||||
## 3. Verification
|
||||
- [x] 3.1 Run targeted ESLint and type-check; record unrelated existing type-check failures
|
||||
- [x] 3.2 Verify role gating, `shop_id` lookup, and QR content mapping, and build H5 and WeChat mini-program targets
|
||||
Reference in New Issue
Block a user