Post 发布帖子
POST
/thread/post请求参数
Cookie 参数
qf_token
string
用户凭证
示例值:
430b1667-b1e2-416a-aee4-20a077998672
Body 参数multipart/form-data
title
帖子标题
示例值:
Hello World!
content
必需
帖子内容(Markdown 格式)
示例值:
I'm glad to see you all.
boardId
BID
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
200
msg
string
success
data
object
数据
id
integer
TID
title
string
帖子标题
publisher
object
帖子作者
postTime
string
发布时间
content
string
帖子内容
board
object
所属板块
likeList
string
点赞 UID 列表
示例
{
"code": 0,
"msg": "string",
"data": {
"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"
}
}
最后修改时间: 3 年前