收到的评论

优质
小牛编辑
119浏览
2023-12-01
GET /user/comments

参数

名称类型描述
limit整数获取的条数,默认 20
after整数传递上次获取的最后一条 id
响应
Status: 200 OK
[
  {
    "id": 3,
    "user_id": 1,
    "target_user": 1,
    "reply_user": 0,
    "body": "我是第三条评论",
    "commentable_id": 1,
    "commentable_type": "feeds",
    "created_at": "2017-07-20 08:53:24",
    "updated_at": "2017-07-20 08:53:24",
    "commentable": {
      "id": 1,
      "user_id": 1,
      "feed_content": "动态内容",
      "feed_from": 1,
      "like_count": 1,
      "feed_view_count": 0,
      "feed_comment_count": 6,
      "feed_latitude": null,
      "feed_longtitude": null,
      "feed_geohash": null,
      "audit_status": 1,
      "feed_mark": 1,
      "pinned": 0,
      "created_at": "2017-06-27 07:04:32",
      "updated_at": "2017-07-20 08:53:24",
      "deleted_at": null,
      "pinned_amount": 0,
      "images": [],
      "paid_node": null
    }
  }
]
字段描述
id评论 ID。
user_id发布评论的人。
target_user接收评论的目标用户。
reply_user评论回复的人,没有回复人时该值为0
body评论内容
commentable_id评论来源资源 ID,根据 commentable_type 判断是来自何处。
commentable_type评论所属资源类型。
created_at评论创建时间。
updated_at评论更新时间。
commentable评论来源资料,如果来源被删除,则为 null