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