- Forum 论坛
- User 用户
- Thread 帖子
- Board 板块
- App 应用
- Comment 评论
- Admin 管理员
- Tag 标签
- File 文件
Post 发布评论
POST
/comment/post
请求参数
Cookie 参数
qf_token
string
用户凭证
示例值:
671fb1e2-d62e-470d-b2bd-094b60b86e53
Body 参数multipart/form-data
content
内容
示例值:
Great!
threadId
TID
示例值:
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 '/comment/post' \
--header 'Cookie: qf_token=671fb1e2-d62e-470d-b2bd-094b60b86e53' \
--form 'content="Great!"' \
--form 'threadId="1"'
返回响应
🟢200成功
application/json
Body
code
integer
200
msg
string
success
data
object
数据
id
integer
CID
postTime
string
发布时间
up
boolean
是否置顶
publisher
object
作者
content
string
内容
thread
object
所属帖子
示例
{
"code": 0,
"msg": "string",
"data": {
"id": 0,
"postTime": "string",
"up": true,
"publisher": {
"id": 0,
"userName": "string",
"email": "string",
"admin": true,
"official": "string",
"introduction": "string",
"avatarUrl": "string"
},
"content": "string",
"thread": {
"id": 0,
"title": "string",
"publisher": {
"id": 0,
"userName": "string",
"email": "string",
"admin": true,
"official": "string",
"introduction": "string",
"avatarUrl": "string"
},
"postTime": "string",
"content": "string",
"board": {
"id": 0,
"name": "string",
"priorityLevel": 0,
"description": "string"
},
"likeList": "string"
}
}
}