简要描述:

案例详情页分类案例

请求域名:

  • http://xx.com

请求URL:

POST/plugin.case-library.api.pc.home.category-case-detail

参数:

参数名 是否必须 类型 说明
id int 案例id

返回参数说明:

参数名 类型 说明
case_data[id] int 热门案例id
case_data[case_name] string 案例名
case_data[img] string 案例图标(img_src绝对路径)
case_data[read_num] int 浏览量
case_data[level] int 案例评分
id int 分类id
pid int 分类上级
level int 分类等级
category_name string 分类名
sort int 分类排序

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"total": 1,
		"per_page": 1,
		"current_page": 1,
		"last_page": 1,
		"next_page_url": null,
		"prev_page_url": null,
		"from": 1,
		"to": 1,
		"data": [
			{
				"id": 1,
				"uniacid": 1,
				"pid": 0,
				"category_name": "分类1",
				"level": 1,
				"is_hot": 1,
				"show": 1,
				"sort": 0,
				"created_at": "2020-12-02 15:59:52",
				"updated_at": "2020-12-02 15:59:52",
				"case_data": [
					{
						"id": 9,
						"case_name": "案例2",
						"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
						"read_num": 67,
						"screen_shot_src": [],
						"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
						"img_mini_src": "",
						"img_h5_src": "",
						"pivot": {
							"category_first": 1,
							"case_id": 9
						},
						"level": 4.8
					},
					{
						"id": 10,
						"case_name": "案例1123124234235342323535345435346351243",
						"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
						"read_num": 3,
						"screen_shot_src": [],
						"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
						"img_mini_src": "",
						"img_h5_src": "",
						"pivot": {
							"category_first": 1,
							"case_id": 10
						},
						"level": 0
					},
					{
						"id": 11,
						"case_name": "12312321",
						"img": "newimage/12faf451347155a3e86ea12facedb544.jpg",
						"read_num": 0,
						"screen_shot_src": [],
						"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/12faf451347155a3e86ea12facedb544.jpg",
						"img_mini_src": "",
						"img_h5_src": "",
						"pivot": {
							"category_first": 1,
							"case_id": 11
						},
						"level": 0
					}
				]
			}
		]
	}
}

错误时返回:

{
	"result": 0,
	"msg": "",
	"data": []
}

备注:

  • 更多返回错误代码请看首页的错误代码描述