提交 587381f7 authored 作者: zhanglibo's avatar zhanglibo

淘特

上级 56916c72
......@@ -90,7 +90,6 @@ type GoodsDetailReq struct {
type GoodsDetailRes struct {
ErrorMessage string `json:"error_message"`
ErrorCode string `json:"error_code"`
Result struct {
DebugInfoMap struct {
TraceId string `json:"traceId"`
} `json:"debugInfoMap"`
......@@ -122,6 +121,7 @@ type GoodsDetailRes struct {
} `json:"item"`
Seller struct {
ShopName string `json:"shopName"`
SellerId string `json:"sellerId"`
} `json:"seller"`
SkuBase struct {
Props []struct {
......@@ -139,10 +139,8 @@ type GoodsDetailRes struct {
} `json:"skus"`
} `json:"skuBase"`
SkuCore struct {
DefaultSkuId int64 `json:"defaultSkuId"`
Sku2Info map[string]GoodsItem `json:"sku2info"`
} `json:"skuCore"`
} `json:"result"`
}
type GoodsItem struct {
......@@ -163,9 +161,7 @@ func (goods) Detail(ctx context.Context, GoodsID string) (res *GoodsDetailRes, e
}
result, err := server.Post(ctx, method, g.Map{
"parameters": g.Map{
"itemId": request,
},
"parameters": request,
})
_ = gjson.New(result).Scan(&res)
return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论