Appearance
社群帖子列表
1 接口名称
社群帖子列表
2 接口描述
- 无
3 请求地址
plain
{apiAddress}/openapi/v2/forum/thread/list?connectNo=e000b5743a866438¤t=1&visible=1&size=3&endDate=2023-05-01&signature=8e82a50475b701567a926b9ef1c7cb84&appkey=cblzs&forumId=36&startDate=2020-01-01&noncestr=1681797831343&status=5×tamp=1681797831343
4 请求方式
GET
5 请求参数
5.1 Query Params 参数
字段 | 类型 | 参数含义 | 是否必须 |
---|---|---|---|
connectNo | String | 租户唯一标识 | 是 |
forumId | Long | 板块id | 否 |
status | Integer | 状态( 0:全部,3:审核未通过 4:待审核 5:已发布) | 否 |
visible | Integer | 是否显示(0 隐藏,1 显示) | 否 |
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_title | string | 帖子标题 |
thread_content | string | 帖子内容 |
attachments | string | 帖子题图 |
account_id | string | 用户id |
account_name | string | 用户昵称 |
account_portrait | string | 用户头像 |
account_mobile | string | 用户手机号码 |
forum_id | long | 板块id |
read_count | int | 阅读数 |
like_count | int | 点赞数 |
comment_count | int | 评论数 |
location_name | string | 发帖人位置 |
comment_option | int | 评论选项,0:不允许评论 1:评论先发后审核 2:评论先审后发 |
fixed_rank | long | 固定位排序 |
sort_rank | long | 排序值 |
created_at | long | 创建时间 |
updated_at | long | 更新时间 |
status | int | 帖子状态 |
user_created | int | 是否是真实用户创建,0:为管理端创建,1:为客户端创建 |
cover | string | 媒资视频封面图 |
video_id | int | 视频id |
tenant_id | long | 租户id |
ip | string | 发帖ip |
region | string | 归属地 |
6.2参数示例
json
{
"code": 0,
"data": {
"data": {
"records": [
{
"id": 1811,
"thread_title": "帖子标题",
"thread_content": "这个是帖子内容呀!",
"attachments": "",
"account_id": "619f48ba63044039defa27ba",
"account_name": "之前名字不规范",
"account_portrait": "https://preimg.tmuyun.com/assets/20200402/1585793937232_5e854b9183c7667b5dcef238.jpeg",
"account_mobile": "13123864419",
"forum_id": 36,
"like_count": 0,
"read_count": 0,
"comment_count": 0,
"location_name": "地址",
"comment_option": 1,
"fixed_rank": 0,
"sort_rank": 1662534521528,
"created_at": 1662534522000,
"updated_at": 1662540233000,
"status": 5,
"user_created": 1,
"cover": "",
"video_id": 0,
"tenant_id": 6,
"ip": "115.233.209.97",
"region": "浙江"
}
],
"total": 4,
"size": 3,
"current": 1,
"orders": [],
"optimize_count_sql": true,
"search_count": true,
"pages": 2
}
}
}
7 备注
成功返回code是0,非0时均为失败。