文档
测试

增加主题

POST
/topics/

请求头

参数名
类型
描述
必填
X-CSRFToken
string
防跨域令牌
必填

请求参数

参数名
类型
描述
必填
bid
int
版块编号
必填
title
string
主题标题
必填
content
string
主题内容
必填
anonymous
boolean
是否匿名
必填

请求成功

参数名
类型
描述
必填
code
int
请求成功code=20000
必填
msg
string
成功
必填
topic
object
主题对象
必填
tid
int
主题编号
必填
title
string
主题标题
必填
author
string
发帖人
必填
excellent
boolean
是否精品主题
必填
top
boolean
是否置顶
必填
posttime
datetime
发布时间
必填
lastposttime
datetime
最后回复时间
必填
like
int
点赞数
必填

请求失败

参数名
类型
描述
必填
code
int
code=50000
必填
msg
string
失败信息
必填

说明 / 示例

请求例子: { username: '泡泡茶壶', email: '17041819@bjut.com', password: '1234563' } 回复例子: { code: 20000, msg: '成功' }