|
|
# 优惠券管理
|
|
|
---------------------
|
|
|
|
|
|
## 取消用户优惠券使用
|
|
|
|
|
|
> 接口名:`/couponLogs/cancelCouponUse`
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|id|int|2|用户券记录的主键id|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{
|
|
|
"id":39529836
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "取消用户券使用成功"
|
|
|
}
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 405,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "取消用户券使用失败"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 用户券延期
|
|
|
> 接口名:`/couponLogs/delayUserCoupon`
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|id|int|2|用户券记录的主键id|
|
|
|
|endTime|int|1221222212|延期时间 时间戳到秒|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{
|
|
|
"id":39529836,
|
|
|
"endTime":123123123
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "用户券延期成功"
|
|
|
}
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 405,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "用户券延期失败"
|
|
|
}
|
|
|
```
|
|
|
## 查询用户券列表
|
|
|
> 接口名:`/couponLogs/queryUserCouponLogsList`
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|page|int|2|第几页|
|
|
|
|size|int|10|每页条数|
|
|
|
|couponId|int|1222|券id|
|
|
|
|couponCode|string|bsss1222|券码|
|
|
|
|couponName|string|测试券|券名称|
|
|
|
|couponId|int|1222|公开券id|
|
|
|
|orderCode|int|234234|订单号 |
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{
|
|
|
"page": 1,
|
|
|
"size": 2,
|
|
|
"couponId":12201
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"couponCode": "b4f1d14cb",
|
|
|
"couponId": 12201,
|
|
|
"couponType": 2,
|
|
|
"createTime": 1461729145,
|
|
|
"endTime": 1482979800,
|
|
|
"endTimeStr": "2016-12-29 10:50:00",
|
|
|
"id": 41302584,
|
|
|
"isCancel": "N",
|
|
|
"khId": 0,
|
|
|
"orderCode": 0,
|
|
|
"startTime": 1453101180,
|
|
|
"status": 0,
|
|
|
"uid": 8041652,
|
|
|
"useTime": 0
|
|
|
},
|
|
|
{
|
|
|
"couponCode": "b4f1d14cb",
|
|
|
"couponId": 12201,
|
|
|
"couponType": 2,
|
|
|
"createTime": 1461729145,
|
|
|
"endTime": 1482979800,
|
|
|
"endTimeStr": "2016-12-29 10:50:00",
|
|
|
"id": 41302582,
|
|
|
"isCancel": "N",
|
|
|
"khId": 0,
|
|
|
"orderCode": 0,
|
|
|
"startTime": 1453101180,
|
|
|
"status": 0,
|
|
|
"uid": 8041652,
|
|
|
"useTime": 0
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 2,
|
|
|
"total": 0,
|
|
|
"totalPage": 231077
|
|
|
},
|
|
|
"md5": "3b2299cbf9872c1c79f1bf6a9d7dbd46",
|
|
|
"message": "查询用户券记录信息成功"
|
|
|
}
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 405,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "查询用户券记录信息失败"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|