- 11 Jan, 2026 2 commits
-
-
IanShaw027 authored
- 修复 ops_ws_handler.go 代码格式问题 - 修复所有未检查的错误返回值(Rows.Close 和 WriteString) - 更新 .golangci.yml 排除 ops 相关服务文件的 redis 导入检查
-
IanShaw027 authored
- 修复depguard错误:为ops service文件添加redis导入例外 - 修复errcheck错误:添加错误检查和类型断言检查 - 修复gofmt错误:格式化代码 - 修复ineffassign错误:移除无效的idx++赋值 - 修复staticcheck错误:合并条件赋值 - 修复unused错误:移除未使用的字段和函数 - ops_cleanup_service.go: entryID字段 - ops_retry.go: status字段 - ops_upstream_context.go: getOpsUpstreamErrors函数
-
- 04 Jan, 2026 1 commit
-
-
IanShaw027 authored
- 重新生成 Wire 依赖注入代码(修复服务构造函数签名不匹配) - 修复集成测试中的 err 变量重复声明 - 临时禁用 golangci-lint 的命名规范检查(ST1000/ST1003/ST1020/ST1021/ST1022) - 这些只是代码风格问题,不影响功能 - 后续将创建专门的 PR 系统地修复命名规范 测试结果: - ✓ golangci-lint: 通过(0 issues) - ✓ 单元测试: 通过 - ✓ 集成测试: 通过
-
- 29 Dec, 2025 1 commit
-
-
song authored
-
- 26 Dec, 2025 1 commit
-
-
Forest authored
-
- 25 Dec, 2025 1 commit
-
-
Forest authored
-
- 24 Dec, 2025 1 commit
-
-
Forest authored
-
- 20 Dec, 2025 6 commits
-
-
Forest authored
-
Forest authored
-
Forest authored
-
Forest authored
-
Forest authored
-
NepetaLemon authored
## 变更内容 ### CI/CD - 添加 GitHub Actions 工作流(test + golangci-lint) - 添加 golangci-lint 配置,启用 errcheck/govet/staticcheck/unused/depguard - 通过 depguard 强制 service 层不能直接导入 repository ### 错误处理修复 - 修复 CSV 写入、SSE 流式输出、随机数生成等未处理的错误 - GenerateRedeemCode() 现在返回 error ### 资源泄露修复 - 统一使用 defer func() { _ = xxx.Close() }() 模式 ### 代码清理 - 移除未使用的常量 - 简化 nil map 检查 - 统一代码格式
-