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

帖子列表


接口URL

http://demonuxtapi.dishait.cn/admin/s/post?page=1&bbs_id=1

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token
schoolid11Integer网校id

请求Query参数

参数名示例值参数类型是否必填参数描述
page1Integer页码
bbs_id1Integer社区id

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"total": 2,
		"items": [
			{
				"id": 3,
				"bbs_id": 1,
				"content": [
					{
						"images": [
							"http://...png",
							// ...
						],
						"text": "第一个帖子"
					}
				],
				"user_id": 3,
				"comment_count": 0,
				"support_count": 0,
				"is_top": 0,
				"created_time": "2021-03-01T16:00:00.000Z",
				"updated_time": "2021-03-12T18:12:10.000Z",
				"userId": 3,
				"user": {
					"id": 3,
					"username": "ceshi2",
					"avatar": "",
					"nickname": ""
				}
			},
			// ...
		]
	},
	"code": 20000
}