简要描述:

H5-专题详情

请求域名:

  • http://xx.com

请求URL:

POST/plugin.case-library.api.mobile.home.special-detail

参数:

参数名 是否必须 类型 说明
id int 专题id

返回参数说明:

参数名 类型 说明
special[id] int 专题id
special[special_name] array 专题名
special[special_banner] int 专题banner(special_banner_src绝对路径)
special[read_num] string 专题浏览量
special[desc] string 专题简介
special[created_at] string 专题创建时间
special[case_data][id] int 案例id
special[case_data][case_name] string 案例名
special[case_data][img] string 案例图标(img_src绝对路径)
special[case_data][read_num] int 案例浏览量
special[case_data][label] array 案例标签(id:标签id,label_name:标签名)
special[case_data][member_id] int 发布者id
special[case_data][member][nickname] string 发布者昵称
special[case_data][member][avatar] string 发布者头像

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"special": {
			"id": 1,
			"special_name": "专题1",
			"special_banner": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"read_num": 0,
			"desc": "111166661",
			"created_at": "2020-12-04 11:11:12",
			"special_banner_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
			"case_data": [
				{
					"id": 10,
					"case_name": "案例1",
					"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"read_num": 0,
					"member_id": 164932,
					"screen_shot_src": [],
					"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"img_mini_src": "",
					"img_h5_src": "",
					"pivot": {
						"special_id": 1,
						"case_id": 10
					},
					"label": [
						{
							"id": 1,
							"uniacid": 1,
							"label_name": "标签1",
							"created_at": "2020-12-03 16:05:00",
							"updated_at": "2020-12-03 16:05:00",
							"pivot": {
								"case_id": 10,
								"label_id": 1
							}
						},
						{
							"id": 2,
							"uniacid": 1,
							"label_name": "标签2",
							"created_at": "2020-12-03 16:05:12",
							"updated_at": "2020-12-03 16:05:12",
							"pivot": {
								"case_id": 10,
								"label_id": 2
							}
						},
						{
							"id": 3,
							"uniacid": 1,
							"label_name": "标签3",
							"created_at": "2020-12-03 16:13:11",
							"updated_at": "2020-12-03 16:13:11",
							"pivot": {
								"case_id": 10,
								"label_id": 3
							}
						}
					],
					"member": {
						"uid": 164932,
						"nickname": "A李李李",
						"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
						"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
						"username": "A李李李"
					}
				},
				{
					"id": 9,
					"case_name": "案例2",
					"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"read_num": 17,
					"member_id": 164932,
					"screen_shot_src": [],
					"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"img_mini_src": "",
					"img_h5_src": "",
					"pivot": {
						"special_id": 1,
						"case_id": 9
					},
					"label": [
						{
							"id": 1,
							"uniacid": 1,
							"label_name": "标签1",
							"created_at": "2020-12-03 16:05:00",
							"updated_at": "2020-12-03 16:05:00",
							"pivot": {
								"case_id": 9,
								"label_id": 1
							}
						},
						{
							"id": 3,
							"uniacid": 1,
							"label_name": "标签3",
							"created_at": "2020-12-03 16:13:11",
							"updated_at": "2020-12-03 16:13:11",
							"pivot": {
								"case_id": 9,
								"label_id": 3
							}
						},
						{
							"id": 4,
							"uniacid": 1,
							"label_name": "标签4",
							"created_at": "2020-12-03 16:13:14",
							"updated_at": "2020-12-03 16:13:14",
							"pivot": {
								"case_id": 9,
								"label_id": 4
							}
						}
					],
					"member": {
						"uid": 164932,
						"nickname": "A李李李",
						"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
						"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
						"username": "A李李李"
					}
				}
			]
		}
	}
}

错误时返回:

{
	"result": 0,
	"msg": "参数错误",
	"data": []
}

备注:

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