Authored by lijian

优惠券

#用户优惠券接口
## 接口列表
| 接口名称 | 接口描述 |
| --------| -------- |
|[app.promotion.queryCoupon](#1)|查询优惠券的列表信息|
|[app.promotion.queryBirthCoupon](#2)|查询生日券列表 发送生日券|
|[app.promotion.getCoupon](#3)|用户领券|
## 接口描述
### 1、查询优惠券的列表信息(app.promotion.queryCoupon)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true |app.promotion.queryCoupon| 请求方法|
| couponType | int | true | 4 |券类型 1 A券 2 B券 3 公开券4 生日券5 免邮券 |
#### 响应内容
```json
```
### 2、查询生日券列表(app.promotion.queryBirthCoupon)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true |app.promotion.queryBirthCoupon| 请求方法|
| couponType | int | true | 4 |券类型 1 A券 2 B券 3 公开券4 生日券5 免邮券 |
| uid | int | true | 7893817 |用户ID |
#### 响应内容
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"couponAmount": 50,
"couponCode": "",
"couponName": "12月生日券-满199减50",
"endTime": "2017-01-31 09:45:40",
"id": 2030,
"startTime": "2013-12-01 00:00:00",
"status": 1,
"useLimit": "199",
"useLimitType": "2"
},
{
"couponAmount": 300,
"couponCode": "",
"couponName": "12月生日券-满799减300",
"endTime": "2017-01-31 09:45:40",
"id": 2033,
"startTime": "2013-12-01 00:00:00",
"status": 1,
"useLimit": "799",
"useLimitType": "2"
},
{
"couponAmount": 50,
"couponCode": "",
"couponName": "1月生日券-满199减50",
"endTime": "2017-01-31 09:45:40",
"id": 2035,
"startTime": "2014-01-01 00:00:00",
"status": 1,
"useLimit": "199",
"useLimitType": "2"
},
{
"couponAmount": 300,
"couponCode": "",
"couponName": "1月生日券-满799减300",
"endTime": "2017-01-31 09:45:40",
"id": 2038,
"startTime": "2014-01-01 00:00:00",
"status": 1,
"useLimit": "799",
"useLimitType": "2"
}
],
"md5": "c957283765172838f577de4228d45a42",
"message": "请求成功"
}
```
### 3、用户领券(app.promotion.getCoupon)
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| method | String | true |app.promotion.getCoupon| 请求方法|
| uid | int | true | 7893817 |用户ID |
| couponId | int | true |23121 |券id|
#### 响应内容
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
},
"md5": "50d19f5f5098c34607018f144baec14a",
"message": "操作成功"
}
```
... ...