You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
service/jd/jdsdk/order.go

21 lines
414 B

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
}