finance
黄伟 2 years ago
parent 3dd98caf16
commit e7ad4b1478

@ -145,10 +145,16 @@ type OrderItem struct {
FinishAt int64 `json:"finishAt"` FinishAt int64 `json:"finishAt"`
StockOutAt int64 `json:"stockOutAt"` StockOutAt int64 `json:"stockOutAt"`
CloseAt int64 `json:"closeAt"` 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"` Img string `json:"img"`
SkuName string `json:"skuName"` SkuName string `json:"skuName"`
SkuId uint `json:"skuId"` 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) err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Lists", args, &reply)
return 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
}

Loading…
Cancel
Save