图片列表
GET
/user/photos
请求参数
Query 参数
page
integer
页码
示例值:
1
per_page
integer
每页展示数量
示例值:
20
q
string
筛选关键字
album_id
integer
相册ID
storage_id
integer
储存ID
order_by
enum<string>
排序方式
枚举值:
latestoldest
Header 参数
Accept
string
可选
默认值:
application/json
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
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://127.0.0.1:8000/api/v2/user/photos?page=1&per_page=20&q=&album_id=&storage_id&order_by' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
data
array [object {21}]
必需
links
object
必需
meta
object
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"data": [
{
"id": 1,
"name": "真正的程序员",
"intro": "",
"filename": "真正的程序员.png",
"pathname": "20240905/2afba671098674026525895187e29c16.png",
"mimetype": "image/png",
"extension": "png",
"md5": "2afba671098674026525895187e29c16",
"sha1": "48bbab6ce0e559ceac4a7578a0bc70c7a81eab0e",
"width": 571,
"height": 512,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-05T01:59:26.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240905/2afba671098674026525895187e29c16.png",
"public_url": "http://127.0.0.1:8000/uploads/20240905/2afba671098674026525895187e29c16.png",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [],
"tags": [
{
"id": 1,
"name": "街头摄影"
},
{
"id": 2,
"name": "城市建筑"
},
{
"id": 1,
"name": "街头摄影"
},
{
"id": 2,
"name": "城市建筑"
},
{
"id": 1,
"name": "街头摄影"
},
{
"id": 2,
"name": "城市建筑"
}
]
},
{
"id": 2,
"name": "7a585313ed855e8d652cbb3154a6056e",
"intro": "",
"filename": "7a585313ed855e8d652cbb3154a6056e.jpeg",
"pathname": "20240918/399fa7ca41917e534c31950ce412b51b.jpeg",
"mimetype": "image/jpeg",
"extension": "jpg",
"md5": "399fa7ca41917e534c31950ce412b51b",
"sha1": "455a2c8e8324924b7d1e56328e8e9d874d875db2",
"width": 1000,
"height": 1000,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-18T09:27:51.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240918/399fa7ca41917e534c31950ce412b51b.jpeg",
"public_url": "http://127.0.0.1:8000/uploads/20240918/399fa7ca41917e534c31950ce412b51b.jpeg",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。"
}
],
"tags": []
},
{
"id": 6,
"name": "a157829fe078dad9bbfd268ff1ec3b01",
"intro": "",
"filename": "a157829fe078dad9bbfd268ff1ec3b01.jpeg",
"pathname": "20240919/f60751b682c4cdf0106d63aaf97ef9ba.jpeg",
"mimetype": "image/jpeg",
"extension": "jpg",
"md5": "f60751b682c4cdf0106d63aaf97ef9ba",
"sha1": "ace9dfef4a7ee1026cc1e0db6907a68dbb428ba8",
"width": 1080,
"height": 1080,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-19T06:44:24.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/f60751b682c4cdf0106d63aaf97ef9ba.jpeg",
"public_url": "http://127.0.0.1:8000/uploads/20240919/f60751b682c4cdf0106d63aaf97ef9ba.jpeg",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。"
},
{
"id": 5,
"name": "2222",
"intro": "123123232232\n31231233312332"
}
],
"tags": []
},
{
"id": 9,
"name": "真正的程序员",
"intro": "",
"filename": "真正的程序员.png",
"pathname": "20240919/2afba671098674026525895187e29c16.png",
"mimetype": "image/png",
"extension": "png",
"md5": "2afba671098674026525895187e29c16",
"sha1": "48bbab6ce0e559ceac4a7578a0bc70c7a81eab0e",
"width": 571,
"height": 512,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-19T06:44:25.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/2afba671098674026525895187e29c16.png",
"public_url": "http://127.0.0.1:8000/uploads/20240919/2afba671098674026525895187e29c16.png",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。"
},
{
"id": 5,
"name": "2222",
"intro": "123123232232\n31231233312332"
}
],
"tags": []
},
{
"id": 10,
"name": "IMG_0439111",
"intro": "223331111",
"filename": "IMG_0439.PNG",
"pathname": "20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"mimetype": "image/png",
"extension": "png",
"md5": "e6bbc1777d6b2458ddeacf76d557b604",
"sha1": "7da845a312de07e332d0f5d84273e3a93f5ad263",
"width": 1170,
"height": 2532,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-19T06:44:25.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"public_url": "http://127.0.0.1:8000/uploads/20240919/e6bbc1777d6b2458ddeacf76d557b604.PNG",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。"
},
{
"id": 4,
"name": "新建相册",
"intro": "这是一个新建相册"
},
{
"id": 5,
"name": "2222",
"intro": "123123232232\n31231233312332"
}
],
"tags": [
{
"id": 3,
"name": "123"
},
{
"id": 4,
"name": "213"
},
{
"id": 5,
"name": "4123"
},
{
"id": 6,
"name": "222"
},
{
"id": 7,
"name": "2222"
},
{
"id": 8,
"name": "423"
},
{
"id": 9,
"name": "412"
},
{
"id": 10,
"name": "4324"
},
{
"id": 11,
"name": "111111"
}
]
},
{
"id": 12,
"name": "ChMkJlbKwdSIBXyaABDQ5_X5vbEAALGegFJFcIAEND_912",
"intro": "",
"filename": "ChMkJlbKwdSIBXyaABDQ5_X5vbEAALGegFJFcIAEND_912.jpg",
"pathname": "20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg",
"mimetype": "image/jpeg",
"extension": "jpg",
"md5": "5c6ad49c962c3731412fd6d72765e6d5",
"sha1": "edb99390c4205d87e9c53a0994065bd62f17a253",
"width": 1920,
"height": 1200,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-19T06:44:25.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg",
"public_url": "http://127.0.0.1:8000/uploads/20240919/5c6ad49c962c3731412fd6d72765e6d5.jpg",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。"
},
{
"id": 5,
"name": "2222",
"intro": "123123232232\n31231233312332"
}
],
"tags": []
},
{
"id": 13,
"name": "IMG_1499",
"intro": "",
"filename": "IMG_1499.PNG",
"pathname": "20240919/6fc44935eb88b1434a73b0e1ed05bde0.PNG",
"mimetype": "image/png",
"extension": "png",
"md5": "6fc44935eb88b1434a73b0e1ed05bde0",
"sha1": "829f7b91cd70aab664b8b6f80bcc065894348a7e",
"width": 1170,
"height": 2532,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-09-19T06:44:25.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20240919/6fc44935eb88b1434a73b0e1ed05bde0.PNG",
"public_url": "http://127.0.0.1:8000/uploads/20240919/6fc44935eb88b1434a73b0e1ed05bde0.PNG",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [
{
"id": 3,
"name": "具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合具义情族合",
"intro": "手思水装建事先工院下具同。"
},
{
"id": 5,
"name": "2222",
"intro": "123123232232\n31231233312332"
}
],
"tags": []
},
{
"id": 14,
"name": "7a585313ed855e8d652cbb3154a6056e",
"intro": "",
"filename": "7a585313ed855e8d652cbb3154a6056e.jpeg",
"pathname": "20241016/399fa7ca41917e534c31950ce412b51b.jpeg",
"mimetype": "image/jpeg",
"extension": "jpg",
"md5": "399fa7ca41917e534c31950ce412b51b",
"sha1": "455a2c8e8324924b7d1e56328e8e9d874d875db2",
"width": 1000,
"height": 1000,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-10-16T09:36:18.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20241016/399fa7ca41917e534c31950ce412b51b.jpeg",
"public_url": "http://127.0.0.1:8000/uploads/20241016/399fa7ca41917e534c31950ce412b51b.jpeg",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [],
"tags": []
},
{
"id": 15,
"name": "5de83214350f1daa2806a1df507d6546",
"intro": "",
"filename": "5de83214350f1daa2806a1df507d6546.png",
"pathname": "20241016/5de83214350f1daa2806a1df507d6546.png",
"mimetype": "image/png",
"extension": "png",
"md5": "5de83214350f1daa2806a1df507d6546",
"sha1": "fba51de2b3f00d06ea76c0bd3e6fae611c9ac460",
"width": 351,
"height": 656,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-10-16T09:36:31.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20241016/5de83214350f1daa2806a1df507d6546.png",
"public_url": "http://127.0.0.1:8000/uploads/20241016/5de83214350f1daa2806a1df507d6546.png",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [],
"tags": []
},
{
"id": 16,
"name": "7a585313ed855e8d652cbb3154a6056e",
"intro": "",
"filename": "7a585313ed855e8d652cbb3154a6056e.jpeg",
"pathname": "20241017/399fa7ca41917e534c31950ce412b51b.jpeg",
"mimetype": "image/jpeg",
"extension": "jpg",
"md5": "399fa7ca41917e534c31950ce412b51b",
"sha1": "455a2c8e8324924b7d1e56328e8e9d874d875db2",
"width": 1000,
"height": 1000,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-10-17T06:21:51.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20241017/399fa7ca41917e534c31950ce412b51b.jpeg",
"public_url": "http://127.0.0.1:8000/uploads/20241017/399fa7ca41917e534c31950ce412b51b.jpeg",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [],
"tags": []
},
{
"id": 17,
"name": "5de83214350f1daa2806a1df507d6546",
"intro": "",
"filename": "5de83214350f1daa2806a1df507d6546.png",
"pathname": "20241017/5de83214350f1daa2806a1df507d6546.png",
"mimetype": "image/png",
"extension": "png",
"md5": "5de83214350f1daa2806a1df507d6546",
"sha1": "fba51de2b3f00d06ea76c0bd3e6fae611c9ac460",
"width": 351,
"height": 656,
"is_public": true,
"ip_address": "127.0.0.1",
"expired_at": null,
"created_at": "2024-10-17T07:42:51.000000Z",
"thumbnail_url": "http://127.0.0.1:8000/uploads/20241017/5de83214350f1daa2806a1df507d6546.png",
"public_url": "http://127.0.0.1:8000/uploads/20241017/5de83214350f1daa2806a1df507d6546.png",
"group": {
"id": 1,
"name": "系统默认组",
"intro": "这是系统默认角色组"
},
"storage": {
"id": 1,
"name": "本地储存",
"intro": "这是本地储存驱动",
"provider": "local"
},
"albums": [],
"tags": []
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/user/photos?page=1",
"last": "http://127.0.0.1:8000/api/v2/user/photos?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/photos?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/user/photos",
"per_page": 20,
"to": 11,
"total": 11
}
},
"time": 1730872842
}
修改于 2024-11-26 08:47:54