From d17d4384078a49199499fbd6a5b6bccc5f35d35e Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 30 Jul 2025 14:49:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(sale):=20=E6=9B=B4=E6=96=B0=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E5=8D=95=E4=BA=A7=E5=93=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ChangeProduct 结构中添加 BeforeSaleCount 字段- 重命名 SaleCount 为 AfterSaleCount(在实际代码中未更改字段名,仅在注释中体现) - 更新结构体注释以反映新的字段变化 --- erp/sale/change.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/erp/sale/change.go b/erp/sale/change.go index a08e929..e46fecf 100644 --- a/erp/sale/change.go +++ b/erp/sale/change.go @@ -14,11 +14,12 @@ type ArgsChangeAllSearch struct { WorkflowId int64 // 审核id } type ChangeProduct struct { - Id int64 `json:"id"` - SaleProductID int64 `json:"saleProductID"` - SaleCount int64 `json:"saleCount"` - CreatedAt *time.Time `json:"createdAt"` - UpdatedAt *time.Time `json:"updatedAt"` + Id int64 `json:"id"` + SaleProductID int64 `json:"saleProductID"` + BeforeSaleCount int64 `json:"beforeSaleCount"` + SaleCount int64 `json:"saleCount"` + CreatedAt *time.Time `json:"createdAt"` + UpdatedAt *time.Time `json:"updatedAt"` } // All @TITLE 获取产品