获取优惠卷信息2.0
<h5>简要描述</h5>
<ul>
<li>用户注册接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/coupon/getCoupon2</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"status": 200,
"msg": "获取用户优惠卷数据成功",
"data": [
{
"category": 1,
"content": "B1全国通用",
"children": [
{
"coupon_id": 9,
"coupon_price": 21,
"coupon_category": 1,
"coupon_content": "B1全国通用",
"coupon_master_id": 7,
"coupon_status": 1,
"coupon_createTime": "2022-08-02T11:51:28.000Z",
"coupon_term": 24
},
{
"coupon_id": 10,
"coupon_price": 21,
"coupon_category": 1,
"coupon_content": "B1全国通用",
"coupon_master_id": 7,
"coupon_status": 1,
"coupon_createTime": "2022-08-02T11:51:28.000Z",
"coupon_term": 24
}
],
"price": 21
},
{
"category": 2,
"content": "B2全国通用",
"children": [],
"price": 24
},
{
"category": 3,
"content": "B3全国通用",
"children": [
{
"coupon_id": 5,
"coupon_price": 24,
"coupon_category": 3,
"coupon_content": "B5全国通用",
"coupon_master_id": 7,
"coupon_status": 1,
"coupon_createTime": "2022-08-02T06:35:47.000Z",
"coupon_term": 24
}
],
"price": 27
},
{
"category": 4,
"content": "B4全国通用",
"children": [],
"price": 21
},
{
"category": 5,
"content": "B5全国通用",
"children": [
{
"coupon_id": 51,
"coupon_price": 24,
"coupon_category": 5,
"coupon_content": "B5全国通用",
"coupon_master_id": 7,
"coupon_status": 1,
"coupon_createTime": "2022-08-02T12:12:37.000Z",
"coupon_term": 24
}
],
"price": 24
},
{
"category": 6,
"content": "B6全国通用",
"children": [],
"price": 27
}
]
}
{
"status": 200,
"msg": "获取用户优惠卷数据成功",
"data": []
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>