|
|
|
@ -58,3 +58,26 @@ func (o *order) Cancel(ctx context.Context, args ArgsOrderCancel) (err error) {
|
|
|
|
|
err = xClient.Call(ctx, "Cancel", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsOrderStockOut struct {
|
|
|
|
|
Source source // 商品来源
|
|
|
|
|
SourceOrderSn string // 供应商订单号
|
|
|
|
|
Packages []Package // 包裹运单
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Package struct {
|
|
|
|
|
LogisticsCode string // 物流编码
|
|
|
|
|
LogisticsName string // 物流名称
|
|
|
|
|
WaybillCode string // 运单号
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StockOut @Title 出库发货
|
|
|
|
|
func (o *order) StockOut(ctx context.Context, args ArgsOrderCancel) (err error) {
|
|
|
|
|
xClient, err := client.GetClient(o)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
reply := 0
|
|
|
|
|
err = xClient.Call(ctx, "Cancel", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|