Skip to content

社群帖子评论列表

1 接口名称

社群帖子评论列表

2 接口描述

3 请求地址

plain
{apiAddress}/openapi/v2/forum/comment/list?threadId=1811&connectNo=e000b5743a866438&current=1&size=2&endDate=2023-05-01&signature=fd60783975b8e23e48a0e6278baf25c0&appkey=cblzs&forumId=36&startDate=2020-01-01&noncestr=1681800196928&status=5&timestamp=1681800196928

4 请求方式

GET

5 请求参数

5.1 Query Params 参数

字段类型参数含义是否必须
connectNoString租户唯一标识
forumIdLong板块id
threadIdLong帖子id
statusInteger状态( 0:全部,3:审核未通过 4:待审核 5:已发布)
startDateString开始日期(格式:yyyy-MM-dd)
endDateString结束日期(格式:yyyy-MM-dd)
currentInteger当前页码。默认:1
sizeInteger每页数量。默认:20

6 返回参数

6.1参数描述

字段类型说明
codeint返回编码 0 成功
dataobject结构体
recordsarray评论列表
idlong评论id
thread_idlong帖子id
contentstring评论内容
like_countint评论点赞数
account_idstring用户id
account_namestring用户昵称
account_portraitstring用户头像
account_mobilestring用户手机号码
forum_idlong板块id
reply_account_idstring回复的帖子或评论用户id
reply_account_namestring回复的帖子或评论用户昵称
reply_comment_contentstring回复的帖子或评论内容
reply_comment_idlong回复的评论id
statusint帖子状态
created_atlong创建时间
updated_atlong更新时间
ipstring发帖ip
regionstring归属地

6.2参数示例

json
{
  "code": 0,
  "data": {
    "data": {
      "records": [
        {
          "id": 1955,
          "forum_id": 36,
          "thread_id": 1811,
          "content": "帖子评论的评论,测试看看",
          "like_count": 0,
          "account_id": "5c6a4d6767da3d5aef1b7533",
          "account_name": "读友_WFT9M5",
          "account_portrait": "https://preimg.tmuyun.com/assets/20200402/1585793937232_5e854b9183c7667b5dcef238.jpeg",
          "account_mobile": "18901234567",
          "reply_account_id": "619f48ba63044039defa27ba",
          "reply_account_name": "之前名字不规范",
          "reply_comment_content": "帖子评论,测试看看",
          "reply_comment_id": 1954,
          "status": 5,
          "created_at": 1662534844000,
          "updated_at": 1663845934000,
          "ip": "115.233.209.97",
          "region": "浙江"
        }
      ],
      "total": 2,
      "size": 2,
      "current": 1,
      "orders": [],
      "optimize_count_sql": true,
      "search_count": true,
      "pages": 1
    }
  }
}

7 备注

成功返回code是0,非0时均为失败。