产品列表

基本信息

  • 接口状态:已完成
  • 接口URL:POST /api/cms/product/index
  • Content-Type:application/json
  • 认证方式:无需认证

请求参数

{
	"page": 1,
	"catalog_id": 1098,
	"keyword": "测试",
	"status": 1
}
参数名 参数值 是否必填 参数类型  描述说明
page 1 Number 当前页
keyword 测试 String 根据关键词搜索
catalog_id 1098 Number 根据分类ID搜索
status 1 Number 根据状态搜索
attr istop、isrecommend、ishot String 根据标签搜索
date [2022-09-22, 2022-09-23] 否   Array   根据日期搜索
prop 字段名 String 根据某字段排序
order  asc、desc   String 根据某字段降序/升序

响应示例

{
	"status": "success",
	"message": "获取成功",
	"data": [
		{
			"id": 99,
			"group_id": [],
			"catalog_id": [
				1098
			],
			"relation": "",
			"title": "测试",
			"c_title": "",
			"description": "",
			"content": "",
			"cover": "/upload/image/20220930/3611231bb553889c0df783e16dd7c24b.png",
			"images": [
				{
					"id": 520,
					"title": "1664503047062.png",
					"url": "/upload/image/20220930/fc139f8ff1e31e7860a6869b2a6a6d66.png",
					"size": "964.15KB",
					"type": "image",
					"create_time": "2022-09-30 09:57:55",
					"status": 1,
					"cover": "/upload/image/20220930/fc139f8ff1e31e7860a6869b2a6a6d66100x100.png",
					"rename": false,
					"ctitle": "1664503047062.png",
					"check": true
				},
				{
					"id": 516,
					"title": "4.png",
					"url": "/upload/image/20220930/3611231bb553889c0df783e16dd7c24b.png",
					"size": "81.09KB",
					"type": "image",
					"create_time": "2022-09-30 09:30:58",
					"status": 1,
					"cover": "/upload/image/20220930/3611231bb553889c0df783e16dd7c24b100x100.png",
					"rename": false,
					"ctitle": "4.png",
					"check": true
				}
			],
			"code": "",
			"sale_price": "0.00",
			"line_price": "0.00",
			"stock": 0,
			"weight": "0.00",
			"seo_url": "",
			"seo_title": "测试",
			"seo_keywords": "测试",
			"seo_description": "",
			"parameter": [],
			"field": {
				"pc_url": "",
				"ad_url": "",
				"wp_url": ""
			},
			"istop": 0,
			"isrecommend": 0,
			"ishot": 0,
			"sort": 0,
			"spec_type": 1,
			"clicks": 9,
			"create_time": "2022-09-07 16:59:55",
			"status": 1,
			"url": "https://www.onekeyadmin.com/1098/99.html",
			"catalog_title": [
				"产品"
			],
			"cart_count": 1
		}
	],
	"count": 1
}
参数名 参数值 参数类型  描述说明
status
success String 状态
message
获取成功
String
描述
data [] Array 返回值
count 1 Number 总条数

 

文档最后更新时间:2023-03-16 10:57:07