简要描述:

优惠券统计图数据搜索

请求URL:

GET/plugin.shop-statistics.backend.point.search-point-statistic

请求参数说明:

参数名 类型 是否必须 说明
time int 搜索时间戳

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"given_coupon": {
			"name": "已赠送优惠券",
			"y_axis": [
				38,
				38,
				38,
				38,
				38,
				38,
				38
			],
			"value": 38,
			"x_axis": [
				"07/16",
				"07/17",
				"07/18",
				"07/19",
				"07/20",
				"07/21",
				"07/22"
			]
		},
		"receive_coupon": {
			"name": "已领取优惠券",
			"y_axis": [
				"6",
				"6",
				"6",
				"6",
				"6",
				"6",
				"6"
			],
			"value": "6",
			"x_axis": [
				"07/16",
				"07/17",
				"07/18",
				"07/19",
				"07/20",
				"07/21",
				"07/22"
			]
		},
		"used_coupon": {
			"name": "已使用优惠券",
			"y_axis": [
				"3",
				"3",
				"3",
				"3",
				"3",
				"3",
				"3"
			],
			"value": "3",
			"x_axis": [
				"07/16",
				"07/17",
				"07/18",
				"07/19",
				"07/20",
				"07/21",
				"07/22"
			]
		},
		"expired_coupon": {
			"name": "已过期优惠券",
			"y_axis": [
				0,
				0,
				0,
				0,
				0,
				0,
				0
			],
			"value": 0,
			"x_axis": [
				"07/16",
				"07/17",
				"07/18",
				"07/19",
				"07/20",
				"07/21",
				"07/22"
			]
		},
		"deduction_price": {
			"name": "抵扣金额",
			"y_axis": [
				"25.00",
				"25.00",
				"25.00",
				"25.00",
				"25.00",
				"25.00",
				"25.00"
			],
			"value": "25.00",
			"x_axis": [
				"07/16",
				"07/17",
				"07/18",
				"07/19",
				"07/20",
				"07/21",
				"07/22"
			]
		}
	}
}

返回参数说明:

参数名 类型 说明
name string 优惠券数据类型名
value int/float 该类型在搜索时间内的值
x_axis array 该统计数据类型x轴数据
y_axis array 该统计数据类型y轴数据