获取问题详情
GET
/api/help/questionDetail请求参数
Query 参数
questionId
string
必需
示例值:
35409572529176576
Header 参数
Authorization
string
必需
示例值:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6W10sInJvbGVzIjpbXSwiZXhwIjoxNjczODcyMzg0LCJ1c2VybmFtZSI6InJvb3QifQ.VvAGS0-_MjSqfTcAjuNcxIWsFohE8rle8yi82q6EohM
示例代码
返回响应
获取文章详情(浏览量+1)(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
errCode
null
必需
errMessage
null
必需
data
object
必需
questionId
integer
必需
userInfo
object
必需
title
string
必需
contentBody
object
必需
category
string
必需
tag
string
必需
replayList
array [object {4}]
必需
viewCounts
integer
必需
createTime
string
必需
示例获取文章详情(浏览量+1)
{
"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",
"contentBody": {
"content": "我的第一个问题",
"contentHtml": "<h2>我的第一个问题<h2>"
},
"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"
}
}
最后修改时间: 2 years ago