获取动态列表
开发中
GET
/api/web/trends/list
动态(前台)
请求参数
Query 参数
page
integer
页数
pageSize
integer
每页数量
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:3000/api/web/trends/list?page&pageSize'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应信息
data
array [object {10}]
响应数据
_id
string
动态ID
content
string
动态内容
createTime
string
创建时间
updateTime
string
更新时间
userID
string
用户ID
userInfo
object (user)
用户信息
imgList
array[string]
图片url列表
likeNum
integer
点赞数
commentNum
integer
评论数
lookNum
integer
浏览数
total
integer
数据总数
示例
{
"code": 45,
"message": "consequat",
"data": [
{
"_id": "9",
"content": "ut",
"createTime": "1972-09-17 11:36:43",
"updateTime": "2013-06-17 19:54:03",
"userID": "7",
"userInfo": {
"_id": "59",
"username": "于霞",
"gender": 1,
"password": "dolor labore",
"phone": "18140501413",
"email": "p.rquep@qq.com",
"introduction": "mollit Ut in fugiat est",
"avatar": "http://dummyimage.com/100x100",
"github": "nisi qui dolor dolore pariatur",
"gitee": "et enim laboris id pariatur",
"csdn": "fugiat in eu aliquip cillum",
"nickname": "董秀英",
"aboutInfo": {}
},
"imgList": [
"http://dummyimage.com/400x400"
],
"likeNum": 42,
"commentNum": 16,
"lookNum": 78
},
{
"_id": "94",
"content": "consequat nulla magna et Duis",
"createTime": "2022-12-03 01:49:52",
"updateTime": "1995-09-24 19:24:13",
"userID": "80",
"userInfo": {
"_id": "68",
"username": "汪娜",
"gender": 1,
"password": "sint laborum",
"phone": "18133225991",
"email": "t.fbjwp@qq.com",
"introduction": "officia",
"avatar": "http://dummyimage.com/100x100",
"github": "qui Ut proident sint",
"gitee": "dolore eu",
"csdn": "nostrud in est",
"nickname": "康娟",
"aboutInfo": {}
},
"imgList": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"likeNum": 8,
"commentNum": 52,
"lookNum": 28
}
],
"total": 34
}
修改于 2024-08-03 06:38:14