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.
21 lines
414 B
21 lines
414 B
2 years ago
|
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
|
||
|
}
|