Files
one-pipe-system/openspec/changes/update-agent-fund-low-balance-warning/tasks.md
luo ca338dd345
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m20s
fix: 测试环境显示develop分支
2026-07-20 11:02:05 +08:00

23 lines
1.3 KiB
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.
## 1. API Contract
- [ ] 1.1 更新代理资金概况相关数据模型,补充 `balance``frozen_balance``cash_available``low_balance_warning` 字段读取。
- [ ] 1.2 复用 `GET /api/admin/notifications``GET /api/admin/notifications/{id}/target` 的既有通知接口,不新增站内通知中心专用接口。
## 2. Agent Fund Overview UI
- [ ] 2.1 在代理资金概况中展示现金余额、冻结金额,并统一按分转元格式化。
- [ ] 2.2 当 `low_balance_warning=true` 时展示“现金余额不足100元”红色状态。
- [ ] 2.3 不展示阈值输入框,不把信用额度计入预警文案,也不由前端自行计算余额阈值。
## 3. Notification Navigation
- [ ] 3.1 在顶部通知抽屉中支持低余额通知跳转到对应店铺资金页。
- [ ] 3.2 当用户无目标页面权限或目标不可访问时,按统一错误页处理。
- [ ] 3.3 明确公共站内通知中心页面不在本次实现范围内。
## 4. Verification
- [ ] 4.1 验证现金可用余额高于、等于、低于100元三种情况下的状态展示正确且仅由 `low_balance_warning` 控制。
- [ ] 4.2 验证通知跳转到对应店铺资金页成功,无权限时进入统一错误处理。
- [ ] 4.3 运行相关前端校验,并执行 `openspec validate update-agent-fund-low-balance-warning --strict`