From 4c29a90baca879c51cc0d8d1a984c56c50c845ff Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 31 Aug 2022 15:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=90=E8=B4=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/interface/order.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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