diff --git a/platformapi/yinbaoapi/store_page.go b/platformapi/yinbaoapi/store_page.go index aa3d5def..b3876d4e 100644 --- a/platformapi/yinbaoapi/store_page.go +++ b/platformapi/yinbaoapi/store_page.go @@ -235,7 +235,18 @@ type FindProductResult struct { CategoryType int `json:"categoryType"` TxtUID string `json:"txtUid"` } `json:"category"` - Productimages []interface{} `json:"productimages"` + Productimages []struct { + Barcode string `json:"barcode"` + CreatedDatetime string `json:"createdDatetime"` + ID int `json:"id"` + IsCover bool `json:"isCover"` + Path string `json:"path"` + ProductName string `json:"productName"` + ProductUID int64 `json:"productUid"` + UID int64 `json:"uid"` + UpdatedDatetime string `json:"updatedDatetime"` + UserID int `json:"userId"` + } `json:"productimages"` CategoryShowID int `json:"categoryShowId"` ParentHas int `json:"parentHas"` TxtUID string `json:"txtUid"` diff --git a/platformapi/yinbaoapi/yinbaoapi.go b/platformapi/yinbaoapi/yinbaoapi.go index a6f3c41b..feaa87a5 100644 --- a/platformapi/yinbaoapi/yinbaoapi.go +++ b/platformapi/yinbaoapi/yinbaoapi.go @@ -17,6 +17,7 @@ import ( const ( sigKey = "sign" url = "https://area27-win.pospal.cn:443/pospal-api2/openapi/v1" + ImageUrl = "http://pospalstoreimg.area27.pospal.cn//" statusSuccess = "success" skuExistErrCode = "5004"