管理页获取礼品卡列表(app接口).md
4.03 KB
1、获取礼品卡列表
获取礼品卡列表 (method=app.giftcard.list)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
---|---|---|---|---|
uid | int | 否 | 500027361 | uid |
status | int | 是 | 1-可使用,2-已冻结,3-已过期,4-已用完,若不传,则同时获取四种状态的数据 |
注意,通用的头部没有列出。
请求示例:
http://localhost:8090/gateway?method=app.giftcard.list&debug=XYZ&uid=500027361
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data":[
{
"desc": "已冻结",
"giftCardInfoBOList": [
{
"activateTime": 1504152032,
"activateUid": 500027361,
"amount": 600,
"cardCode": "LPK00500000012",
"dateStr": "2017.08.31-2017.10.02",
"endTime": 1506942032,
"id": 30,
"name": "卡片12",
"remainAmount": 100,
"status": 50,
"statusStr": "已冻结",
"type": "2"
}
],
"status": "50",
"type": "2"
},
{
"desc": "已用完",
"giftCardInfoBOList": [
{
"activateTime": 1504152032,
"activateUid": 500027361,
"amount": 600,
"cardCode": "LPK00500000026",
"dateStr": "2017.08.31-2017.10.02",
"endTime": 1506942032,
"id": 46,
"name": "卡片26",
"remainAmount": 100,
"status": 70,
"statusStr": "已用完",
"type": "4"
}
],
"status": "70",
"type": "4"
},
{
"desc": "可使用",
"giftCardInfoBOList": [
{
"activateTime": 1504152032,
"activateUid": 500027361,
"amount": 600,
"cardCode": "LPK00500000011",
"dateStr": "2017.08.31-2017.10.02",
"endTime": 1506942032,
"id": 28,
"name": "卡片11",
"remainAmount": 100,
"status": 40,
"statusStr": "可使用",
"type": "1",
"willExpire": "即将过期"
},
{
"activateTime": 1504142032,
"activateUid": 500027361,
"amount": 600,
"cardCode": "LPK00500000009",
"dateStr": "2017.08.31-2017.10.14",
"endTime": 1507942032,
"id": 24,
"name": "卡片9",
"remainAmount": 100,
"status": 40,
"statusStr": "可使用",
"type": "1"
}
],
"status": "40",
"type": "1"
},
{
"desc": "已过期",
"giftCardInfoBOList": [
{
"activateTime": 1500152032,
"activateUid": 500027361,
"amount": 600,
"cardCode": "LPK00500000027",
"dateStr": "2017.07.16-2017.10.02",
"endTime": 1506942032,
"id": 48,
"name": "卡片27",
"remainAmount": 100,
"status": 60,
"statusStr": "已过期",
"type": "3"
}
],
"status": "60",
"type": "3"
}
]
"md5": "3821b8603e9e240a7d619c69ebfba96a",
"message": "操作成功"
}