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

商品列表


接口URL

http://ceshi13.dishait.cn/admin/goods/:page?tab=all&title=关键词&category_id=2&limit=10

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Query参数

参数名示例值参数类型是否必填参数描述
taballString订单类型:all全部,checking审核中,saling出售中,off已下架,min_stock库存预警,delete回收站
title关键词String关键词
category_id2Integer分类id
limit10Integer每页显示条数,默认10

路径变量

参数名示例值参数描述
page1页码

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"list": [
			{
				"id": 59,
				"title": "cd",
				"category_id": 2,
				"cover": "http://...png",
				"rating": 5,
				"sale_count": 0,
				"review_count": 0,
				"min_price": "0.00",
				"min_oprice": "0.00",
				"desc": null,
				"unit": "件",
				"stock": 100,
				"min_stock": 10,
				"ischeck": 1,
				"status": 1,
				"stock_display": 1,
				"express_id": 0,
				"sku_type": 0,
				"sku_value": {
					"oprice": 1,
					"pprice": 1,
					"cprice": 1,
					"weight": 1,
					"volume": 1
				},
				"content": "<!DOCTYPE html>\n<html>...\n</html>",
				"discount": 0,
				"create_time": "2022-06-17 11:33:12",
				"update_time": "2022-06-17 11:35:26",
				"delete_time": null,
				"order": 50,
				"category": {
					"id": 2,
					"name": "运动旅行",
					"status": 1,
					"create_time": "2019-09-15 00:33:45",
					"update_time": "2022-06-17 10:12:35",
					"category_id": 0,
					"order": 0
				},
				"goods_banner": [
					{
						"id": 142,
						"goods_id": 59,
						"url": "http://...png",
						"create_time": "2022-06-17 11:35:07",
						"update_time": "2022-06-17 11:35:07"
					},
					{
						"id": 143,
						"goods_id": 59,
						"url": "http://...png",
						"create_time": "2022-06-17 11:35:07",
						"update_time": "2022-06-17 11:35:07"
					}
				],
				"goods_attrs": [],
				"goods_skus": [],
				"goods_skus_card": [
					{
						"id": 129,
						"goods_id": 59,
						"name": "hu",
						"type": 0,
						"order": 50,
						"goods_skus_card_value": []
					},
					// ...
				]
			},
			// ...
		],
		"totalCount": 2,
		"cates": [
			{
				"id": 2,
				"name": "运动旅行",
				"status": 1,
				"create_time": "2019-09-15 00:33:45",
				"update_time": "2022-06-17 10:12:35",
				"category_id": 0,
				"order": 0,
				"level": 0
			},
			// ...
		]
	}
}