Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
36a8a65a
提交
36a8a65a
authored
9月 02, 2022
作者:
zhanglibo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
淘特
上级
ace74962
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
74 行增加
和
54 行删除
+74
-54
itao_goods.go
upstream/itao/itao_goods.go
+74
-54
没有找到文件。
upstream/itao/itao_goods.go
浏览文件 @
36a8a65a
...
...
@@ -13,52 +13,68 @@ var Goods = goodsItao{}
type
GoodsDetailRes
struct
{
Result
struct
{
Result
struct
{
DebugInfoMap
struct
{
TraceId
string
`json:"traceId"`
}
`json:"debugInfoMap"`
EnterNewLink
string
`json:"enterNewLink"`
Item
struct
{
CategoryId
[]
string
`json:"categoryId"`
CategoryName
[]
string
`json:"categoryName"`
City
string
`json:"city"`
FastPostFee
int
`json:"fastPostFee"`
Images
[]
string
`json:"images"`
ItemId
string
`json:"itemId"`
ItemServices
[]
struct
{
Desc
string
`json:"desc"`
Title
string
`json:"title"`
VideoUrl
string
`json:"videoUrl,omitempty"`
ActionTitle
string
`json:"actionTitle,omitempty"`
ActionUrl
string
`json:"actionUrl,omitempty"`
}
`json:"itemServices"`
MainPic
string
`json:"mainPic"`
OrdinaryPostFee
int
`json:"ordinaryPostFee"`
Props
[]
struct
{
Content
string
`json:"content"`
Word
string
`json:"word"`
}
`json:"props"`
Prov
string
`json:"prov"`
Receipt
bool
`json:"receipt"`
SoldQuantity
int
`json:"soldQuantity"`
Status
int
`json:"status"`
Title
string
`json:"title"`
}
`json:"item"`
Seller
struct
{
ShopName
string
`json:"shopName"`
}
`json:"seller"`
SkuBase
struct
{
Props
[]
interface
{}
`json:"props"`
Skus
[]
interface
{}
`json:"skus"`
}
`json:"skuBase"`
SkuCore
struct
{
DefaultSkuId
int
`json:"defaultSkuId"`
Sku2Info
map
[
string
]
GoodsItem
`json:"sku2info"`
}
`json:"skuCore"`
}
`json:"result"`
DebugInfoMap
struct
{
TraceId
string
`json:"traceId"`
}
`json:"debugInfoMap"`
EnterNewLink
string
`json:"enterNewLink"`
Item
struct
{
CategoryId
[]
string
`json:"categoryId"`
CategoryName
[]
string
`json:"categoryName"`
City
string
`json:"city"`
FastPostFee
int
`json:"fastPostFee"`
Images
[]
string
`json:"images"`
ItemId
string
`json:"itemId"`
ItemServices
[]
struct
{
ActionTitle
string
`json:"actionTitle,omitempty"`
ActionUrl
string
`json:"actionUrl,omitempty"`
Desc
string
`json:"desc"`
Title
string
`json:"title"`
}
`json:"itemServices"`
MainPic
string
`json:"mainPic"`
OrdinaryPostFee
int
`json:"ordinaryPostFee"`
Props
[]
struct
{
Content
string
`json:"content"`
Word
string
`json:"word"`
}
`json:"props"`
Prov
string
`json:"prov"`
Receipt
bool
`json:"receipt"`
SoldQuantity
int
`json:"soldQuantity"`
Status
int
`json:"status"`
Title
string
`json:"title"`
}
`json:"item"`
Seller
struct
{
ShopName
string
`json:"shopName"`
}
`json:"seller"`
SkuBase
struct
{
Props
[]
struct
{
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"`
SkuCore
struct
{
DefaultSkuId
int64
`json:"defaultSkuId"`
Sku2Info
map
[
string
]
GoodsItem
`json:"sku2info"`
}
`json:"skuCore"`
}
`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 详情[实时]
func
(
goodsItao
)
Detail
(
ctx
context
.
Context
,
GoodsID
string
)
(
res
*
GoodsDetailRes
,
err
error
)
{
method
:=
"com.alibaba.c2m/ltao.detail.jnpiter.getDetail"
...
...
@@ -86,12 +102,6 @@ type GoodsDynamicRes struct {
}
`json:"result"`
}
type
GoodsItem
struct
{
QuantityVague
string
`json:"quantityVague"`
OriginalPrice
string
`json:"originalPrice"`
TjbMarketPrice
string
`json:"tjbMarketPrice"`
}
//Dynamic 详情[动态]
func
(
goodsItao
)
Dynamic
(
ctx
context
.
Context
,
GoodsID
string
)
(
res
*
GoodsDynamicRes
,
err
error
)
{
method
:=
"com.alibaba.c2m/ltao.detail.csp.getDetailDynamic"
...
...
@@ -120,11 +130,10 @@ type GoodBatchRes struct {
Images
[]
string
`json:"images"`
ItemId
string
`json:"itemId"`
ItemServices
[]
struct
{
Desc
string
`json:"desc"`
Title
string
`json:"title"`
VideoUrl
string
`json:"videoUrl,omitempty"`
ActionTitle
string
`json:"actionTitle,omitempty"`
ActionUrl
string
`json:"actionUrl,omitempty"`
Desc
string
`json:"desc"`
Title
string
`json:"title"`
}
`json:"itemServices"`
MainPic
string
`json:"mainPic"`
OrdinaryPostFee
int
`json:"ordinaryPostFee"`
...
...
@@ -143,8 +152,19 @@ type GoodBatchRes struct {
}
`json:"seller"`
Sku2Info
map
[
string
]
GoodsItem
`json:"sku2info"`
SkuBase
struct
{
Props
[]
interface
{}
`json:"props"`
Skus
[]
interface
{}
`json:"skus"`
Props
[]
struct
{
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:"data"`
ItemIds
string
`json:"itemIds"`
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论