我的优惠券
<p><strong>简要描述:</strong> </p>
<ul>
<li>我的优惠券</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cli/coupons</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>get </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>ready 未使用,其他为使用</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 19,
"user_id": 66,
"coupon_id": 7,
"expire_at": "2018-07-17 14:39:27",
"price": 1,
"status": "expire",
"bill_id": null,
"order_id": null,
"commodity_id": 84,
"used_at": null,
"created_at": "2018-07-16 14:39:27",
"name": "优惠券测试商品"
},
{
"id": 17,
"user_id": 66,
"coupon_id": 4,
"expire_at": "2018-07-16 17:31:12",
"price": 10,
"status": "expire",
"bill_id": null,
"order_id": null,
"commodity_id": 84,
"used_at": null,
"created_at": "2018-07-13 17:31:12",
"name": "优惠券测试商品"
},
{
"id": 15,
"user_id": 66,
"coupon_id": 2,
"expire_at": "2018-07-18 15:48:47",
"price": 15,
"status": "expire",
"bill_id": null,
"order_id": null,
"commodity_id": 84,
"used_at": null,
"created_at": "2018-07-13 15:48:47",
"name": "优惠券测试商品"
},
{
"id": 14,
"user_id": 66,
"coupon_id": 4,
"expire_at": "2018-07-16 15:13:26",
"price": 10,
"status": "expire",
"bill_id": null,
"order_id": null,
"commodity_id": 84,
"used_at": null,
"created_at": "2018-07-13 15:13:26",
"name": "优惠券测试商品"
}
],
"first_page_url": "http://localhost:82/api/cli/coupons?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:82/api/cli/coupons?page=1",
"next_page_url": null,
"path": "http://localhost:82/api/cli/coupons",
"per_page": 20,
"prev_page_url": null,
"to": 4,
"total": 4
},
"message": "操作成功"
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">status</td>
<td style="text-align: left;">string</td>
<td>expire、ready,used</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>