From e7ad4b1478f6469ba91925db589018319e205500 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 22 Dec 2022 13:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wholesale/channel/order.go | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/wholesale/channel/order.go b/wholesale/channel/order.go index 246d5c5..e7b6fcb 100644 --- a/wholesale/channel/order.go +++ b/wholesale/channel/order.go @@ -145,10 +145,16 @@ type OrderItem struct { FinishAt int64 `json:"finishAt"` StockOutAt int64 `json:"stockOutAt"` CloseAt int64 `json:"closeAt"` - Skus []OrderSkuItem `json:"skus"` + Skus []OrderSku `json:"skus"` + Packages []OrderPackage `json:"packages"` } -type OrderSkuItem struct { +type OrderPackage struct { + LogisticsName string `json:"logisticsName"` + WaybillCode string `json:"waybillCode"` +} + +type OrderSku struct { Img string `json:"img"` SkuName string `json:"skuName"` SkuId uint `json:"skuId"` @@ -168,3 +174,13 @@ func (o *order) Lists(ctx context.Context, channelId string, args ArgsOrderLists err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Lists", args, &reply) return } + +// SubDetail @Title 子订单详情 +func (o *order) SubDetail(ctx context.Context, channelId, orderSn string) (reply OrderItem, err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "SubDetail", orderSn, &reply) + return +}