相册列表
GET
/user/albums请求参数
Query 参数
page
integer
页码
示例值:
1
per_page
integer
每页展示数量
q
string | null
筛选关键字
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
message
string
必需
data
object
必需
data
array [object {8}]
必需
links
object
必需
meta
object
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"data": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。",
"is_public": true,
"created_at": "2024-09-24T01:38:03.000000Z",
"photo_count": 6,
"covers": [
"http://127.0.0.1:8000/uploads/20240919/2afba671098674026525895187e29c16.png",
"http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"http://127.0.0.1:8000/uploads/20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg"
],
"tags": []
},
{
"id": 4,
"name": "新建相册",
"intro": "这是一个新建相册",
"is_public": true,
"created_at": "2024-09-24T01:40:56.000000Z",
"photo_count": 1,
"covers": [
"http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG"
],
"tags": []
},
{
"id": 5,
"name": "2222",
"intro": "123123232232\n31231233312332",
"is_public": true,
"created_at": "2024-09-24T01:41:36.000000Z",
"photo_count": 5,
"covers": [
"http://127.0.0.1:8000/uploads/20240919/2afba671098674026525895187e29c16.png",
"http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"http://127.0.0.1:8000/uploads/20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg"
],
"tags": []
},
{
"id": 12,
"name": "",
"intro": "",
"is_public": true,
"created_at": "2024-09-26T07:16:44.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
},
{
"id": 13,
"name": "新建相册",
"intro": "",
"is_public": true,
"created_at": "2024-09-26T07:17:19.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
},
{
"id": 14,
"name": "新建相册",
"intro": "",
"is_public": true,
"created_at": "2024-09-26T08:03:33.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
},
{
"id": 15,
"name": "新建相册",
"intro": "",
"is_public": true,
"created_at": "2024-09-26T08:03:49.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
},
{
"id": 16,
"name": "新建相册",
"intro": "",
"is_public": true,
"created_at": "2024-09-26T08:04:03.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
},
{
"id": 17,
"name": "新建相册",
"intro": "",
"is_public": true,
"created_at": "2024-09-27T00:33:05.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
},
{
"id": 18,
"name": "新建相册",
"intro": "",
"is_public": true,
"created_at": "2024-10-11T02:05:24.000000Z",
"photo_count": 0,
"covers": [],
"tags": []
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/user/albums?page=1",
"last": "http://127.0.0.1:8000/api/v2/user/albums?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/albums?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/user/albums",
"per_page": 15,
"to": 10,
"total": 10
}
},
"time": 1730873044
}
最后修改时间: 1 个月前