Authored by gemingdan

Delete 获取不同状态的礼品卡列表(订单接口).md

1 -## 1、获取礼品卡分页列表  
2 -  
3 -获取礼品卡列表 (**method=app.giftcard.pagelist**)  
4 -  
5 -  
6 -**请求参数**  
7 -  
8 -| 参数名称 | 参数类型 |可否为空 |示例 |默认值 | 备注 |  
9 -| ---------|:--------:| --------:|-----:|------:|-----:|------:|  
10 -|uid|int | 否 |123456 | | |  
11 -|status|int|否 | 1 | |1-可使用,2-已冻结,3-已过期,4-已用完|  
12 -|page|int |是 |1 | 1 | |  
13 -|limit|int |是 |10 | 10| |  
14 -  
15 -  
16 -**注意**,通用的头部没有列出。  
17 -  
18 -**请求示例:**  
19 -http://localhost:8080/gateway?method=app.giftcard.pagelist&debug=XYZ&uid=123456&status=1&page=1&limit=20  
20 -  
21 -code为200即为成功,否则是失败。 响应JSON格式如下所示:  
22 -```json  
23 -{  
24 - "alg": "SALT_MD5",  
25 - "code": 200,  
26 - "data": {  
27 - "currPage": 3,  
28 - "currTotal": 9,  
29 - "giftCardInfoBOList": [  
30 - {  
31 - "activateTime": 1504152032,  
32 - "activateUid": 500027364,  
33 - "amount": 600,  
34 - "cardCode": "LPK00500000022",  
35 - "dateStr": "2017.08.31-2017.10.02",  
36 - "endTime": 1506942032,  
37 - "id": 58,  
38 - "name": "卡片22",  
39 - "remainAmount": 100,  
40 - "status": 40  
41 - },  
42 - {  
43 - "activateTime": 1504152032,  
44 - "activateUid": 500027364,  
45 - "amount": 600,  
46 - "cardCode": "LPK00500000023",  
47 - "dateStr": "2017.08.31-2017.10.02",  
48 - "endTime": 1506942032,  
49 - "id": 60,  
50 - "name": "卡片23",  
51 - "remainAmount": 100,  
52 - "status": 40  
53 - },  
54 - {  
55 - "activateTime": 1504151032,  
56 - "activateUid": 500027364,  
57 - "amount": 500,  
58 - "cardCode": "LPK00500000005",  
59 - "dateStr": "2017.08.31-2017.10.01",  
60 - "endTime": 1506842032,  
61 - "id": 16,  
62 - "name": "卡片5",  
63 - "remainAmount": 100,  
64 - "status": 40,  
65 - "willExpire": "即将过期"  
66 - },  
67 - {  
68 - "activateTime": 1504151032,  
69 - "activateUid": 500027364,  
70 - "amount": 500,  
71 - "cardCode": "LPK00500000025",  
72 - "dateStr": "2017.08.31-2017.10.01",  
73 - "endTime": 1506842032,  
74 - "id": 44,  
75 - "name": "卡片25",  
76 - "remainAmount": 100,  
77 - "status": 40,  
78 - "willExpire": "即将过期"  
79 - },  
80 - {  
81 - "activateTime": 1504150032,  
82 - "activateUid": 500027364,  
83 - "amount": 100,  
84 - "cardCode": "LPK00500000001",  
85 - "dateStr": "2017.08.31-2017.09.30",  
86 - "endTime": 1506742032,  
87 - "id": 8,  
88 - "name": "棉花用的谁抢杀谁",  
89 - "remainAmount": 50,  
90 - "status": 40,  
91 - "willExpire": "即将过期"  
92 - },  
93 - {  
94 - "activateTime": 1504150032,  
95 - "activateUid": 500027364,  
96 - "amount": 200,  
97 - "cardCode": "LPK00500000002",  
98 - "dateStr": "2017.08.31-2017.09.30",  
99 - "endTime": 1506742032,  
100 - "id": 10,  
101 - "name": "棉花用的谁抢灭谁",  
102 - "remainAmount": 200,  
103 - "status": 40,  
104 - "willExpire": "即将过期"  
105 - },  
106 - {  
107 - "activateTime": 1504150032,  
108 - "activateUid": 500027364,  
109 - "amount": 200,  
110 - "cardCode": "LPK00500000003",  
111 - "dateStr": "2017.08.31-2017.09.30",  
112 - "endTime": 1506742032,  
113 - "id": 12,  
114 - "name": "33333",  
115 - "remainAmount": 100,  
116 - "status": 40,  
117 - "willExpire": "即将过期"  
118 - },  
119 - {  
120 - "activateTime": 1504150032,  
121 - "activateUid": 500027364,  
122 - "amount": 400,  
123 - "cardCode": "LPK00500000004",  
124 - "dateStr": "2017.08.31-2017.09.30",  
125 - "endTime": 1506742032,  
126 - "id": 14,  
127 - "name": "卡片4",  
128 - "remainAmount": 100,  
129 - "status": 40,  
130 - "willExpire": "即将过期"  
131 - },  
132 - {  
133 - "activateTime": 1504150032,  
134 - "activateUid": 500027364,  
135 - "amount": 400,  
136 - "cardCode": "LPK00500000024",  
137 - "dateStr": "2017.08.31-2017.09.30",  
138 - "endTime": 1506742032,  
139 - "id": 42,  
140 - "name": "卡片24",  
141 - "remainAmount": 100,  
142 - "status": 40,  
143 - "willExpire": "即将过期"  
144 - }  
145 - ],  
146 - "limit": 9,  
147 - "pageSize": 0,  
148 - "total": 27  
149 - },  
150 - "md5": "3ad431ca76d80aa8e8bf3ed4c9835e3c",  
151 - "message": "操作成功"  
152 -}  
153 -  
154 -```