首页接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>首页接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{{url}}/api/home</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<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;">page</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>默认是第一页,传第二页返回的只有新剧数据</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;Sucesso&quot;,
&quot;data&quot;: [
{
&quot;module_id&quot;: 1,
&quot;module_name&quot;: &quot;banner&quot;,
&quot;module_type&quot;: 1,
&quot;data&quot;: [
{
&quot;cover&quot;: &quot;http://localhost/uploads/image/2024-11-04/2024kmHpLo9Kjw1730706479.jpg&quot;,
&quot;play_id&quot;: 10000,
&quot;play_name&quot;: &quot;巴西&quot;,
&quot;url&quot;: &quot;https://gd-hbimg.huaban.com/bccc9a8db315df9dc1a494374f40032a6ede70cb109c3-agIcDg_fw658webp&quot;,
&quot;play_cover&quot;: &quot;http://yqy-api.cn/uploads/file/2024-10-30/2024tMTzT4UPrw1730283416.webp&quot;
}
]
},
{
&quot;module_id&quot;: 2,
&quot;module_name&quot;: &quot;history&quot;,
&quot;module_type&quot;: 3,
&quot;data&quot;: [
{
&quot;play_id&quot;: 10000,
&quot;episode_id&quot;: 2,
&quot;episode_number&quot;: 11,
&quot;play_name&quot;: &quot;巴西&quot;,
&quot;play_cover&quot;: &quot;http://yqy-api.cn/uploads/file/2024-10-30/2024tMTzT4UPrw1730283416.webp&quot;
}
]
},
{
&quot;module_id&quot;: 3,
&quot;module_name&quot;: &quot;hots&quot;,
&quot;module_type&quot;: 3,
&quot;data&quot;: [
{
&quot;play_cover&quot;: &quot;http://yqy-api.cn/uploads/file/2024-10-30/2024tMTzT4UPrw1730283416.webp&quot;,
&quot;sort_hot&quot;: 2,
&quot;play_id&quot;: 10000,
&quot;play_name&quot;: &quot;巴西&quot;
},
{
&quot;play_cover&quot;: &quot;http://localhost/uploads/image/2024-10-31/2024JTYieZgT1u1730373917.jpg&quot;,
&quot;sort_hot&quot;: 1,
&quot;play_id&quot;: 10002,
&quot;play_name&quot;: &quot;测试巴西&quot;
}
]
},
{
&quot;module_id&quot;: 4,
&quot;module_name&quot;: &quot;news&quot;,
&quot;module_type&quot;: 3,
&quot;data&quot;: [
{
&quot;play_cover&quot;: &quot;http://yqy-api.cn/uploads/file/2024-10-30/2024tMTzT4UPrw1730283416.webp&quot;,
&quot;sort_recom&quot;: 3,
&quot;play_id&quot;: 10000,
&quot;play_name&quot;: &quot;巴西&quot;
},
{
&quot;play_cover&quot;: &quot;http://localhost/uploads/image/2024-10-31/2024JTYieZgT1u1730373917.jpg&quot;,
&quot;sort_recom&quot;: 2,
&quot;play_id&quot;: 10002,
&quot;play_name&quot;: &quot;测试巴西&quot;
}
]
}
],
&quot;encrypted&quot;: &quot;ksEhlJFNMO1cF7e6liWpwpBxrfd6YI0z0Kchd2kTEZ7X5OfK95ySmaqjKf+/Os8yX0Vb5nKS6iQ7TstobpOy4m3E2HodudDHMtTZiN+xH7GegPJ8xEN8iZrE9u19JCj22NtBjxzAUWwDFwXw7XE2YwOEIfoPzcv45nKM8v1PZGfr3RUYu3EFb/wyD1XV2AYTYMPQnjE6ONf5FETtve+yDhvPxYlm3v+IU4xzjuZudEWzeYrK+2T7YMjV7QFd4E2UiUAnUyNmUMayaG6FgtISxV7xkAUe926yY5cHLfj4JsymiVrGRcCQT40TxliuVcJIugIxATcdKRb4LslEf9qn+l/L8sd/cku8bzveeU0ljde008Rh+rkJp6n6YCHW9XPI8VtvcmXyz6fYbP4uhx3ZnTntPg6JbBPMUFqtGMZGOTpp1+J5wDGFF0mPByIQopikCQebbA7aP66yV5wa2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InsECK1NQHYtdoCl8v8hrgFY5QWIFK1VYCB9UHnrmBO5Lf7neYKkPFe4TVdVgkxOx1jDyKf+6ZEir+JfGAPN7PSSZExp6X6+vWi7Iha2+M1GPl5MkJwR9AqYx/Ydoe5E9ll3BAPzFpNDoTzowo8c9rqtIqLluNdZPzL5TR65QSYUil7mR4AUm2FzY8XcQKl9N9q7xWSIFdEFB+5+jtt21qqYME19EgXM/5DX4IAQX1fXYJTHX9VK9InPBIe/TElcsjsyM8Hh0dS/j0iso1w2aZvjKMFKteKmktgKzPk&quot;
}</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;">data.id</td>
<td style="text-align: left;">id</td>
<td>用户ID</td>
</tr>
<tr>
<td style="text-align: left;">data.banner</td>
<td style="text-align: left;">array</td>
<td>banner数据</td>
</tr>
<tr>
<td style="text-align: left;">data.banner.play_id</td>
<td style="text-align: left;">int</td>
<td>短剧ID</td>
</tr>
<tr>
<td style="text-align: left;">data.banner.play_name</td>
<td style="text-align: left;">string</td>
<td>短剧名称</td>
</tr>
<tr>
<td style="text-align: left;">data.banner.url</td>
<td style="text-align: left;">string</td>
<td>短剧播放url</td>
</tr>
<tr>
<td style="text-align: left;">data.banner.cover</td>
<td style="text-align: left;">string</td>
<td>banner封面</td>
</tr>
<tr>
<td style="text-align: left;">data.banner.play_cover</td>
<td style="text-align: left;">string</td>
<td>短剧封面,当cover为空时,使用此值</td>
</tr>
<tr>
<td style="text-align: left;">data.history</td>
<td style="text-align: left;">array</td>
<td>用户观看数据</td>
</tr>
<tr>
<td style="text-align: left;">data.history.play_id</td>
<td style="text-align: left;">int</td>
<td>短剧ID</td>
</tr>
<tr>
<td style="text-align: left;">data.history.play_name</td>
<td style="text-align: left;">string</td>
<td>短剧名称</td>
</tr>
<tr>
<td style="text-align: left;">data.history.episodes_id</td>
<td style="text-align: left;">string</td>
<td>短剧集数ID</td>
</tr>
<tr>
<td style="text-align: left;">data.history.episodes_number</td>
<td style="text-align: left;">string</td>
<td>短剧集数的第几集</td>
</tr>
<tr>
<td style="text-align: left;">data.history.play_cover</td>
<td style="text-align: left;">string</td>
<td>短剧封面</td>
</tr>
<tr>
<td style="text-align: left;">data.hots</td>
<td style="text-align: left;">array</td>
<td>短剧热剧数据</td>
</tr>
<tr>
<td style="text-align: left;">data.hots.play_id</td>
<td style="text-align: left;">int</td>
<td>短剧ID</td>
</tr>
<tr>
<td style="text-align: left;">data.hots.play_name</td>
<td style="text-align: left;">string</td>
<td>短剧名称</td>
</tr>
<tr>
<td style="text-align: left;">data.hots.play_cover</td>
<td style="text-align: left;">string</td>
<td>短剧封面</td>
</tr>
<tr>
<td style="text-align: left;">data.news</td>
<td style="text-align: left;">string</td>
<td>短剧新剧数据</td>
</tr>
<tr>
<td style="text-align: left;">data.news.play_id</td>
<td style="text-align: left;">int</td>
<td>短剧ID</td>
</tr>
<tr>
<td style="text-align: left;">data.news.play_name</td>
<td style="text-align: left;">string</td>
<td>短剧名称</td>
</tr>
<tr>
<td style="text-align: left;">data.news.play_cover</td>
<td style="text-align: left;">string</td>
<td>短剧封面</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>