搜索接口
<p><strong>简要描述:</strong> </p>
<p>-搜索接口</p>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{{url}}/api/search</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>
<tr>
<td style="text-align: left;">keyword</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>查询短剧名称</td>
</tr>
<tr>
<td style="text-align: left;">linkage</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>默认为0,传1为联动查询</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;Success&quot;,
&quot;data&quot;: {
&quot;current_page&quot;: 1,
&quot;data&quot;: [
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/557/9b8/4b2/3065e0c700281439a2810b0.jpg_1080_0_40_1dd8.jpg&quot;,
&quot;play_id&quot;: 10015,
&quot;play_name&quot;: &quot;爱在黎明前降落英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/f41/7a5/f74/d45483573054cfd7b5a6165.jpg_1080_0_40_b564.jpg&quot;,
&quot;play_id&quot;: 10014,
&quot;play_name&quot;: &quot;我在八零年代当后妈英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/813/02e/4fc/bb1dcb4600a8bf067887391.jpg_1080_0_40_cec7.jpg&quot;,
&quot;play_id&quot;: 10013,
&quot;play_name&quot;: &quot;脱缰英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/557/9b8/4b2/3065e0c700281439a2810b0.jpg_1080_0_40_1dd8.jpg&quot;,
&quot;play_id&quot;: 10012,
&quot;play_name&quot;: &quot;爱在黎明前降落英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/f41/7a5/f74/d45483573054cfd7b5a6165.jpg_1080_0_40_b564.jpg&quot;,
&quot;play_id&quot;: 10011,
&quot;play_name&quot;: &quot;我在八零年代当后妈英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/813/02e/4fc/bb1dcb4600a8bf067887391.jpg_1080_0_40_cec7.jpg&quot;,
&quot;play_id&quot;: 10010,
&quot;play_name&quot;: &quot;脱缰英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/557/9b8/4b2/3065e0c700281439a2810b0.jpg_1080_0_40_1dd8.jpg&quot;,
&quot;play_id&quot;: 10009,
&quot;play_name&quot;: &quot;爱在黎明前降落英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/f41/7a5/f74/d45483573054cfd7b5a6165.jpg_1080_0_40_b564.jpg&quot;,
&quot;play_id&quot;: 10008,
&quot;play_name&quot;: &quot;我在八零年代当后妈英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/813/02e/4fc/bb1dcb4600a8bf067887391.jpg_1080_0_40_cec7.jpg&quot;,
&quot;play_id&quot;: 10007,
&quot;play_name&quot;: &quot;脱缰英文&quot;
},
{
&quot;play_cover&quot;: &quot;https://imgcache.dealmoon.com/thumbimg.dealmoon.com/dealmoon/557/9b8/4b2/3065e0c700281439a2810b0.jpg_1080_0_40_1dd8.jpg&quot;,
&quot;play_id&quot;: 10006,
&quot;play_name&quot;: &quot;爱在黎明前降落英文&quot;
}
],
&quot;first_page_url&quot;: &quot;http://98.98.0.180:9501/api/search?page=1&quot;,
&quot;from&quot;: 1,
&quot;last_page&quot;: 2,
&quot;last_page_url&quot;: &quot;http://98.98.0.180:9501/api/search?page=2&quot;,
&quot;next_page_url&quot;: &quot;http://98.98.0.180:9501/api/search?page=2&quot;,
&quot;path&quot;: &quot;http://98.98.0.180:9501/api/search&quot;,
&quot;per_page&quot;: 10,
&quot;prev_page_url&quot;: null,
&quot;to&quot;: 10,
&quot;total&quot;: 15,
&quot;module_id&quot;: 5,
&quot;module_name&quot;: &quot;serach&quot;,
&quot;module_type&quot;: 5
}
}</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.current_page</td>
<td style="text-align: left;">id</td>
<td>当前页面</td>
</tr>
<tr>
<td style="text-align: left;">data.data.play_id</td>
<td style="text-align: left;">int</td>
<td>短剧ID</td>
</tr>
<tr>
<td style="text-align: left;">data.data.play_name</td>
<td style="text-align: left;">string</td>
<td>短剧名称</td>
</tr>
<tr>
<td style="text-align: left;">data.data.play_cover</td>
<td style="text-align: left;">string</td>
<td>短剧封面</td>
</tr>
<tr>
<td style="text-align: left;">data.first_page_url</td>
<td style="text-align: left;">string</td>
<td>第一页url</td>
</tr>
<tr>
<td style="text-align: left;">data.last_page_url</td>
<td style="text-align: left;">string</td>
<td>最后一页url</td>
</tr>
<tr>
<td style="text-align: left;">data.next_page_url</td>
<td style="text-align: left;">string</td>
<td>下一页url</td>
</tr>
<tr>
<td style="text-align: left;">data.total</td>
<td style="text-align: left;">int</td>
<td>数据总个数</td>
</tr>
<tr>
<td style="text-align: left;">data.last_page</td>
<td style="text-align: left;">int</td>
<td>最后一页</td>
</tr>
<tr>
<td style="text-align: left;">data.per_page</td>
<td style="text-align: left;">int</td>
<td>每页的数据条数</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>