diff --git a/supply/order.go b/supply/order.go index f338fb9..74181ae 100644 --- a/supply/order.go +++ b/supply/order.go @@ -9,12 +9,15 @@ import ( type order struct { } type ArgsOrderSplit struct { - SourceOrderSn string // 供应商订单号 - Source source // 商品来源 - ParentSourceOrderSn string // 上级订单号 - FreightFee decimal.Decimal // 运费 - OrderFee decimal.Decimal // 订单金额 - Skus []OrderSplitSkuItem // 拆分订单sku + Source source // 商品来源 + ParentSourceOrderSn string // 上级订单号 + OrderSubs []OrderSub // 子订单 +} +type OrderSub struct { + SourceOrderSn string // 供应商订单号 + FreightFee decimal.Decimal // 运费 + OrderFee decimal.Decimal // 订单金额 + Skus []OrderSplitSkuItem // 拆分订单sku } type OrderSplitSkuItem struct { SourceSkuId string diff --git a/supply/supply.go b/supply/supply.go index ba86bf6..542bcd3 100644 --- a/supply/supply.go +++ b/supply/supply.go @@ -12,4 +12,5 @@ type Supply struct { SkuAudit skuAudit Channel channel.Channel Setting setting.Setting + Order order }