文档
测试

加载帖子列表

GET
/api/topic/post/list

接口描述

加载帖子列表

请求参数

参数名
类型
描述
必填
topicId
long
圈子id
必填
keyword
string
关键字搜索
必填

响应参数

参数名
类型
描述
必填
total
int
示例:1
必填
rows
array
数据列表
必填
postId
int
帖子id
必填
topicId
int
圈子id
必填
userId
object
帖子用户id
必填
postCont
string
帖子内容
必填
postImg
object
示例:null
必填
likeNum
int
点赞数
必填
commentNum
int
评论数
必填
postImgs
array
图片列表
必填
isLike
int
用户是否点赞过 1是0不是
必填
createTime
string
示例:2021-07-21T23:27:19.000+0800
必填
nickName
string
发布者名称
必填
icon
string
头像
必填
title
string
帖子标题
必填
isFollow
int
是否已关注 1是0不是
必填
postType
帖子类型
1视频2图片3纯文字
必填
postVideo
object
视频信息
必填
width
int
必填
height
int
必填
duration
int
视频时长,单位 (秒)
必填
url
string
视频地址
必填
postVideoImg
object
第一帧
必填
width
int
必填
height
int
必填
url
int
必填
code
int
示例:200
必填
msg
string
示例:查询成功
必填

说明 / 示例

{ "total": 4, "rows": [ { "postId": 26, "topicId": 3, "userId": 10, "postCont": "不得不说Hello语音真的大气,在这次活动中,每天登陆签到就能获得号角开箱子,而且连续签到越多,获得的号角就越多。通过号角咱们可以兑换宝箱,白银宝箱可以开到王者房间背景3天、Hello金币*666;黄金宝箱可以开到Hello贝*500、UFO2天;钻石宝箱可以开到UFO2天、星空魅影妲己机器人套装(价值499元)、Hello钻石*288。每次开箱子都是获得箱子里的一个道具,比较考验人品,觉得自己是天选之子的小伙伴们可以试试。", "postImg": null, "likeNum": 0, "commentNum": 0, "postImgs": [], "postType": 1, "postVideo": { "width": 640, "height": 320, "duration": 32, "url": "http://img.miniflutter.com/b4b52fc71c54e5d29220b542fbe75c69.mp4" }, "isLike": 0, "icon": "https://img.alhuyou.com/game/2021/09/15/3c0188e4-6167-468b-abf9-72388259efa5.jfif", "nickName": "换手机的", "createTime": "2021-09-16 11:42:42", "title": "限量妲己套装免费抽" }, { "postId": 25, "topicId": 3, "userId": 5, "postCont": "作为一名资深的王者荣耀玩家,每天打打排位的日常让我渐渐觉得枯燥,一直都在星耀和王者段位之间徘徊,就想找个机会和那些实力高我一个档次的玩家进行较量一番,好让自己得到突破。而最近我就发现了这么一个机会,由Hello语音和王者荣耀联合开展的挑战周赛目前正在火热报名,所有玩家皆可参与。\n", "postImg": null, "likeNum": 1, "commentNum": 0, "postType": 2, "postImgs": [ "https://img.alhuyou.com/game/2021/09/16/55093185-12a3-49ff-94d3-688d87c857a1.png", "https://img.alhuyou.com/game/2021/09/16/30070e0b-19d7-4d32-ac59-587b0891212b.png", "https://img.alhuyou.com/game/2021/09/16/76c6c9f9-b4ba-4248-a1ef-e65084ed769a.png", "https://img.alhuyou.com/game/2021/09/16/ff791c11-eb75-4c1f-a83d-b4b31f514db7.png" ], "isLike": 0, "icon": "https://img.alhuyou.com/game/2021/09/14/449572b7-608e-439e-8cf3-849b9489ea87.png", "nickName": "哈利波特魔法觉醒", "createTime": "2021-09-16 11:41:51", "title": "王者荣耀民间赛报名开启?是时候展现真正的技术了![" }, { "postId": 24, "topicId": 3, "userId": 9, "postCont": "防沉迷的设置真的很令人反感,本来休息了想打一天游戏的,结果打了几个小时之后,他就一直要防沉迷防沉迷,打一盘游戏,休息一下,打一盘游戏休息一下,都这么大了,还需要你管着我的健康,建议取消防沉迷,打几个小时是自己选择自由,要你管着玩家?", "postImg": null, "likeNum": 1, "commentNum": 0, "postImgs": null, "postType": 3, "isLike": 0, "icon": "https://img.alhuyou.com/game/2021/09/15/220ac873-ff78-4bd0-bcbe-bd8bc3959364.jfif", "nickName": "消息源", "createTime": "2021-09-16 11:40:30", "title": "该死的防沉迷,都几岁了还需要你担心我的健康?" }, { "postId": 22, "topicId": 3, "userId": 4, "postCont": "关于游戏是否会耽误孩子和国家的未来,一度引起了人们的争议。作为一家主营游戏业务的互联网公司,腾讯被有关部门约谈,那么是否有必要停止“王者荣耀”等游戏呢?对于大部分家长而言,游戏就像一颗“毒瘤”存在孩子们身边,它不仅会耽误国家的未来发展,而且会影响孩子们的学习和生活。", "postImg": null, "likeNum": 1, "commentNum": 0, "postType": 2, "postImgs": [ "https://img.alhuyou.com/game/2021/09/16/e54d3639-7960-46d4-b09a-661ae6580579.jpg" ], "isLike": 0, "icon": "https://img.alhuyou.com/game/2021/09/14/97db4f55-9b0c-4267-a848-bfcb82a93737.jpeg", "nickName": "老baby", "createTime": "2021-09-16 11:38:35", "title": "有关部门约谈腾讯,“王者荣耀”等游戏应该关停?" } ], "code": 200, "msg": "查询成功" }