From 6926d07bed0b0d97d25876bed71706cce69a0530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 22 Jul 2020 14:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95result?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdshopapi/order.go | 92 ++++++++++++++++------------------ 1 file changed, 42 insertions(+), 50 deletions(-) diff --git a/platformapi/jdshopapi/order.go b/platformapi/jdshopapi/order.go index 76e142c2..5799a31e 100644 --- a/platformapi/jdshopapi/order.go +++ b/platformapi/jdshopapi/order.go @@ -44,56 +44,48 @@ func (a *API) GetDeliveryCompany() (result interface{}, err error) { } type GetOrderResult struct { - OrderInfo struct { - OrderStateRemark string `json:"orderStateRemark"` - OrderRemark string `json:"orderRemark"` - OrderSellerPrice string `json:"orderSellerPrice"` - OrderState string `json:"orderState"` - OrderType string `json:"orderType"` - ConsigneeInfo struct { - ProvinceID string `json:"provinceId"` - FullAddress string `json:"fullAddress"` - CityID string `json:"cityId"` - TownID string `json:"townId"` - City string `json:"city"` - County string `json:"county"` - Province string `json:"province"` - Town string `json:"town"` - Telephone string `json:"telephone"` - Fullname string `json:"fullname"` - CountyID string `json:"countyId"` - Mobile string `json:"mobile"` - } `json:"consigneeInfo"` - OrderPayment string `json:"orderPayment"` - PayType string `json:"payType"` - ItemInfoList []struct { - ProductNo string `json:"productNo"` - ItemTotal string `json:"itemTotal"` - JdPrice string `json:"jdPrice"` - SkuName string `json:"skuName"` - InvoiceContentID string `json:"invoiceContentId"` - ItemExt string `json:"itemExt"` - NewStoreID string `json:"newStoreId"` - OuterSkuID string `json:"outerSkuId"` - SkuID string `json:"skuId"` - WareID string `json:"wareId"` - GiftPoint string `json:"giftPoint"` - } `json:"itemInfoList"` - StoreID string `json:"storeId"` - OrderTotalPrice string `json:"orderTotalPrice"` - OrderExt string `json:"orderExt"` - StoreOrder string `json:"storeOrder"` - OrderStartTime string `json:"orderStartTime"` - OrderID string `json:"orderId"` - OrderSource string `json:"orderSource"` - FreightPrice string `json:"freightPrice"` - } `json:"orderInfo"` - APIResult struct { - EnglishErrCode string `json:"englishErrCode"` - Success bool `json:"success"` - ChineseErrCode string `json:"chineseErrCode"` - NumberCode int `json:"numberCode"` - } `json:"apiResult"` + OrderStateRemark string `json:"orderStateRemark"` + OrderRemark string `json:"orderRemark"` + OrderSellerPrice string `json:"orderSellerPrice"` + OrderState string `json:"orderState"` + OrderType string `json:"orderType"` + ConsigneeInfo struct { + ProvinceID string `json:"provinceId"` + FullAddress string `json:"fullAddress"` + CityID string `json:"cityId"` + TownID string `json:"townId"` + City string `json:"city"` + County string `json:"county"` + Province string `json:"province"` + Town string `json:"town"` + Telephone string `json:"telephone"` + Fullname string `json:"fullname"` + CountyID string `json:"countyId"` + Mobile string `json:"mobile"` + } `json:"consigneeInfo"` + OrderPayment string `json:"orderPayment"` + PayType string `json:"payType"` + ItemInfoList []struct { + ProductNo string `json:"productNo"` + ItemTotal string `json:"itemTotal"` + JdPrice string `json:"jdPrice"` + SkuName string `json:"skuName"` + InvoiceContentID string `json:"invoiceContentId"` + ItemExt string `json:"itemExt"` + NewStoreID string `json:"newStoreId"` + OuterSkuID string `json:"outerSkuId"` + SkuID string `json:"skuId"` + WareID string `json:"wareId"` + GiftPoint string `json:"giftPoint"` + } `json:"itemInfoList"` + StoreID string `json:"storeId"` + OrderTotalPrice string `json:"orderTotalPrice"` + OrderExt string `json:"orderExt"` + StoreOrder string `json:"storeOrder"` + OrderStartTime string `json:"orderStartTime"` + OrderID string `json:"orderId"` + OrderSource string `json:"orderSource"` + FreightPrice string `json:"freightPrice"` } //查询单个订单