Skip to content
关注公众号,获取新课通知

查看商品资料


接口URL

http://ceshi13.dishait.cn/admin/goods/read/:id

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
token2f...5eText用户token

路径变量

参数名示例值参数描述
id60商品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": []
	}
}