Showing
1 changed file
with
41 additions
and
0 deletions
@@ -18,4 +18,45 @@ code为200即为成功,否则是失败。 | @@ -18,4 +18,45 @@ code为200即为成功,否则是失败。 | ||
18 | "md5":"c1d725306fb09dcbf504776d276521cb", | 18 | "md5":"c1d725306fb09dcbf504776d276521cb", |
19 | "message":"ok" | 19 | "message":"ok" |
20 | } | 20 | } |
21 | +``` | ||
22 | + | ||
23 | +## 2、获取用户可用和不可用优惠券列表 ## | ||
24 | +#### 说明 | ||
25 | +获取用户优惠券列表,可用和不可用(app.Shopping.listCoupon) | ||
26 | +#### 请求参数 | ||
27 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
28 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
29 | +|uid|int|否|3236556|0|用户id| | ||
30 | + | ||
31 | +### 响应 | ||
32 | +code为200即为成功,否则是失败。 | ||
33 | +响应JSON格式如下所示: | ||
34 | + | ||
35 | +```json | ||
36 | +{ | ||
37 | + "alg": "SALT_MD5", | ||
38 | + "code": 200, | ||
39 | + "data": { | ||
40 | + "usable_coupons":[ | ||
41 | + { | ||
42 | + "coupon_code": "amccccc", | ||
43 | + "coupon_name": "生日券", | ||
44 | + "coupon_type": "3", | ||
45 | + "coupon_validity": "2013.11.01-2017.01.31", | ||
46 | + "coupon_value": "55" | ||
47 | + } | ||
48 | + ], | ||
49 | + "unusable_coupons": [ | ||
50 | + { | ||
51 | + "coupon_code": "ambb2345", | ||
52 | + "coupon_name": "生日券", | ||
53 | + "coupon_type": "3", | ||
54 | + "coupon_validity": "2013.11.01-2017.01.31", | ||
55 | + "coupon_value": "55" | ||
56 | + } | ||
57 | + ] | ||
58 | + }, | ||
59 | + "md5": "c1d725306fb09dcbf504776d276521cb", | ||
60 | + "message": "ok" | ||
61 | +} | ||
21 | ``` | 62 | ``` |
-
Please register or login to post a comment