style: 清理 gofmt 偏差

纯对齐与行尾空行调整,无逻辑变更。gofmt -l 现输出为空,
配合 make fmt 可将格式检查直接纳入 CI。
This commit is contained in:
yml2213
2026-10-06 19:43:43 +08:00
parent b1089f37b2
commit 44ec142395
6 changed files with 17 additions and 20 deletions
-1
View File
@@ -273,4 +273,3 @@ func NewGormLogger(mode string) logger.Interface {
},
)
}
+13 -13
View File
@@ -58,19 +58,19 @@ type ResponseEnvelope struct {
// Product 代表乐玩平台商品
type Product struct {
ID string `json:"id"`
CategoryId string `json:"categoryId"`
CategoryName string `json:"categoryName"`
Name string `json:"name"`
Summary string `json:"summary"`
ThumbnailUrl string `json:"thumbnailUrl"`
Stock int64 `json:"stock"`
RoleDeliveryLimit *int `json:"roleDeliveryLimit"`
DeliveryType string `json:"deliveryType"` // LINK_BINDING, EMAIL_BINDING
EffectiveUnitPrice string `json:"effectiveUnitPrice"`
AccessMode string `json:"accessMode"` // PURCHASE, VIEW
UpdatedAt string `json:"updatedAt"`
ProductVersion string `json:"productVersion"`
ID string `json:"id"`
CategoryId string `json:"categoryId"`
CategoryName string `json:"categoryName"`
Name string `json:"name"`
Summary string `json:"summary"`
ThumbnailUrl string `json:"thumbnailUrl"`
Stock int64 `json:"stock"`
RoleDeliveryLimit *int `json:"roleDeliveryLimit"`
DeliveryType string `json:"deliveryType"` // LINK_BINDING, EMAIL_BINDING
EffectiveUnitPrice string `json:"effectiveUnitPrice"`
AccessMode string `json:"accessMode"` // PURCHASE, VIEW
UpdatedAt string `json:"updatedAt"`
ProductVersion string `json:"productVersion"`
}
type ProductListResult struct {