package jdsdk import ( "context" order2 "git.oa00.com/go/jdsdk/order" "git.oa00.com/supply-chain/service/client" ) type order struct { } // Cancel @Title 订单取消 京东订单id func (o *order) Cancel(ctx context.Context, orderId string) (reply order2.OrderInfo, err error) { xClient, err := client.GetClient(o) if err != nil { return } err = xClient.Call(ctx, "Cancel", orderId, &reply) return }