From 23a63162fd39ea4c96969c69f5bed4a920d81758 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 7 Sep 2022 10:58:39 +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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/supply/order.go b/supply/order.go index 02bca3a..ce5585e 100644 --- a/supply/order.go +++ b/supply/order.go @@ -81,3 +81,19 @@ func (o *order) StockOut(ctx context.Context, args ArgsOrderStockOut) (err error err = xClient.Call(ctx, "StockOut", args, &reply) return } + +type ArgsOrderFinish struct { + Source source // 商品来源 + SourceOrderSn string // 供应商订单号 +} + +// Finish @Title 订单完成 +func (o *order) Finish(ctx context.Context, args ArgsOrderFinish) (err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Finish", args, &reply) + return +}