...
|
...
|
@@ -18,4 +18,45 @@ code为200即为成功,否则是失败。 |
|
|
"md5":"c1d725306fb09dcbf504776d276521cb",
|
|
|
"message":"ok"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、获取用户可用和不可用优惠券列表 ##
|
|
|
#### 说明
|
|
|
获取用户优惠券列表,可用和不可用(app.Shopping.listCoupon)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|否|3236556|0|用户id|
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"usable_coupons":[
|
|
|
{
|
|
|
"coupon_code": "amccccc",
|
|
|
"coupon_name": "生日券",
|
|
|
"coupon_type": "3",
|
|
|
"coupon_validity": "2013.11.01-2017.01.31",
|
|
|
"coupon_value": "55"
|
|
|
}
|
|
|
],
|
|
|
"unusable_coupons": [
|
|
|
{
|
|
|
"coupon_code": "ambb2345",
|
|
|
"coupon_name": "生日券",
|
|
|
"coupon_type": "3",
|
|
|
"coupon_validity": "2013.11.01-2017.01.31",
|
|
|
"coupon_value": "55"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"md5": "c1d725306fb09dcbf504776d276521cb",
|
|
|
"message": "ok"
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|