问题搜索
<center></center>
[TOC]
简要描述
- 问答全文检索
请求url
http://localhost:9000/qa/questions/query
请求方式
- GET
参数
参数名 | 类型 | 说明 |
---|---|---|
phone | string | 标题 |
type | string | 内容 |
type | string | 目的地 |
返回示例
{
"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
}
}
错误返回
{
"msg": "success",
"code": 200
]
}