|
|
|
@ -35,3 +35,14 @@ func (o *order) Split(ctx context.Context, args ArgsOrderSplit) (err error) {
|
|
|
|
|
err = xClient.Call(ctx, "Lists", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Cancel @Title 订单取消
|
|
|
|
|
func (o *order) Cancel(ctx context.Context, orderSubSn string) (err error) {
|
|
|
|
|
xClient, err := client.GetClient(o)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
reply := 0
|
|
|
|
|
err = xClient.Call(ctx, "Cancel", orderSubSn, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|