refactor(erp): 调整 receivable 服务中的类型引用
- 移除了对 "erp/app/constant" 包的依赖 - 将 Ik3cloudStatus 字段的类型从 constant.Flag 更改为 Flag - 简化了包导入结构,提高代码可维护性
This commit is contained in:
@@ -2,7 +2,6 @@ package erp
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"erp/app/constant"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.kumo.work/shama/service/client"
|
"git.kumo.work/shama/service/client"
|
||||||
@@ -68,7 +67,7 @@ type ReplyReceivableInfo struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
CreatedStaffID int64 `json:"createdStaffID"`
|
CreatedStaffID int64 `json:"createdStaffID"`
|
||||||
Ik3cloudStatus constant.Flag `json:"ik3CloudStatus"`
|
Ik3cloudStatus Flag `json:"ik3CloudStatus"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
Products []ReceivableProductItem `json:"products"`
|
Products []ReceivableProductItem `json:"products"`
|
||||||
|
|||||||
Reference in New Issue
Block a user