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

获取指定帖子的评论列表

接口URL

https://sqapi2.dishawang.com/api/v1/article/:article_id/comment/:page

请求方式

GET

Content-Type

form-data

路径变量

参数名示例值参数描述
article_id1帖子ID
page1页码

成功响应示例

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "total": 59,
    "per_page": 10,
    "current_page": 1,
    "last_page": 6,
    "data": [
      {
        "id": 550,
        "article_id": 1,
        "user_id": 319,
        "reply_count": 0,
        "content": "恶风微风",
        "comment_id": null,
        "create_time": "2019-12-31 01:33:32",
        "avatar": "https://ceshi2.dishait.cn//uploads/20191230/4d237b65688e293d774a84c16bba1904.jpg",
        "name": "潇潇洒洒"
      },
      {
        "id": 426,
        "article_id": 1,
        "user_id": 275,
        "reply_count": 0,
        "content": "哈哈",
        "comment_id": null,
        "create_time": "2019-11-22 18:55:13",
        "avatar": "https://ceshi2.dishait.cn//uploads/20191122/aa4139b53ddb31a814ed6fdbad3ade52.jpg",
        "name": "蒶調"
      },
      {
        "id": 398,
        "article_id": 1,
        "user_id": 267,
        "reply_count": 0,
        "content": " 你好",
        "comment_id": null,
        "create_time": "2019-11-18 01:18:43",
        "avatar": null,
        "name": "2540505382"
      },
      {
        "id": 385,
        "article_id": 1,
        "user_id": 41,
        "reply_count": 0,
        "content": "好好",
        "comment_id": null,
        "create_time": "2019-11-07 23:00:59",
        "avatar": null,
        "name": "15523831999"
      },
      {
        "id": 368,
        "article_id": 1,
        "user_id": 238,
        "reply_count": 0,
        "content": "滚滚滚更丰富",
        "comment_id": null,
        "create_time": "2019-10-26 20:36:03",
        "avatar": null,
        "name": "15152570975"
      },
      {
        "id": 367,
        "article_id": 1,
        "user_id": 238,
        "reply_count": 0,
        "content": "必备",
        "comment_id": null,
        "create_time": "2019-10-26 20:35:21",
        "avatar": null,
        "name": "15152570975"
      },
      {
        "id": 366,
        "article_id": 1,
        "user_id": 238,
        "reply_count": 0,
        "content": "女人",
        "comment_id": null,
        "create_time": "2019-10-26 20:35:10",
        "avatar": null,
        "name": "15152570975"
      },
      {
        "id": 365,
        "article_id": 1,
        "user_id": 238,
        "reply_count": 0,
        "content": "惠顾",
        "comment_id": null,
        "create_time": "2019-10-26 20:34:59",
        "avatar": null,
        "name": "15152570975"
      },
      {
        "id": 364,
        "article_id": 1,
        "user_id": 238,
        "reply_count": 0,
        "content": "好尴尬",
        "comment_id": null,
        "create_time": "2019-10-26 20:34:44",
        "avatar": null,
        "name": "15152570975"
      },
      {
        "id": 356,
        "article_id": 1,
        "user_id": 238,
        "reply_count": 0,
        "content": "沪南公路",
        "comment_id": null,
        "create_time": "2019-10-26 19:26:19",
        "avatar": null,
        "name": "15152570975"
      }
    ]
  }
}