分享列表
GET
/user/shares请求参数
Query 参数
page
integer
页码
示例值:
1
per_page
integer
每页展示数量
q
string
筛选关键字
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
message
string
必需
data
object
必需
data
array [object {9}]
必需
links
object
必需
meta
object
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"data": [
{
"id": 13,
"type": "album",
"slug": "a03806cf516a4ec5808121f539906191",
"content": null,
"password": "",
"view_count": 0,
"expired_at": null,
"created_at": "2024-10-11T06:51:58.000000Z",
"like_count": 0
},
{
"id": 14,
"type": "album",
"slug": "29b7b2a1e51f48cb87b947da3d9d3cd5",
"content": "3123",
"password": "2",
"view_count": 0,
"expired_at": null,
"created_at": "2024-10-11T06:52:04.000000Z",
"like_count": 0
},
{
"id": 15,
"type": "photo",
"slug": "8c9d47ea2c8146eab4bf4e6cef12af63",
"content": "22",
"password": "22322",
"view_count": 0,
"expired_at": "2024-10-25T06:52:16.000000Z",
"created_at": "2024-10-11T06:52:17.000000Z",
"like_count": 0
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/user/shares?page=1",
"last": "http://127.0.0.1:8000/api/v2/user/shares?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/user/shares?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/user/shares",
"per_page": 15,
"to": 3,
"total": 3
}
},
"time": 1730873269
}
最后修改时间: 1 个月前