获取问题列表
GET
/api/help/questionList/hot请求参数
无
示例代码
返回响应
获取最热列表(200)
获取新列表(200)
获取分类问题(200)
获取我的问题列表(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
errCode
null
必需
errMessage
null
必需
data
array [object {8}]
必需
questionId
integer
必需
userInfo
object
必需
title
string
必需
category
string
必需
tag
string
必需
replayList
array [object {4}]
必需
viewCounts
integer
必需
createTime
string
必需
示例获取最热列表
{
"success": true,
"errCode": null,
"errMessage": null,
"data": [
{
"questionId": 1,
"userInfo": {
"userId": 1,
"userName": "test",
"avatarUrl": "https://images.pexels.com/photos/7034219/pexels-photo-7034219.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
},
"title": "title",
"category": "待解决",
"tag": "tag",
"replayList": [
{
"replayId": 1,
"userInfo": {
"userId": 1,
"userName": "test",
"avatarUrl": "https://images.pexels.com/photos/7034219/pexels-photo-7034219.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
},
"contentBody": {
"content": "问题回答",
"contentHtml": "<h2>问题回答<h2>"
},
"likeNum": 0
}
],
"viewCounts": 0,
"createTime": "2023-2-5 11:42"
},
{
"questionId": 2,
"userInfo": {
"userId": 1,
"userName": "test",
"avatarUrl": "https://images.pexels.com/photos/7034219/pexels-photo-7034219.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
},
"title": "已解决",
"category": "待解决",
"tag": "tag",
"replayList": [],
"viewCounts": 1,
"createTime": "2023-2-5 11:42"
}
]
}
最后修改时间: 2 年前