diff --git a/wholesale/order.go b/wholesale/order.go index 3dab488..e0e8a54 100644 --- a/wholesale/order.go +++ b/wholesale/order.go @@ -40,3 +40,22 @@ func (o *order) Split(ctx context.Context, args ArgsOrderSplit) (err error) { err = xClient.Call(ctx, "Split", args, &reply) return } + +type ArgsOrderFreightFee struct { + Source source + OrderFreightFees []OrderFreightFee +} +type OrderFreightFee struct { + SourceOrderSn string // 供应商订单号 + FreightFee decimal.Decimal // 运费 +} + +// FreightFee @Title 运费处理 +func (o *order) FreightFee(ctx context.Context, args ArgsOrderFreightFee) (err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + reply := 0 + return xClient.Call(ctx, "FreightFee", args, &reply) +}