From 1202710fa2f2d0e0063f2057663e540b3bf406ef Mon Sep 17 00:00:00 2001 From: sian Date: Mon, 10 Oct 2022 10:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=B3=E8=AF=B7=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E8=AE=A2=E5=8D=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/orderCancelApply.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 supplier/orderCancelApply.go diff --git a/supplier/orderCancelApply.go b/supplier/orderCancelApply.go new file mode 100644 index 0000000..cd2d09e --- /dev/null +++ b/supplier/orderCancelApply.go @@ -0,0 +1,24 @@ +package supplier + +import ( + "context" + "git.oa00.com/supply-chain/service/client" +) + +type orderCancelApply struct { +} + +type ArgsOrderCancelApply struct { + OrderSubSn string + Reason string +} + +// Apply @Title 申请取消订单 +func (o *orderCancelApply) Apply(ctx context.Context, args ArgsOrderCancelApply) error { + xClient, err := client.GetClient(o) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Apply", args, &reply) +}