根据用户id获取所有图片
GET
/api/getImagesByUserId请求参数
Query 参数
userId
string
必需
示例值:
18
示例代码
返回响应
成功样例(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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"
}
]
}
最后修改时间: 2 年前