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

帖子评论列表


接口URL

http://demonuxtapi.dishait.cn/admin/s/post_comment?page=1&post_id=1

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Query参数

参数名示例值参数类型是否必填参数描述
page1Integer页码
post_id1Integer帖子id

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"total": 2,
		"items": [
			{
				"id": 2,
				"school_id": 11,
				"post_id": 1,
				"content": "第一条评论",
				"user_id": 3,
				"reply_id": 1,
				"reply_user": {
					"avatar": "http://...png",
					"nickname": "帝莎编程",
					"username": "帝莎编程"
				},
				"is_top": 0,
				"created_time": "2021-03-01T16:00:00.000Z",
				"updated_time": "2021-03-01T16:00:00.000Z",
				"userId": 3,
				"user": {
					"id": 3,
					"username": "ceshi2",
					"avatar": "",
					"nickname": ""
				}
			},
			// ...
		]
	},
	"code": 20000
}