Skip to content
关注公众号,获取新课通知

发布帖子 ​


接口URL ​

http://demonuxtapi.dishait.cn/pc/post/save

请求方式 ​

POST

Content-Type ​

json

请求Header参数 ​

参数名示例值参数类型是否必填参数描述
appidbd9d01ecc75dbbaaefceString是网校唯一appid
tokeneyj...NjString是认证令牌

请求Body参数 ​

json5
{
	"bbs_id": 4,
	"content": [{
        "text":"第一个帖子",
        "images":[
			"http://...png", 
			// ...
		]
	}
	// ...
	]
}
参数名示例值参数类型是否必填参数描述
bbs_id4Integer是社区ID
content-Array是评论内容
content.text第一个帖子String是帖子内容
content.imageshttp://...pngArray是图片链接

成功响应示例 ​

json5
{
	"msg": "ok",
	"data": {
		"comment_count": 0,
		"support_count": 0,
		"is_top": 0,
		"id": 4,
		"school_id": 11,
		"bbs_id": 4,
		"content": "[{\"text\":\"第一个帖子\",\"images\":[\"http:/...png\"]}]}]",
		"user_id": 252,
		"desc": "{\"text\":\"第一个帖子\",\"images\":[\"http://...png\"]}",
		"updated_time": "2021-05-29T09:24:54.074Z",
		"created_time": "2021-05-29T09:24:54.074Z",
		"userId": 252
	},
	"code": 20000
}