diff --git a/supply/interface/order.go b/supply/interface/order.go index acf9975..e4f0bd1 100644 --- a/supply/interface/order.go +++ b/supply/interface/order.go @@ -7,7 +7,7 @@ import ( type OrderInterface interface { // FreightFee 获取运费 - FreightFee(ctx context.Context, args ArgsOrderFreightFee, freightFee *decimal.Decimal) error + FreightFee(ctx context.Context, args ArgsOrderFreightFee, freightFee *ReplyOrderFreightFee) error // Submit 下单 Submit(ctx context.Context, args ArgsOrderSubmit, sourceOrderSn *string) error // LadingBill @Title 提单 @@ -21,6 +21,10 @@ type ArgsOrderFreightFee struct { Skus []OrderFreightFeeSkuItem // 商品信息 Address string // 地址 } +type ReplyOrderFreightFee struct { + FreightFee decimal.Decimal // 运费 + ErrMsg string // 错误信息 +} type OrderFreightFeeSkuItem struct { SourceSkuId string // 源skuId