文档
测试
POST
http://127.0.0.1:2022/goods/good_details

请求参数

参数名
类型
描述
必填
goods_id
int
示例:1
必填
spec_sku_id
string
示例:23_26
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:
必填
data
object
数据字典
必填
goods_id
int
示例:1
必填
goods_name
string
示例:Two seater sofa
必填
selling_point
string
示例:Join our Family for even bigger savings on affordable furniture and home furnishings, and many more benefits.
必填
category_id
int
示例:15
必填
spec_type
int
示例:20
必填
content
string
示例:<p>Two seater sofa</p><p>white</p><p>red</p><p>yellow</p>
必填
size
string
示例:<p>Two seater sofa</p><p>size</p><p><br/></p>
必填
sales_actual
int
示例:0
必填
images
string
示例:["202109090315336962.jpg"]
必填
collect
int
示例:0
必填
number
string
示例:30105100221449
必填
goods_price
int
示例:89
必填
goods_sku
array
数据列表
必填
spec_id
int
示例:10
必填
spec_name
string
示例:Color
必填
spec_value_id
int
示例:23
必填
spec_value
string
示例:white
必填
collect_status
boolean
示例:true
必填
comment
array
数据列表
必填

说明 / 示例

{ "code": 0, "msg": "", "data": { "goods_id": 1,//商品id "goods_name": "Two seater sofa",//商品名称 "selling_point": "Join our Family for even bigger savings on affordable furniture and home furnishings, and many more benefits.",//商品卖点 "category_id": 15,//商品分类id "spec_type": 20,//商品规格(10单规格,20规格) "content": "<p>Two seater sofa</p><p>white</p><p>red</p><p>yellow</p>",//详情下拉 "size": "<p>Two seater sofa</p><p>size</p><p><br/></p>",//尺寸下拉 "sales_actual": 0,//实际销量 "images": "[\"202109090315336962.jpg\"]", "collect": 0,//收藏次数 "number": "30105100221449",//商品编号 "collect_status": true,//收藏状态(true收藏false为收藏) "comment": []//商品评论信息 } }