Skip to content

chore: gofmt selected files#1318

Open
T1mn wants to merge 1 commit intoNoFxAiOS:devfrom
T1mn:chore/gofmt-selected-files
Open

chore: gofmt selected files#1318
T1mn wants to merge 1 commit intoNoFxAiOS:devfrom
T1mn:chore/gofmt-selected-files

Conversation

@T1mn
Copy link

@T1mn T1mn commented Jan 8, 2026

Pull Request | PR 提交

📋 选择专用模板 | Choose Specialized Template

我们现在提供了针对不同类型PR的专用模板,帮助你更快速地填写PR信息:
We now offer specialized templates for different types of PRs to help you fill out the information faster:

如何使用?| How to use?

  • 创建PR时,在URL中添加 ?template=backend.md 或其他模板名称
  • When creating a PR, add ?template=backend.md or other template name to the URL
  • 或者直接复制粘贴对应模板的内容
  • Or simply copy and paste the content from the corresponding template

💡 提示 Tip: 推荐 PR 标题格式 type(scope): description
例如: feat(trader): add new strategy | fix(api): resolve auth issue


📝 Description | 描述

English: gofmt selected backend files to fix spacing/alignment only; no logic changes.
中文: 仅对部分后端文件执行 gofmt,修正空格/缩进对齐,无业务改动。


🎯 Type of Change | 变更类型

  • 🐛 Bug fix | 修复 Bug
  • ✨ New feature | 新功能
  • 💥 Breaking change | 破坏性变更
  • 📝 Documentation update | 文档更新
  • 🎨 Code style update | 代码样式更新
  • ♻️ Refactoring | 重构
  • ⚡ Performance improvement | 性能优化
  • ✅ Test update | 测试更新
  • 🔧 Build/config change | 构建/配置变更
  • 🔒 Security fix | 安全修复

🔗 Related Issues | 相关 Issue

  • Closes # | 关闭 #N/A
  • Related to # | 相关 #N/A

📋 Changes Made | 具体变更

English: gofmt on api/utils_test.go, mcp/config.go, mcp/request.go, scripts/diagnose_orders.go, security/
url_validator.go to normalize field alignment/indentation.
中文: 对上述文件执行 gofmt,规范字段对齐与缩进,仅格式调整无逻辑改动。

  • gofmt api/utils_test.go
  • gofmt mcp/config.go
  • gofmt mcp/request.go
  • gofmt scripts/diagnose_orders.go
  • gofmt security/url_validator.go

🧪 Testing | 测试

  • Tested locally | 本地测试通过
  • Tests pass | 测试通过
  • Verified no existing functionality broke | 确认没有破坏现有功能(纯格式变更,未运行测试)

✅ Checklist | 检查清单

Code Quality | 代码质量

  • Code follows project style | 代码遵循项目风格
  • Self-review completed | 已完成代码自查
  • Comments added for complex logic | 已添加必要注释(不涉及复杂逻辑)

Documentation | 文档

  • Updated relevant documentation | 已更新相关文档(不涉及文档)

Git

  • Commits follow conventional format | 提交遵循 Conventional Commits 格式
  • Rebased on latest dev branch | 已 rebase 到最新 dev 分支
  • No merge conflicts | 无合并冲突

📚 Additional Notes | 补充说明

English: Pure formatting (gofmt); no behavior change. Tests not run.
中文: 仅格式化(gofmt),无行为变化;未运行测试。


By submitting this PR, I confirm | 提交此 PR,我确认:

  • I have read the Contributing Guidelines | 已阅读贡献指南
  • I agree to the Code of Conduct | 同意行为准则
  • My contribution is licensed under AGPL-3.0 | 贡献遵循 AGPL-3.0 许可证

@cla-assistant
Copy link

cla-assistant bot commented Jan 8, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant