Files
gt-agent-company/openspec/changes/add-agent-distribution-code/tasks.md
luo 2b4fd6fff8
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m22s
feat: 分销码
2026-10-08 11:00:51 +08:00

778 B

1. Proposal Review

  • 1.1 Review and approve this proposal before implementation

2. Implementation

  • 2.1 Add a typed shop-detail API method for /api/admin/shops/{shop_id} and its distribution_code field
  • 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
  • 2.3 Register the page and add the agent-only home shortcut immediately after withdrawal management using the supplied icon
  • 2.4 Handle missing shop/code and request failure states

3. Verification

  • 3.1 Run targeted ESLint and type-check; record unrelated existing type-check failures
  • 3.2 Verify role gating, shop_id lookup, and QR content mapping, and build H5 and WeChat mini-program targets