银豹api修改

This commit is contained in:
苏尹岚
2020-03-31 16:25:39 +08:00
parent b1946e1780
commit 5659dcea0b
2 changed files with 13 additions and 1 deletions

View File

@@ -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"`

View File

@@ -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"