Appearance
社群帖子评论列表
1 接口名称
社群帖子评论列表
2 接口描述
- 无
3 请求地址
plain
{apiAddress}/openapi/v2/forum/comment/list?threadId=1811&connectNo=e000b5743a866438¤t=1&size=2&endDate=2023-05-01&signature=fd60783975b8e23e48a0e6278baf25c0&appkey=cblzs&forumId=36&startDate=2020-01-01&noncestr=1681800196928&status=5×tamp=1681800196928
4 请求方式
GET
5 请求参数
5.1 Query Params 参数
字段 | 类型 | 参数含义 | 是否必须 |
---|---|---|---|
connectNo | String | 租户唯一标识 | 是 |
forumId | Long | 板块id | 否 |
threadId | Long | 帖子id | 否 |
status | Integer | 状态( 0:全部,3:审核未通过 4:待审核 5:已发布) | 否 |
startDate | String | 开始日期(格式:yyyy-MM-dd) | 否 |
endDate | String | 结束日期(格式:yyyy-MM-dd) | 否 |
current | Integer | 当前页码。默认:1 | 否 |
size | Integer | 每页数量。默认:20 | 否 |
6 返回参数
6.1参数描述
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回编码 0 成功 |
data | object | 结构体 |
records | array | 评论列表 |
id | long | 评论id |
thread_id | long | 帖子id |
content | string | 评论内容 |
like_count | int | 评论点赞数 |
account_id | string | 用户id |
account_name | string | 用户昵称 |
account_portrait | string | 用户头像 |
account_mobile | string | 用户手机号码 |
forum_id | long | 板块id |
reply_account_id | string | 回复的帖子或评论用户id |
reply_account_name | string | 回复的帖子或评论用户昵称 |
reply_comment_content | string | 回复的帖子或评论内容 |
reply_comment_id | long | 回复的评论id |
status | int | 帖子状态 |
created_at | long | 创建时间 |
updated_at | long | 更新时间 |
ip | string | 发帖ip |
region | string | 归属地 |
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时均为失败。