From 127c4635b4e9f857deca1d8c25f89427b53a9e42 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 2 Sep 2022 09:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/order.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/supply/order.go b/supply/order.go index b02ab6e..3684ff0 100644 --- a/supply/order.go +++ b/supply/order.go @@ -36,13 +36,18 @@ func (o *order) Split(ctx context.Context, args ArgsOrderSplit) (err error) { return } +type ArgsOrderCancel struct { + Source source // 商品来源 + SourceOrderSn string // 供应商订单号 +} + // Cancel @Title 订单取消 -func (o *order) Cancel(ctx context.Context, orderSubSn string) (err error) { +func (o *order) Cancel(ctx context.Context, args ArgsOrderCancel) (err error) { xClient, err := client.GetClient(o) if err != nil { return } reply := 0 - err = xClient.Call(ctx, "Cancel", orderSubSn, &reply) + err = xClient.Call(ctx, "Cancel", args, &reply) return }