- 页面
- 用户
- 角色和权限
- 上传文件和图片
- 支付
- 搜索
- 帮助中心
- 模板
- 后台接口
根据用户id获取所有图片
GET
/api/getImagesByUserId
请求参数
Query 参数
userId
string
必需
示例值:
18
示例代码
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/getImagesByUserId?userId=18'
返回响应
🟢200成功样例
application/json
Body
success
boolean
必需
errCode
null
必需
errMessage
null
必需
data
array [object {17}]
必需
id
string
必需
url
string
必需
size
integer
必需
filename
string
必需
originalFilename
string
必需
basePath
string
必需
path
string
必需
ext
string
必需
contentType
string
必需
platform
string
必需
thUrl
string
必需
thFilename
string
必需
thSize
integer
必需
thContentType
string
必需
objectId
string
必需
objectType
string
必需
createTime
string
必需
示例
{
"success": true,
"errCode": null,
"errMessage": null,
"data": [
{
"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": "18",
"url": "http://121.36.109.90:8000/api/image/root/63c21dbfe4b0505557ac36c7.jpg",
"size": 77133,
"filename": "63c21dbfe4b0505557ac36c7.jpg",
"originalFilename": "01.jpg",
"basePath": "/docker/app/odin-file-system/image/",
"path": "root/",
"ext": "jpg",
"contentType": "image/jpeg",
"platform": "local-image",
"thUrl": "http://121.36.109.90:8000/api/image/root/63c21dbfe4b0505557ac36c7.jpg.min.jpg",
"thFilename": "63c21dbfe4b0505557ac36c7.jpg.min.jpg",
"thSize": 5191,
"thContentType": "image/jpeg",
"objectId": "18",
"objectType": "image",
"createTime": "2023-01-14T03:13:03.000+00:00"
},
{
"id": "20",
"url": "http://121.36.109.90:8000/api/image/root/63c40488e4b05055a4af35c4.jpg",
"size": 77133,
"filename": "63c40488e4b05055a4af35c4.jpg",
"originalFilename": "01.jpg",
"basePath": "/docker/app/odin-file-system/image/",
"path": "root/",
"ext": "jpg",
"contentType": "image/jpeg",
"platform": "local-image",
"thUrl": "http://121.36.109.90:8000/api/image/root/63c40488e4b05055a4af35c4.jpg.min.jpg",
"thFilename": "63c40488e4b05055a4af35c4.jpg.min.jpg",
"thSize": 5191,
"thContentType": "image/jpeg",
"objectId": "18",
"objectType": "image",
"createTime": "2023-01-15T13:50:00.000+00:00"
},
{
"id": "40",
"url": "http://121.36.109.90:8000/api/image/root/63df86e9e4b060526c7bd427.png",
"size": 68153,
"filename": "63df86e9e4b060526c7bd427.png",
"originalFilename": "image-20230205153832529.png",
"basePath": "/docker/app/odin-file-system/image/",
"path": "root/",
"ext": "png",
"contentType": "image/png",
"platform": "local-image",
"thUrl": "http://121.36.109.90:8000/api/image/root/63df86e9e4b060526c7bd427.png.min.jpg",
"thFilename": "63df86e9e4b060526c7bd427.png.min.jpg",
"thSize": 2676,
"thContentType": "image/jpeg",
"objectId": "18",
"objectType": "image",
"createTime": "2023-02-05T10:37:30.000+00:00"
}
]
}
修改于 2023-03-06 11:55:14