Files
junhong_cmp_fiber/.sisyphus/notepads/tech-debt-cleanup/decisions.md
huang 42c5ec912f
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m13s
feat: 技术债务清理(支付配置动态化、API文档补全、轮询常量提取、废弃代码清理)
2026-04-14 11:11:15 +08:00

16 lines
835 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.
# tech-debt-cleanup 决策记录
## [2026-04-14] 初始化
### 任务执行顺序策略
1. **优先执行独立任务(并行)**Task 2 (API docs)、Task 3 (polling constants)、Task 4 (deprecated cleanup)、Task 7 (unused constants)、Task 8 (empty files)
2. **Task 1支付配置**:需要先确认 pkg/payment/ 现有结构
3. **Task 5Model 字段)**代码变更可与其他任务并行DB 迁移执行需 DB 环境
4. **Task 6DTO _name**:分模块逐批,每批独立验证
5. **Task 0DB迁移合并**:需要 DB 环境,最后执行
### 支付配置动态加载架构
- 新建 `pkg/payment/loader.go`,定义 `PaymentConfigLoader` 接口
- Redis 缓存 TTL 1hkey: `payment:config:{configID}`
- 权限检查:仅用户主动操作时校验;支付回调场景验证商户号一致性