发表话题评论回复
POST
/app/news/api/v1/topic/comment
请求参数
Body 参数application/json
type
string
必需
replyType
string
必需
topicId
integer
话题ID
commentId
integer
评论ID
replyCommentId
integer
回复ID
replyContent
string
回复内容
toUserId
integer
目标用户ID
示例
{
"type":"1",
"replyType":"1",
"topicId":4,
"commentId":10,
"replyCommentId":11,
"replyContent":"我回复了第一条主评论!",
"toUserId":1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://47.93.16.76:8080/app/news/api/v1/topic/comment' \
--header 'Content-Type: application/json' \
--data-raw '{
"type":"1",
"replyType":"1",
"topicId":4,
"commentId":10,
"replyCommentId":11,
"replyContent":"我回复了第一条主评论!",
"toUserId":1
}'
返回响应
🟢200成功
application/json
Body
msg
string
必需
code
integer
必需
示例
{
"msg": "操作成功",
"code": 200
}
修改于 2023-10-20 01:55:40