简要描述:
- 获取用户的消费积分的明细记录
请求域名:
http://xx.com
请求URL:
GET:plugin.integral.Frontend.Modules.Integral.Controllers.Records
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
index | 是 | int | 类型: 0全部, 1收入, 2支出 |
page | 是 | int | 分页 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"pageList": {
"total": 68,
"per_page": 15,
"current_page": 1,
"last_page": 5,
"next_page_url": "http://wq.cn/addons/yun_shop/api.php?=2",
"prev_page_url": null,
"from": 1,
"to": 15,
"data": [
{
"id": 208,
"uid": 71,
"original": "251140.00",
"change": "20.00",
"remark": "消费积分被转让",
"present": "251120.00",
"created_at": "2019-01-03 17:03:08"
},
{
"id": 193,
"uid": 71,
"original": "251340.00",
"change": "10.00",
"remark": "消费积分被转让",
"present": "251330.00",
"created_at": "2019-01-03 16:03:39"
},
{
"id": 192,
"uid": 71,
"original": "251350.00",
"change": "10.00",
"remark": "消费积分被转让",
"present": "251340.00",
"created_at": "2019-01-03 16:00:36"
}
]
}
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 积分记录表主键id |
uid | int | 用户id |
original | string | 原始积分 |
change | string | 变动积分 |
present | string | 现在积分 |