From 56b80d91c7830a05b4c618c3615db64fc773447f Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 17 Dec 2025 10:28:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(erp):=20=E8=B0=83=E6=95=B4=20receivabl?= =?UTF-8?q?e=20=E6=9C=8D=E5=8A=A1=E4=B8=AD=E7=9A=84=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了对 "erp/app/constant" 包的依赖 - 将 Ik3cloudStatus 字段的类型从 constant.Flag 更改为 Flag - 简化了包导入结构,提高代码可维护性 --- erp/receivable.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erp/receivable.go b/erp/receivable.go index 8fc2cca..1a3696f 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -2,7 +2,6 @@ package erp import ( "context" - "erp/app/constant" "time" "git.kumo.work/shama/service/client" @@ -68,7 +67,7 @@ type ReplyReceivableInfo struct { CurrencyRate decimal.Decimal `json:"currencyRate"` CurrencySymbol string `json:"currencySymbol"` CreatedStaffID int64 `json:"createdStaffID"` - Ik3cloudStatus constant.Flag `json:"ik3CloudStatus"` + Ik3cloudStatus Flag `json:"ik3CloudStatus"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` Products []ReceivableProductItem `json:"products"`