添加接口

finance
杨赟 2 years ago
parent 2915389e0c
commit 23a63162fd

@ -81,3 +81,19 @@ func (o *order) StockOut(ctx context.Context, args ArgsOrderStockOut) (err error
err = xClient.Call(ctx, "StockOut", args, &reply)
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
}

Loading…
Cancel
Save