简要描述:

获取指标管理列表数据

请求域名:

  • http://xx.com

请求URL:

POST/plugin.skin-check.admin.target.target-list

修改基础设置时传递的参数:

参数名 是否必须 类型 说明
search[target_name] string 指标名称

返回参数data说明:

参数名 类型 说明
id int 指标id
target_name string 指标名称
has_many_label_count int 标签数量
article_count int 攻略数量
adviser_count int 顾问数量
goods_count int 商品数量

返回示例:

正确时返回的视图数据:(随着视图一并返回,需要进行json_encode)

{
	"result": 1,
	"msg": "ok",
	"data": {
		"total": 16,
		"per_page": 15,
		"current_page": 1,
		"last_page": 2,
		"next_page_url": "https://shop.com/admin/shop?page=2",
		"prev_page_url": null,
		"from": 1,
		"to": 15,
		"data": [
			{
				"id": 1,
				"target_name": "肤龄",
				"has_many_label_count": 2,
				"goods_count": 2,
				"article_count": 0,
				"adviser_count": 2
			},
			{
				"id": 2,
				"target_name": "肤色",
				"has_many_label_count": 3,
				"goods_count": 3,
				"article_count": 0,
				"adviser_count": 2
			},
			{
				"id": 3,
				"target_name": "肤质",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 4,
				"target_name": "毛孔粗大",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 5,
				"target_name": "黑头",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 6,
				"target_name": "痘痘",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 7,
				"target_name": "痘印",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 8,
				"target_name": "痣",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 9,
				"target_name": "色斑",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 10,
				"target_name": "黑眼圈",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 11,
				"target_name": "皱纹",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 12,
				"target_name": "抬头纹",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 13,
				"target_name": "鱼尾纹",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 14,
				"target_name": "细纹",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			},
			{
				"id": 15,
				"target_name": "眼纹",
				"has_many_label_count": 0,
				"goods_count": 0,
				"article_count": 0,
				"adviser_count": 0
			}
		]
	}
}

错误时返回:

备注:

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