|
|
@ -81,3 +81,19 @@ func (o *order) StockOut(ctx context.Context, args ArgsOrderStockOut) (err error
|
|
|
|
err = xClient.Call(ctx, "StockOut", args, &reply)
|
|
|
|
err = xClient.Call(ctx, "StockOut", args, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsOrderFinish struct {
|
|
|
|
|
|
|
|
Source source // 商品来源
|
|
|
|
|
|
|
|
SourceOrderSn string // 供应商订单号
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Finish @Title 订单完成
|
|
|
|
|
|
|
|
func (o *order) Finish(ctx context.Context, args ArgsOrderFinish) (err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(o)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
reply := 0
|
|
|
|
|
|
|
|
err = xClient.Call(ctx, "Finish", args, &reply)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|