简要描述:

案例库-PC首页切换最新案例(换一批)

请求域名:

  • http://xx.com

请求URL:

POST/plugin.case-library.api.pc.home.home-new-case

参数:

参数名 是否必须 类型 说明

返回参数说明:分页

参数名 类型 说明
newCase[id] int 案例id
newCase[case_name] string 案例名
newCase[img] string 案例图标(img_src绝对路径)
newCase[read_num] int 案例浏览量
newCase[created_at] string 案例发布时间
newCase[member][nickname] string 发布者昵称

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"newCase": {
			"total": 2,
			"per_page": 8,
			"current_page": 1,
			"last_page": 1,
			"next_page_url": null,
			"prev_page_url": null,
			"from": 1,
			"to": 2,
			"data": [
				{
					"id": 10,
					"case_name": "案例1",
					"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"read_num": 0,
					"member_id": 164932,
					"created_at": "2020-12-03 16:13:25",
					"screen_shot_src": [],
					"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"img_mini_src": "",
					"img_h5_src": ""
				},
				{
					"id": 9,
					"case_name": "案例2",
					"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"read_num": 19,
					"member_id": 164932,
					"created_at": "2020-12-03 16:12:47",
					"screen_shot_src": [],
					"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
					"img_mini_src": "",
					"img_h5_src": ""
				}
			]
		}
	}
}

错误时返回:

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

备注:

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