feat: 技术债务清理(支付配置动态化、API文档补全、轮询常量提取、废弃代码清理)
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m13s

This commit is contained in:
2026-04-14 11:11:15 +08:00
parent c0b64c9e30
commit 42c5ec912f
63 changed files with 1979 additions and 775 deletions

View File

@@ -0,0 +1,15 @@
# 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}`
- 权限检查:仅用户主动操作时校验;支付回调场景验证商户号一致性