转赠优惠卷、发红包
<h5>简要描述</h5>
<ul>
<li>转赠若干张优惠卷,或发红包,可一次操作多种优惠卷,根据ID操作,传入时必须将所有要转赠的卷的id完整转入
<h5>请求URL</h5></li>
<li><code>/coupon/transferCoupon</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>
<tr>
<td style="text-align: left;">couIdArr</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">array</td>
<td>一张或多张优惠卷的id</td>
</tr>
</tbody>
</table>
<h5>传参示例</h5>
<pre><code>{
couIdArr: [ 1, 3 ]
}
</code></pre>
<p>其中,1,3 都是优惠卷所独有的id,可根据接口<code>/coupon/getUserCoupon</code>获取优惠卷的详细信息</p>
<h5>返回示例</h5>
<pre><code>{
"status": 200,
"msg": "优惠卷转赠/发红包成功!"
}
{
"status": 401,
"msg": "优惠卷id传入错误!(传入量大于用户所有量)"
}
{
"status": 402,
"msg": "优惠卷id传入错误!(传入值中有用户所没有的卷ID)"
}
{
"status": 403,
"msg": "用户名下可使用的卷中,不包括传入的卷"
}
{
"status": 500,
"msg": "优惠卷转赠/发红包失败!"
}</code></pre>
<h5>返回参数说明</h5>
<h5>备注</h5>
<ul>
<li>在传入同种类的,大于一张的优惠卷时,需要手动从该种类下的若干张优惠卷中选出要传入后台的优惠卷的id</li>
</ul>