获取不同状态的礼品卡列表(app接口、订单接口).md
4.93 KB
1、获取礼品卡分页列表
获取礼品卡列表 (method=app.giftcard.pagelist)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
uid | int | 否 | 123456 | ||
status | int | 是 | 1 | 1-可使用,2-已冻结,3-已过期,4-已用完 | |
page | int | 是 | 1 | 1 | |
limit | int | 是 | 10 | 10 |
注意,通用的头部没有列出。
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"currPage": 3,
"currTotal": 9,
"giftCardInfoBOList": [
{
"activateTime": 1504152032,
"activateUid": 500027364,
"amount": 600,
"cardCode": "LPK00500000022",
"dateStr": "2017.08.31-2017.10.02",
"endTime": 1506942032,
"id": 58,
"name": "卡片22",
"remainAmount": 100,
"status": 40
},
{
"activateTime": 1504152032,
"activateUid": 500027364,
"amount": 600,
"cardCode": "LPK00500000023",
"dateStr": "2017.08.31-2017.10.02",
"endTime": 1506942032,
"id": 60,
"name": "卡片23",
"remainAmount": 100,
"status": 40
},
{
"activateTime": 1504151032,
"activateUid": 500027364,
"amount": 500,
"cardCode": "LPK00500000005",
"dateStr": "2017.08.31-2017.10.01",
"endTime": 1506842032,
"id": 16,
"name": "卡片5",
"remainAmount": 100,
"status": 40,
"willExpire": "即将过期"
},
{
"activateTime": 1504151032,
"activateUid": 500027364,
"amount": 500,
"cardCode": "LPK00500000025",
"dateStr": "2017.08.31-2017.10.01",
"endTime": 1506842032,
"id": 44,
"name": "卡片25",
"remainAmount": 100,
"status": 40,
"willExpire": "即将过期"
},
{
"activateTime": 1504150032,
"activateUid": 500027364,
"amount": 100,
"cardCode": "LPK00500000001",
"dateStr": "2017.08.31-2017.09.30",
"endTime": 1506742032,
"id": 8,
"name": "棉花用的谁抢杀谁",
"remainAmount": 50,
"status": 40,
"willExpire": "即将过期"
},
{
"activateTime": 1504150032,
"activateUid": 500027364,
"amount": 200,
"cardCode": "LPK00500000002",
"dateStr": "2017.08.31-2017.09.30",
"endTime": 1506742032,
"id": 10,
"name": "棉花用的谁抢灭谁",
"remainAmount": 200,
"status": 40,
"willExpire": "即将过期"
},
{
"activateTime": 1504150032,
"activateUid": 500027364,
"amount": 200,
"cardCode": "LPK00500000003",
"dateStr": "2017.08.31-2017.09.30",
"endTime": 1506742032,
"id": 12,
"name": "33333",
"remainAmount": 100,
"status": 40,
"willExpire": "即将过期"
},
{
"activateTime": 1504150032,
"activateUid": 500027364,
"amount": 400,
"cardCode": "LPK00500000004",
"dateStr": "2017.08.31-2017.09.30",
"endTime": 1506742032,
"id": 14,
"name": "卡片4",
"remainAmount": 100,
"status": 40,
"willExpire": "即将过期"
},
{
"activateTime": 1504150032,
"activateUid": 500027364,
"amount": 400,
"cardCode": "LPK00500000024",
"dateStr": "2017.08.31-2017.09.30",
"endTime": 1506742032,
"id": 42,
"name": "卡片24",
"remainAmount": 100,
"status": 40,
"willExpire": "即将过期"
}
],
"limit": 9,
"pageSize": 0,
"total": 27
},
"md5": "3ad431ca76d80aa8e8bf3ed4c9835e3c",
"message": "操作成功"
}