文档
测试

商品详情

GET
web/spu/detail/<id>

请求参数

参数名
类型
描述
必填
id
int
商品ID
必填

响应参数

参数名
类型
描述
必填
id
int
示例:1
必填
name
string
标题 示例:炭烤母猪蹄
必填
description
string
描述
必填
price
string
价格
必填
sale_count
int
销量
必填
discount_price
string
优惠价格
必填
group_price
string
拼团价
必填
skus
array
规格列表
必填
id
int
示例:1
必填
name
string
标题 示例:两只装
必填
description
string
描述
必填
price
string
价格
必填
image
string
图片
必填
discount_price
string
优惠价
必填
group_price
string
拼团价
必填
stock
int
库存
必填
images
array
图片列表
必填
image
string
示例:http://tctm.cn/uploads/20201130/efe0e7ab4baed4b6fa3c9c0ababe243d.jpg
必填
weigh
int
示例:0
必填
main_switch
int
是否为主图
必填