- 页面
- 用户
- 角色和权限
- 上传文件和图片
- 支付
- 搜索
- 帮助中心
- 模板
- 后台接口
分页查询所有文件和图片信息(Root权限)
GET
/api/getAllFileInfo
请求参数
Query 参数
currentPage
string
必需
示例值:
2
pageSize
string
必需
示例值:
10
Header 参数
Authorization
string
必需
示例值:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6W10sInJvbGVzIjpbXSwiZXhwIjoxNjczODcyMzg0LCJ1c2VybmFtZSI6InJvb3QifQ.VvAGS0-_MjSqfTcAjuNcxIWsFohE8rle8yi82q6EohM
示例代码
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://47.92.1.39:8005/api/getAllFileInfo?currentPage=2&pageSize=10' \
--header 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6W10sInJvbGVzIjpbXSwiZXhwIjoxNjczODcyMzg0LCJ1c2VybmFtZSI6InJvb3QifQ.VvAGS0-_MjSqfTcAjuNcxIWsFohE8rle8yi82q6EohM'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
errCode
null
必需
errMessage
null
必需
data
object
必需
fileInfoCos
array [object {17}]
必需
currentPage
integer
必需
pageSize
integer
必需
total
integer
必需
示例
{
"success": true,
"errCode": null,
"errMessage": null,
"data": {
"fileInfoCos": [
{
"id": "1",
"url": "http://127.0.0.1:8081/test/file/root/63c020a42e1960d49a4b2dd7.md",
"size": 1332,
"filename": "63c020a42e1960d49a4b2dd7.md",
"originalFilename": "角色管理.md",
"basePath": "D:/TmpFile/file/",
"path": "root/",
"ext": "md",
"contentType": "text/markdown",
"platform": "local-file",
"thUrl": null,
"thFilename": null,
"thSize": null,
"thContentType": null,
"objectId": "18",
"objectType": "file",
"createTime": "2023-01-12T15:00:52.000+00:00"
},
{
"id": "2",
"url": "http://127.0.0.1:8081/image/root/63c022372e19e41ca5a2749e.jpeg",
"size": 50187,
"filename": "63c022372e19e41ca5a2749e.jpeg",
"originalFilename": "ceshi.jpeg",
"basePath": "D:/TmpFile/image/",
"path": "root/",
"ext": "jpeg",
"contentType": "image/jpeg",
"platform": "local-image",
"thUrl": "http://127.0.0.1:8081/image/root/63c022372e19e41ca5a2749e.jpeg.min.jpg",
"thFilename": "63c022372e19e41ca5a2749e.jpeg.min.jpg",
"thSize": 4983,
"thContentType": "image/jpeg",
"objectId": "18",
"objectType": "image",
"createTime": "2023-01-12T15:07:35.000+00:00"
},
{
"id": "3",
"url": "http://127.0.0.1:8081/image/test/63c02e602e192ee0fa1eadde.jpeg",
"size": 50187,
"filename": "63c02e602e192ee0fa1eadde.jpeg",
"originalFilename": "ceshi.jpeg",
"basePath": "D:/TmpFile/image/",
"path": "test/",
"ext": "jpeg",
"contentType": "image/jpeg",
"platform": "local-image",
"thUrl": "http://127.0.0.1:8081/image/test/63c02e602e192ee0fa1eadde.jpeg.min.jpg",
"thFilename": "63c02e602e192ee0fa1eadde.jpeg.min.jpg",
"thSize": 4983,
"thContentType": "image/jpeg",
"objectId": "16",
"objectType": "image",
"createTime": "2023-01-12T15:59:28.000+00:00"
},
{
"id": "4",
"url": "http://127.0.0.1:8081/image/test/63c02e732e192ee0fa1eaddf.jpeg",
"size": 50187,
"filename": "63c02e732e192ee0fa1eaddf.jpeg",
"originalFilename": "ceshi.jpeg",
"basePath": "D:/TmpFile/image/",
"path": "test/",
"ext": "jpeg",
"contentType": "image/jpeg",
"platform": "local-image",
"thUrl": "http://127.0.0.1:8081/image/test/63c02e732e192ee0fa1eaddf.jpeg.min.jpg",
"thFilename": "63c02e732e192ee0fa1eaddf.jpeg.min.jpg",
"thSize": 4983,
"thContentType": "image/jpeg",
"objectId": "16",
"objectType": "image",
"createTime": "2023-01-12T15:59:47.000+00:00"
},
{
"id": "12",
"url": "http://121.36.109.90:8001/image/test/63c16c24e4b0df386a11afd3.png",
"size": 261057,
"filename": "63c16c24e4b0df386a11afd3.png",
"originalFilename": "banner.png",
"basePath": "/docker/app/odin-file-system/image/",
"path": "test/",
"ext": "png",
"contentType": "image/png",
"platform": "local-image",
"thUrl": "http://121.36.109.90:8001/image/test/63c16c24e4b0df386a11afd3.png.min.jpg",
"thFilename": "63c16c24e4b0df386a11afd3.png.min.jpg",
"thSize": 2817,
"thContentType": "image/jpeg",
"objectId": "16",
"objectType": "image",
"createTime": "2023-01-13T14:35:17.000+00:00"
}
],
"currentPage": 1,
"pageSize": 5,
"total": 10
}
}
🟢200失败
修改于 2023-03-06 11:55:14