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 }