查询话题详情
GET
/app/news/api/v1/topic/info
请求参数
Query 参数
topicId
number
话题ID
示例值:
7
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://47.93.16.76:8080/app/news/api/v1/topic/info?topicId=7'
返回响应
🟢200成功
application/json
Body
msg
string
操作结果
code
integer
状态码
data
object
数据
isJoin
boolean
必需
topicEventList
array [object {4}]
话题事件列表
userAnswer
null
必需
joinNums
integer
参与人数
newsTopic
object
话题详情
elseNewsInformationList
array[string]
必需
示例
{
"msg": "操作成功",
"code": 200,
"data": {
"isJoin": false,
"topicEventList": [
{
"createBy": null,
"createTime": "2023-10-21 10:09:09",
"updateBy": null,
"updateTime": null,
"remark": null,
"eventId": 2,
"topicId": 7,
"eventContent": "我是第二次事件"
},
{
"createBy": null,
"createTime": "2023-10-21 10:08:41",
"updateBy": null,
"updateTime": null,
"remark": null,
"eventId": 1,
"topicId": 7,
"eventContent": "我是第一次修改的事件"
}
],
"userAnswer": null,
"joinNums": 0,
"newsTopic": {
"createBy": null,
"createTime": "2023-10-19 14:22:56",
"updateBy": null,
"updateTime": null,
"remark": null,
"topicId": 7,
"channelId": 1,
"title": "我是第三个话题的标题",
"contents": "我是第三个话题的描述",
"attendNums": null,
"relatedNewsId": null,
"tabJson": null,
"topicStatus": "0",
"delFlag": null,
"heat": 1500,
"newsTopicCommentList": [
{
"createBy": null,
"createTime": "2023-10-19 14:13:01",
"updateBy": null,
"updateTime": null,
"remark": null,
"commentId": 11,
"topicId": 7,
"userId": 1,
"commentContent": "我是第二条主评论!!!",
"likeNums": 2,
"delFlag": null,
"children": [],
"commentReplyNums": 0,
"like": true,
"answer": null
},
{
"createBy": null,
"createTime": "2023-10-19 14:12:53",
"updateBy": null,
"updateTime": null,
"remark": null,
"commentId": 10,
"topicId": 7,
"userId": 1,
"commentContent": "我是第一条主评论!!!",
"likeNums": 1,
"delFlag": null,
"children": [
{
"createBy": null,
"createTime": "2023-10-19 14:19:20",
"updateBy": null,
"updateTime": null,
"remark": null,
"replyId": 8,
"topicId": 7,
"commentId": 10,
"replyCommentId": 10,
"replyType": "0",
"fromUserId": 2,
"replyContent": "我回复了第一条主评论!",
"toUserId": 1,
"likeNums": 0,
"delFlag": null,
"like": false,
"answer": null,
"children": [
{
"createBy": null,
"createTime": "2023-10-19 14:19:41",
"updateBy": null,
"updateTime": null,
"remark": null,
"replyId": 9,
"topicId": 7,
"commentId": 10,
"replyCommentId": 8,
"replyType": "1",
"fromUserId": 2,
"replyContent": "我回复了第一条主评论!",
"toUserId": 1,
"likeNums": 0,
"delFlag": null,
"like": false,
"answer": null,
"children": null
}
]
}
],
"commentReplyNums": 2,
"like": true,
"answer": null
}
],
"commentNums": 4
},
"elseNewsInformationList": []
}
}
修改于 2023-10-21 01:21:46