|
|
品牌优惠券接口服务定义
|
|
|
---------------------
|
|
|
相关数据表:yhb_promotion.brand_coupons
|
|
|
|
|
|
## 添加品牌优惠券接口
|
|
|
|
|
|
> 接口名:brandCoupon/add
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|可否为空|例子|说明|
|
|
|
|--------|----|--------|----|----|
|
|
|
|brandId|int|否|949|品牌ID|
|
|
|
|brandName|string|否|004|品牌名称|
|
|
|
|couponsId|int|否|18|优惠券ID|
|
|
|
|status|int|否|1|状态|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "添加成功."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 根据ID查询品牌优惠券接口
|
|
|
|
|
|
> 接口名:brandCoupon/queryById
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|可否为空|例子|说明|
|
|
|
|--------|----|--------|----|----|
|
|
|
|id|int|否|70|品牌优惠券记录ID|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"brandId": 1,
|
|
|
"brandName": "004",
|
|
|
"couponsId": 15,
|
|
|
"createPersonId": 0,
|
|
|
"createPersonName": "",
|
|
|
"createTime": 1464156770,
|
|
|
"id": 70,
|
|
|
"status": 1,
|
|
|
"updatePersonId": 0,
|
|
|
"updatePersonName": " ",
|
|
|
"updateTime": 0
|
|
|
},
|
|
|
"md5": "5b21db9834247309d36907c80bb215da",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 更新品牌优惠券接口
|
|
|
|
|
|
> 接口名:brandCoupon/update
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|可否为空|例子|说明|
|
|
|
|--------|----|--------|----|----|
|
|
|
|id|int|否|70|品牌优惠券记录ID|
|
|
|
|brandId|int|否|949|品牌ID|
|
|
|
|brandName|string|否|004|品牌名称|
|
|
|
|couponsId|int|否|18|优惠券ID|
|
|
|
|status|int|否|1|状态|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "更新成功."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
## 查询品牌优惠券分页列表
|
|
|
|
|
|
> 接口名:brandCoupon/queryList
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|可否为空|例子|说明|
|
|
|
|--------|----|--------|----|----|
|
|
|
|brandName|string|是|004|品牌名称|
|
|
|
|status|int|是|1|状态|
|
|
|
|couponsId|int|是|15|优惠券ID|
|
|
|
|page|int|是|2|页码,默认1|
|
|
|
|size|int|是|2|每页显示数量,默认10|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"brandName": "004",
|
|
|
"couponsId": 15,
|
|
|
"createTime": 1464156770,
|
|
|
"id": 70,
|
|
|
"status": 2,
|
|
|
"updateTime": 1464157315
|
|
|
},
|
|
|
{
|
|
|
"brandName": "004",
|
|
|
"couponsId": 12426,
|
|
|
"createTime": 1459222650,
|
|
|
"id": 67,
|
|
|
"status": 2,
|
|
|
"updateTime": 0
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 2,
|
|
|
"total": 66,
|
|
|
"totalPage": 33
|
|
|
},
|
|
|
"md5": "688dfacbf6477dd7d3812ea7d5db4a32",
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|