问答检索-普通
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>问答检索-普通</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:9000/question/questions/query</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;">keyword</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>关键字</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"msg": "success",
"code": 200,
"data": {
"records": [
{
"id": 1,
"title": "求一个小众 便宜 不网红 安全的小城旅游 求推荐!",
"content": "三至四天时间为宜,建议市区结合近郊,避开商业化的话,宽窄巷子和锦里可以选择放弃,当然顺便去吃个饭看一看也未尝不可。推荐大熊猫基地、都江堰、杜甫草堂、武侯祠。",
"viewnum": 100,
"thumbsupnum": 10,
"starnum": 10,
"replynum": 1,
"state": 1,
"destId": 450,
"destination": {
"id": 450,
"name": "成都",
"english": "Chengdu"
},
"userId": 14,
"userInfo": {
"id": 14,
"nickname": "lishuang",
"phone": "18398754563",
"email": "zhy@wolfcode.cn",
"gender": 1,
"level": 11,
"city": "成都",
"headImgUrl": "http://localhost/images/default//wKgIC1xOo6iAS0mlABAmBVFn6AA539.gif",
"info": "成都最靓的妞",
"state": 0
},
"qualityScore": 144,
"createTime": "2023-01-18 23:32:19",
"updateTime": "2023-01-11 22:25:04",
"goodCommentId": "1",
"comment": null
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
}
}</code></pre>