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

查看帖子评论列表


接口URL

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

请求方式

GET

Content-Type

form-data

请求Header参数

参数名示例值参数类型是否必填参数描述
appidbd9d01ecc75dbbaaefceString网校唯一appid

请求Query参数

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

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"count": 1,
		"rows": [
			{
				"id": 1,
				"content": "第一条评论",
				"reply_id": 0,
				"reply_user": null,
				"is_top": 1,
				"created_time": "2021-03-01T16:00:00.000Z",
				"user": {
					"id": 3,
					"name": "ceshi2",
					"avatar": ""
				},
				"post_comments": [
					{
						"id": 2,
						"content": "第一条评论",
						"reply_id": 1,
						"reply_user": {
							"avatar": "http://...png",
							"nickname": "帝莎编程",
							"username": "帝莎编程"
						},
						"is_top": 0,
						"created_time": "2021-03-01T16:00:00.000Z",
						"user": {
							"id": 3,
							"name": "ceshi2",
							"avatar": ""
						}
					},
					// ...
				]
			}
		]
	},
	"code": 20000
}