轮播图
<p><strong>简要描述</strong>:
轮播图</p>
<p><strong>请求URL:</strong>
<a href="https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata">https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata</a></p>
<p><strong>请求方式:</strong>
GET</p>
<p><strong>参数</strong>: 无</p>
<p><strong>返回示例</strong></p>
<p>{
"message": [
{
"image_src": "<a href="https://api-hmugo-web.itheima.net/pyg/banner1.png">https://api-hmugo-web.itheima.net/pyg/banner1.png</a>",
"open_type": "navigate",
"goods_id": 129,
"navigator_url": "/pages/goods_detail/index?goods_id=129"
}
],
"meta": {
"msg": "获取成功",
"status": 200
}
}</p>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>image_src</td>
<td>string</td>
<td>图片地址</td>
</tr>
<tr>
<td>open_type</td>
<td>string</td>
<td>打开方式</td>
</tr>
<tr>
<td>goods_id</td>
<td>number</td>
<td>商品ID</td>
</tr>
<tr>
<td>navigator_url</td>
<td>string</td>
<td>导航连接</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong>
更多返回错误代码请看首页的错误代码描述</p>