列表
创建于 2021-07-27 /
3455
字体:
[默认]
[大]
[更大]
简要描述
文件列表
接口版本
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | Devil | 2020-03-04 |
请求URL
ueditor/index
请求方式
POST
公共参数
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
application | 是 | string | web | 请求应用、参考公共中详解 |
application_client_type | 是 | string | pc | 请求客户端、参考公共中详解 |
token | 是 | string | token |
请求参数
参数名 | 是否必须 | 类型 | 默认值 | 描述 |
---|---|---|---|---|
upfile | 特殊 | binary | 文件二进制 | |
action | 是 | string | 操作类型 详情查看上级公共描述 |
|
path_type | 否 | string | other | 文件存储路径 详情查看上级公共描述 |
start | 否 | int | 0 | 分页起始值 |
size | 否 | int | 配置 | 分页起始值、配置文件 config/ueditor.php 默认 20 |
操作类型 - action
参数值 | 描述 |
---|---|
listimage | 列出图片 |
listfile | 列出文件 |
listvideo | 列出视频 |
返回示例
正确时返回
{
"msg": "success",
"code": 0,
"data": {
"start": 0,
"total": 66,
"list": [
{
"id": "398",
"title": "1583374531934359.jpeg",
"original": "200x200.jpeg",
"path_type": "goods",
"size": "10852",
"ext": ".jpeg",
"type": "image",
"url": "http://xxx.com/static/upload/images/goods/2020/03/05/1583374531934359.jpeg",
"hash": "c55699daf0c56a2dccfd73faf947c4441ec5bdca5aaf9e197d467469b424868a",
"add_time": "2020-03-05 10:38:47"
},
{
"id": "96",
"title": "1547540603500383.jpg",
"original": "1547540603500383.jpg",
"path_type": "goods",
"size": "27527",
"ext": ".jpg",
"type": "image",
"url": "http://xxx.com/static/upload/images/goods/2019/01/15/1547540603500383.jpg",
"hash": "4898d06aa026c0453395e6ff624ed2a7b79c83124f21ca10b7ac6d21af12b4e7",
"add_time": "2020-03-05 10:38:47"
}
]
}
}
错误时返回
{
"msg": "没有相关数据",
"code": -1,
"data": ""
}
返回参数说明 -> data
参数名 | 是否必须 | 类型 | 描述 |
---|---|---|---|
start | 是 | int | 当前分页起始值 |
total | 是 | int | 总条数 |
list | 是 | array | 列表数据 |
返回参数说明 -> data -> list
参数名 | 是否必须 | 类型 | 描述 |
---|---|---|---|
id | 是 | int | 文件 id |
title | 是 | string | 文件名称 |
original | 是 | string | 文件原名称 |
path_type | 是 | string | 文件存储的路径 |
size | 是 | int | 文件字节大小 |
ext | 是 | string | 扩展名 |
type | 是 | string | 文件类型 |
url | 是 | string | 文件 url 地址 |
hash | 是 | string | sha256值 |
add_time | 是 | string | 添加时间 YY-mm-dd HH:ii:ss |
备注
更多返回错误代码请看首页的错误代码描述
3 人点赞过