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

帖子列表 ​


接口URL ​

http://demonuxtapi.dishait.cn/pc/post/list?page=1&bbs_id=1&is_top=0

请求方式 ​

GET

Content-Type ​

application/x-www-form-urlencoded

请求Header参数 ​

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

请求Query参数 ​

参数名示例值参数类型是否必填参数描述
page1Integer是页码
bbs_id1Integer是社区ID
is_top0Integer是是否置顶,0否1是

成功响应示例 ​

json5
{
	"msg": "ok",
	"data": {
		"count": 2,
		"rows": [
			{
				"id": 3,
				"bbs_id": 1,
				"desc": {
					"images": [
						"http://...png",
						// ...
					],
					"text": "第一个帖子"
				},
				"user_id": 3,
				"comment_count": 0,
				"support_count": 0,
				"is_top": 1,
				"created_time": "2021-03-02 00:00:00",
				"user": {
					"id": 3,
					"avatar": "",
					"sex": "未知",
					"name": "ceshi2"
				},
				"issupport": false
			},
			// ...
		]
	},
	"code": 20000
}