Files
xk-of-api/.cursor/rules/00-global.mdc
2026-07-18 05:58:41 +08:00

13 lines
660 B
Go
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.
---
description: 萧康云医项目全局编码规则
alwaysApply: true
---
# 全局规则
- 代码方法结构体接口关键业务分支复杂判断关键配置均需要编写清晰的中文注释
- 注释要说明业务意图输入输出边界条件和注意事项避免只重复代码字面含义
- 模块职责要清晰避免跨层调用重复实现和无关逻辑混入
- 新增或修改功能时优先遵循项目已有目录结构命名方式封装习惯和错误处理方式
- 公共能力应沉淀为可复用模块或组件避免在多个页面控制器或服务中复制粘贴