On this page
查看商品资料
接口URL
请求方式
GET
Content-Type
application/x-www-form-urlencoded
请求Header参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
token | 2f...5e | Text | 是 | 用户token |
路径变量
参数名 | 示例值 | 参数描述 |
---|---|---|
id | 60 | 商品ID |
成功响应示例
json5
{
"msg": "ok",
"data": {
"id": 60,
"title": "商品名称",
"category_id": 0,
"cover": "http://...png",
"rating": 5,
"sale_count": 0,
"review_count": 0,
"min_price": "1.00",
"min_oprice": "100.00",
"desc": "描述",
"unit": "kg",
"stock": 200,
"min_stock": 10,
"ischeck": 1,
"status": 1,
"stock_display": 1,
"express_id": 0,
"sku_type": 0,
"sku_value": null,
"content": null,
"discount": 0,
"create_time": "2022-06-17 19:32:52",
"update_time": "2022-06-17 23:09:02",
"delete_time": null,
"order": 50,
"types": [
{
"id": 140,
"name": "手机",
"order": 50,
"status": 1,
"create_time": "1970-01-01 08:32:50",
"update_time": "1970-01-01 08:32:50",
"goods_type_values": [
{
"id": 249,
"name": "CPU",
"order": 50,
"type": "input",
"status": 1,
"default": null,
"goods_type_id": 140
},
// ...
]
}
],
"goodsBanner": [
{
"id": 146,
"goods_id": 60,
"url": "http://...png",
"create_time": "2022-06-17 23:12:24",
"update_time": "2022-06-17 23:12:24"
},
// ...
],
"goodsAttrs": [],
"goodsSkus": [],
"goodsSkusCard": []
}
}