From 93ae05ec42be3c1843b8eec30cedcae3117e53e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 22 May 2020 15:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdshopapi/sku.go | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/platformapi/jdshopapi/sku.go b/platformapi/jdshopapi/sku.go index e2ce69de..a6aa75f8 100644 --- a/platformapi/jdshopapi/sku.go +++ b/platformapi/jdshopapi/sku.go @@ -434,19 +434,21 @@ func (a *API) ImageUpdate(wareId int64, imgIndex int, imgUrl string) (err error) } type SearchWare4ValidResult struct { - PageSize int `json:"pageSize"` - Data []struct { - WareID int64 `json:"wareId"` - WareStatus int `json:"wareStatus"` - CategoryID int `json:"categoryId"` - OnlineTime int64 `json:"onlineTime"` - OuterID string `json:"outerId"` - Title string `json:"title"` - ItemNum string `json:"itemNum"` - ColType int `json:"colType"` - } `json:"data"` - PageNo int `json:"pageNo"` - TotalItem int `json:"totalItem"` + PageSize int `json:"pageSize"` + Data []*SearchWare4ValidResultData `json:"data"` + PageNo int `json:"pageNo"` + TotalItem int `json:"totalItem"` +} + +type SearchWare4ValidResultData struct { + WareID int64 `json:"wareId"` + WareStatus int `json:"wareStatus"` + CategoryID int `json:"categoryId"` + OnlineTime int64 `json:"onlineTime"` + OuterID string `json:"outerId"` + Title string `json:"title"` + ItemNum string `json:"itemNum"` + ColType int `json:"colType"` } //搜索有效商品