问题搜索
<h2><strong><center></center></strong></h2>
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>问答全文检索
<h5>请求url</h5></li>
<li><code>http://localhost:9000/qa/questions/query</code>
<h5>请求方式</h5></li>
<li>GET
<h5>参数</h5></li>
</ul>
<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;">phone</td>
<td style="text-align: left;">string</td>
<td>标题</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">string</td>
<td>内容</td>
</tr>
<tr>
<td style="text-align: left;">type</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",
"parentId": 43,
"parentName": "",
"info": "成都,四川省辖地级市 [1]...",
"coverUrl": "https://p1-q.mafengwo.net/s13/M00/02/F6/wKgEaVx2WNSATa4-AADhkqCkWA468.jpeg",
"children": []},
"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 13:32:19",
"updateTime": "2023-01-11 22:25:04",
"goodCommentId": "1",
"comment": null
}
.......
],
"total": 5,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
}
}</code></pre>
<h5>错误返回</h5>
<pre><code> {
"msg": "success",
"code": 200
]
}</code></pre>