提交 36a8a65a authored 作者: zhanglibo's avatar zhanglibo

淘特

上级 ace74962
...@@ -13,52 +13,68 @@ var Goods = goodsItao{} ...@@ -13,52 +13,68 @@ var Goods = goodsItao{}
type GoodsDetailRes struct { type GoodsDetailRes struct {
Result struct { Result struct {
Result struct { DebugInfoMap struct {
DebugInfoMap struct { TraceId string `json:"traceId"`
TraceId string `json:"traceId"` } `json:"debugInfoMap"`
} `json:"debugInfoMap"` EnterNewLink string `json:"enterNewLink"`
EnterNewLink string `json:"enterNewLink"` Item struct {
Item struct { CategoryId []string `json:"categoryId"`
CategoryId []string `json:"categoryId"` CategoryName []string `json:"categoryName"`
CategoryName []string `json:"categoryName"` City string `json:"city"`
City string `json:"city"` FastPostFee int `json:"fastPostFee"`
FastPostFee int `json:"fastPostFee"` Images []string `json:"images"`
Images []string `json:"images"` ItemId string `json:"itemId"`
ItemId string `json:"itemId"` ItemServices []struct {
ItemServices []struct { ActionTitle string `json:"actionTitle,omitempty"`
Desc string `json:"desc"` ActionUrl string `json:"actionUrl,omitempty"`
Title string `json:"title"` Desc string `json:"desc"`
VideoUrl string `json:"videoUrl,omitempty"` Title string `json:"title"`
ActionTitle string `json:"actionTitle,omitempty"` } `json:"itemServices"`
ActionUrl string `json:"actionUrl,omitempty"` MainPic string `json:"mainPic"`
} `json:"itemServices"` OrdinaryPostFee int `json:"ordinaryPostFee"`
MainPic string `json:"mainPic"` Props []struct {
OrdinaryPostFee int `json:"ordinaryPostFee"` Content string `json:"content"`
Props []struct { Word string `json:"word"`
Content string `json:"content"` } `json:"props"`
Word string `json:"word"` Prov string `json:"prov"`
} `json:"props"` Receipt bool `json:"receipt"`
Prov string `json:"prov"` SoldQuantity int `json:"soldQuantity"`
Receipt bool `json:"receipt"` Status int `json:"status"`
SoldQuantity int `json:"soldQuantity"` Title string `json:"title"`
Status int `json:"status"` } `json:"item"`
Title string `json:"title"` Seller struct {
} `json:"item"` ShopName string `json:"shopName"`
Seller struct { } `json:"seller"`
ShopName string `json:"shopName"` SkuBase struct {
} `json:"seller"` Props []struct {
SkuBase struct { Name string `json:"name"`
Props []interface{} `json:"props"` Pid string `json:"pid"`
Skus []interface{} `json:"skus"` Values []struct {
} `json:"skuBase"` Image string `json:"image"`
SkuCore struct { Name string `json:"name"`
DefaultSkuId int `json:"defaultSkuId"` Vid string `json:"vid"`
Sku2Info map[string]GoodsItem `json:"sku2info"` } `json:"values"`
} `json:"skuCore"` } `json:"props"`
} `json:"result"` Skus []struct {
PropPath string `json:"propPath"`
SkuId string `json:"skuId"`
} `json:"skus"`
} `json:"skuBase"`
SkuCore struct {
DefaultSkuId int64 `json:"defaultSkuId"`
Sku2Info map[string]GoodsItem `json:"sku2info"`
} `json:"skuCore"`
} `json:"result"` } `json:"result"`
} }
type GoodsItem struct {
QuantityVague string `json:"quantityVague"`
OriginalPrice string `json:"originalPrice"`
FinalPrice string `json:"finalPrice"`
TjbMarketPrice string `json:"tjbMarketPrice"`
PriceMoney string `json:"priceMoney"`
}
//Detail 详情[实时] //Detail 详情[实时]
func (goodsItao) Detail(ctx context.Context, GoodsID string) (res *GoodsDetailRes, err error) { func (goodsItao) Detail(ctx context.Context, GoodsID string) (res *GoodsDetailRes, err error) {
method := "com.alibaba.c2m/ltao.detail.jnpiter.getDetail" method := "com.alibaba.c2m/ltao.detail.jnpiter.getDetail"
...@@ -86,12 +102,6 @@ type GoodsDynamicRes struct { ...@@ -86,12 +102,6 @@ type GoodsDynamicRes struct {
} `json:"result"` } `json:"result"`
} }
type GoodsItem struct {
QuantityVague string `json:"quantityVague"`
OriginalPrice string `json:"originalPrice"`
TjbMarketPrice string `json:"tjbMarketPrice"`
}
//Dynamic 详情[动态] //Dynamic 详情[动态]
func (goodsItao) Dynamic(ctx context.Context, GoodsID string) (res *GoodsDynamicRes, err error) { func (goodsItao) Dynamic(ctx context.Context, GoodsID string) (res *GoodsDynamicRes, err error) {
method := "com.alibaba.c2m/ltao.detail.csp.getDetailDynamic" method := "com.alibaba.c2m/ltao.detail.csp.getDetailDynamic"
...@@ -120,11 +130,10 @@ type GoodBatchRes struct { ...@@ -120,11 +130,10 @@ type GoodBatchRes struct {
Images []string `json:"images"` Images []string `json:"images"`
ItemId string `json:"itemId"` ItemId string `json:"itemId"`
ItemServices []struct { ItemServices []struct {
Desc string `json:"desc"`
Title string `json:"title"`
VideoUrl string `json:"videoUrl,omitempty"`
ActionTitle string `json:"actionTitle,omitempty"` ActionTitle string `json:"actionTitle,omitempty"`
ActionUrl string `json:"actionUrl,omitempty"` ActionUrl string `json:"actionUrl,omitempty"`
Desc string `json:"desc"`
Title string `json:"title"`
} `json:"itemServices"` } `json:"itemServices"`
MainPic string `json:"mainPic"` MainPic string `json:"mainPic"`
OrdinaryPostFee int `json:"ordinaryPostFee"` OrdinaryPostFee int `json:"ordinaryPostFee"`
...@@ -143,8 +152,19 @@ type GoodBatchRes struct { ...@@ -143,8 +152,19 @@ type GoodBatchRes struct {
} `json:"seller"` } `json:"seller"`
Sku2Info map[string]GoodsItem `json:"sku2info"` Sku2Info map[string]GoodsItem `json:"sku2info"`
SkuBase struct { SkuBase struct {
Props []interface{} `json:"props"` Props []struct {
Skus []interface{} `json:"skus"` Name string `json:"name"`
Pid string `json:"pid"`
Values []struct {
Image string `json:"image"`
Name string `json:"name"`
Vid string `json:"vid"`
} `json:"values"`
} `json:"props"`
Skus []struct {
PropPath string `json:"propPath"`
SkuId string `json:"skuId"`
} `json:"skus"`
} `json:"skuBase"` } `json:"skuBase"`
} `json:"data"` } `json:"data"`
ItemIds string `json:"itemIds"` ItemIds string `json:"itemIds"`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论