style(formatter): 格式化代码中的缩进和空行

- 统一了结构体字段的对齐方式,保持一致的缩进
- 调整了 import 语句的顺序,将 fmt 移至合适位置
- 修复了多处多余的空行和空白字符
- 规范化了注释的缩进格式
- 整理了路由配置的缩进层次
- 调整了常量定义的对齐格式
This commit is contained in:
SunYF
2026-09-20 14:53:14 +08:00
parent f35e9b5b75
commit 60eacc9c4f
10 changed files with 66 additions and 62 deletions
+3 -3
View File
@@ -32,9 +32,9 @@ type Inventory struct {
// 品类(category):1=原材料 2=半成品 3=成品。与 manage_mode 正交:
// manage_mode 管"怎么管"(批次数量 vs SN 单件),category 管"是什么"(原料/半成品/成品)。
const (
InvCategoryRaw = 1
InvCategorySemi = 2
InvCategoryFinished = 3
InvCategoryRaw = 1
InvCategorySemi = 2
InvCategoryFinished = 3
)
func (Inventory) Fields() []ent.Field {