搜索首页
<h5>简要描述</h5>
<ul>
<li>搜索首页</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/api/searchIndex</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </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;">pageSize</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>数量(用做控制搜索词数量,默认20)</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 200,
"message": "ok",
"data": {
"hot_key": [
{
"search_id": 60,
"search_rec": 1,
"search_count": 4,
"week_search_count": 0,
"search_module": "novel",
"search_type": 1,
"search_key": "我代表",
"search_data": 1,
"is_display": 1,
"search_time": 1590046222,
"week_update_time": 0
},
{
"search_id": 179,
"search_rec": 0,
"search_count": 25,
"week_search_count": 11,
"search_module": "novel",
"search_type": 1,
"search_key": "作家中心",
"search_data": 0,
"is_display": 1,
"search_time": 1590322216,
"week_update_time": 1616148110
},
{
"search_id": 141,
"search_rec": 0,
"search_count": 92,
"week_search_count": 8,
"search_module": "novel",
"search_type": 1,
"search_key": "天道最高",
"search_data": 1,
"is_display": 1,
"search_time": 1596200505,
"week_update_time": 1616148110
},
{
"search_id": 132,
"search_rec": 0,
"search_count": 15,
"week_search_count": 6,
"search_module": "novel",
"search_type": 1,
"search_key": "不要",
"search_data": 6,
"is_display": 1,
"search_time": 1595401850,
"week_update_time": 1616148110
},
{
"search_id": 201,
"search_rec": 0,
"search_count": 9,
"week_search_count": 6,
"search_module": "novel",
"search_type": 1,
"search_key": "面孔会变梦想不变",
"search_data": 0,
"is_display": 1,
"search_time": 1589894605,
"week_update_time": 1616148110
},
{
"search_id": 163,
"search_rec": 0,
"search_count": 8,
"week_search_count": 5,
"search_module": "novel",
"search_type": 1,
"search_key": "若星汉",
"search_data": 0,
"is_display": 1,
"search_time": 1589635638,
"week_update_time": 1616148110
},
{
"search_id": 193,
"search_rec": 0,
"search_count": 494,
"week_search_count": 5,
"search_module": "novel",
"search_type": 1,
"search_key": "斗破",
"search_data": 4,
"is_display": 1,
"search_time": 1596724734,
"week_update_time": 1616148111
},
{
"search_id": 128,
"search_rec": 0,
"search_count": 11,
"week_search_count": 4,
"search_module": "novel",
"search_type": 1,
"search_key": "修仙从",
"search_data": 2,
"is_display": 1,
"search_time": 1596587103,
"week_update_time": 1616148111
},
{
"search_id": 1228,
"search_rec": 0,
"search_count": 13,
"week_search_count": 4,
"search_module": "novel",
"search_type": 1,
"search_key": "勾魂舞步",
"search_data": 0,
"is_display": 1,
"search_time": 1590154091,
"week_update_time": 1616148111
},
{
"search_id": 231625,
"search_rec": 0,
"search_count": 3,
"week_search_count": 3,
"search_module": "novel",
"search_type": 1,
"search_key": "不过有人",
"search_data": 0,
"is_display": 1,
"search_time": 1616143538,
"week_update_time": 1616148111
},
{
"search_id": 1239,
"search_rec": 0,
"search_count": 25,
"week_search_count": 3,
"search_module": "novel",
"search_type": 1,
"search_key": "食材遇上了厨师",
"search_data": 1,
"is_display": 1,
"search_time": 1595835888,
"week_update_time": 1616148111
},
{
"search_id": 28849,
"search_rec": 0,
"search_count": 4,
"week_search_count": 3,
"search_module": "novel",
"search_type": 1,
"search_key": "神通",
"search_data": 1,
"is_display": 1,
"search_time": 1590603477,
"week_update_time": 1616148111
},
{
"search_id": 152,
"search_rec": 0,
"search_count": 40,
"week_search_count": 3,
"search_module": "novel",
"search_type": 1,
"search_key": "模因之主",
"search_data": 1,
"is_display": 1,
"search_time": 1595198026,
"week_update_time": 1616148111
},
{
"search_id": 120,
"search_rec": 0,
"search_count": 7,
"week_search_count": 2,
"search_module": "novel",
"search_type": 1,
"search_key": "精灵宇宙",
"search_data": 1,
"is_display": 1,
"search_time": 1593945340,
"week_update_time": 1616148112
},
{
"search_id": 231622,
"search_rec": 0,
"search_count": 2,
"week_search_count": 2,
"search_module": "novel",
"search_type": 1,
"search_key": "精灵宇宙12",
"search_data": 0,
"is_display": 1,
"search_time": 1616143331,
"week_update_time": 1616148112
},
{
"search_id": 1234,
"search_rec": 0,
"search_count": 3,
"week_search_count": 2,
"search_module": "novel",
"search_type": 1,
"search_key": "我就是大佬",
"search_data": 1,
"is_display": 1,
"search_time": 1589594647,
"week_update_time": 1616148112
},
{
"search_id": 231623,
"search_rec": 0,
"search_count": 2,
"week_search_count": 2,
"search_module": "novel",
"search_type": 1,
"search_key": "精灵宇宙12555",
"search_data": 0,
"is_display": 1,
"search_time": 1616143335,
"week_update_time": 1616148111
},
{
"search_id": 231621,
"search_rec": 0,
"search_count": 1,
"week_search_count": 1,
"search_module": "novel",
"search_type": 1,
"search_key": "精灵宇宙1",
"search_data": 0,
"is_display": 1,
"search_time": 1616143328,
"week_update_time": 1616148112
},
{
"search_id": 1223,
"search_rec": 0,
"search_count": 11,
"week_search_count": 1,
"search_module": "novel",
"search_type": 1,
"search_key": "我在唐朝的一次旅行",
"search_data": 1,
"is_display": 1,
"search_time": 1596098111,
"week_update_time": 1616148112
},
{
"search_id": 1215,
"search_rec": 0,
"search_count": 15,
"week_search_count": 1,
"search_module": "novel",
"search_type": 1,
"search_key": "庞太师",
"search_data": 1,
"is_display": 1,
"search_time": 1595325347,
"week_update_time": 1616148112
}
],
"search_key_recommend": [
{
"ad_id": 48,
"ad_type_id": 17,
"ad_pt": 4,
"ad_status": 1,
"ad_type": 11,
"ad_name": "",
"ad_title": "热门小说榜",
"ad_info": "",
"ad_url": "novel_hot_search_boy",
"ad_img": "/activity/personal_center_shop.png",
"ad_img_width": 0,
"ad_img_height": 0,
"ad_price": "0.00",
"ad_js": "",
"ad_time_type": null,
"ad_start_time": 1608480000,
"ad_end_time": 1629302400,
"ad_time": 0,
"sort": 0,
"ad_type_name": "排行榜"
}
],
"search_special": [
{
"ad_id": 10,
"ad_type_id": 15,
"ad_pt": 4,
"ad_status": 1,
"ad_type": 3,
"ad_name": "",
"ad_title": "搜索专题0",
"ad_info": "",
"ad_url": "3",
"ad_img": "/activity/zhengwen@3x.png",
"ad_img_width": 0,
"ad_img_height": 0,
"ad_price": "0.00",
"ad_js": "",
"ad_time_type": null,
"ad_start_time": 1608480000,
"ad_end_time": 1629302400,
"ad_time": 0,
"sort": 0,
"ad_type_name": "专题详情"
},
{
"ad_id": 11,
"ad_type_id": 15,
"ad_pt": 4,
"ad_status": 1,
"ad_type": 3,
"ad_name": "",
"ad_title": "搜索专题1",
"ad_info": "",
"ad_url": "1",
"ad_img": "/activity/zhengwen@3x.png",
"ad_img_width": 0,
"ad_img_height": 0,
"ad_price": "0.00",
"ad_js": "",
"ad_time_type": null,
"ad_start_time": 1608480000,
"ad_end_time": 1629302400,
"ad_time": 0,
"sort": 0,
"ad_type_name": "专题详情"
},
{
"ad_id": 12,
"ad_type_id": 15,
"ad_pt": 4,
"ad_status": 1,
"ad_type": 3,
"ad_name": "",
"ad_title": "搜索专题2",
"ad_info": "",
"ad_url": "2",
"ad_img": "/activity/zhengwen@3x.png",
"ad_img_width": 0,
"ad_img_height": 0,
"ad_price": "0.00",
"ad_js": "",
"ad_time_type": null,
"ad_start_time": 1608480000,
"ad_end_time": 1629302400,
"ad_time": 0,
"sort": 0,
"ad_type_name": "专题详情"
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<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;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>