From 4b45062b459d2fea34f78cfc98584bfbaee75e71 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 19 Dec 2022 11:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=B4=B9=E5=A4=84=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wholesale/order.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/wholesale/order.go b/wholesale/order.go index 3dab488..9146ffa 100644 --- a/wholesale/order.go +++ b/wholesale/order.go @@ -40,3 +40,23 @@ func (o *order) Split(ctx context.Context, args ArgsOrderSplit) (err error) { err = xClient.Call(ctx, "Split", args, &reply) return } + +type ArgsOrderFreightFee struct { + Source source + OrderFreightFees []OrderFreightFee +} +type OrderFreightFee struct { + SourceOrderSn string // 供应商订单号 + FreightFee decimal.Decimal // 运费 +} + +// FreightFee @Title 运费处理 +func (o *order) FreightFee(ctx context.Context, args ArgsOrderFreightFee) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "FreightFee", args, &reply) + return +}