网络硬盘Mobile端接口
| Version | Update Time | Status | Author | Description |
|---|---|---|---|---|
| 1.0 | 2022/5/20 | 创建 | yihong | 创建后端接口文档 |
文件空间管理接口
获取文件空间管理列表
URL: https://demo.youshengyun.com/storage/mobile/fileCapacity/getFileCapacityList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取文件空间管理列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| userName | string | false | 用户名称 | - |
| page | int32 | true | 页数 | - |
| rows | int32 | true | 总行数 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileCapacity/getFileCapacityList?page=0&rows=0&userName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}根据id获取存储空间信息
URL: https://demo.youshengyun.com/storage/mobile/fileCapacity/getCapacityInfo
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据id获取存储空间信息
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| id | string | true | 存储空间id | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileCapacity/getCapacityInfo?id=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}更新存储空间容量
URL: https://demo.youshengyun.com/storage/mobile/fileCapacity/updateCapacity
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 更新存储空间容量
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| id | string | true | 存储空间id | - |
| capacitySize | int64 | true | 存储容量大小 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileCapacity/updateCapacity?capacitySize=0&id=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}文件直链接口
设置直链文件密码
URL: https://demo.youshengyun.com/storage/linkMobile/setLinkPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置直链文件密码
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileId | string | true | 文件id | - |
| encryption | boolean | true | 是否加密 | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/linkMobile/setLinkPassword?encryption=true&fileId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}验证直链文件密码
URL: https://demo.youshengyun.com/storage/linkMobile/checkLinkPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 验证直链文件密码
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileId | string | true | 文件id | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/linkMobile/checkLinkPassword?fileId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}文件列表及文件操作接口
获取文件列表
URL: https://demo.youshengyun.com/storage/mobile/fileNode/getFileNodeList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取文件列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
| auth-positionId | string | true | 岗位id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| fileNodeType | string | false | 文件分类类型(文件夹:0,图片:1,文档:2,视频:3,音频:4,压缩包:5,其他:6) | - |
| searchName | string | false | 文件名称查询 | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
| orderProp | string | false | 排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME) | - |
| orderAsc | boolean | false | 排序是否正序(true | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -H 'auth-positionId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getFileNodeList?orderAsc=false)&folderId=&fileNodeType=&searchName=&listType=&orderProp=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取公共文件列表
URL: https://demo.youshengyun.com/storage/mobile/fileNode/getPublicFileNodeList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取公共文件列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| fileNodeType | string | false | 文件分类类型(文件夹:0,图片:1,文档:2,视频:3,音频:4,压缩包:5,其他:6) | - |
| searchName | string | false | 文件名称查询条件 | - |
| startTime | string | false | 开始时间查询条件 | - |
| endTime | string | false | 结束时间查询条件 | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
| orderProp | string | false | 排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME) | - |
| orderAsc | boolean | false | 排序是否正序(true | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getPublicFileNodeList?orderAsc=false)&folderId=&fileNodeType=&searchName=&startTime=&endTime=&listType=&orderProp=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取公共管理文件列表
URL: https://demo.youshengyun.com/storage/mobile/fileNode/getPublicManageFileList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取公共管理文件列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| fileNodeType | string | false | 文件分类类型(文件夹:0,图片:1,文档:2,视频:3,音频:4,压缩包:5,其他:6) | - |
| searchName | string | false | 文件名称查询条件 | - |
| startTime | string | false | 开始时间查询条件 | - |
| endTime | string | false | 结束时间查询条件 | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
| orderProp | string | false | 排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME) | - |
| orderAsc | boolean | false | 排序是否正序(true | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getPublicManageFileList?orderAsc=false)&folderId=&fileNodeType=&searchName=&startTime=&endTime=&listType=&orderProp=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取我的收藏列表
URL: https://demo.youshengyun.com/storage/mobile/fileNode/getCollectFileNodeList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取我的收藏列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| searchName | string | false | 文件名称查询条件 | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
| orderProp | string | false | 排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME) | - |
| orderAsc | boolean | false | 排序是否正序(true | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getCollectFileNodeList?orderAsc=false)&folderId=&searchName=&listType=&orderProp=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取回收站列表
URL: https://demo.youshengyun.com/storage/mobile/fileNode/getRecycleList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取回收站列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getRecycleListResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}清空回收站
URL: https://demo.youshengyun.com/storage/mobile/fileNode/clearRecycle
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 清空回收站
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | No comments found. | - |
| auth-userId | string | true | No comments found. | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/clearRecycleResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}删除回收站文件(彻底删除)
URL: https://demo.youshengyun.com/storage/mobile/fileNode/deleteRecycleFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除回收站文件(彻底删除)
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | No comments found. | - |
| auth-userId | string | true | No comments found. | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| ids | string | true | No comments found. | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/deleteRecycleFile?ids=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}还原回收站文件
URL: https://demo.youshengyun.com/storage/mobile/fileNode/restoreRecycleFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 还原回收站文件
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | No comments found. | - |
| auth-userId | string | true | No comments found. | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| ids | string | true | No comments found. | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/restoreRecycleFile?ids=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}上传文件
URL: https://demo.youshengyun.com/storage/mobile/fileNode/uploadFile
Type: GET
Author: yihong
Content-Type: multipart/form-data
Description: 上传文件
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
| auth-positionId | string | true | 岗位id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| file | file | false | 文件对象 | - |
| parentId | string | true | 父文件id(未进入列表文件夹时传listType的值,否则传点击文件夹的id) | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
Request-example:
curl -X GET -k -H 'Content-Type: multipart/form-data' -H 'auth-tenantId' -H 'auth-userId' -H 'auth-positionId' -i https://demo.youshengyun.com/storage/mobile/fileNode/uploadFile?parentId=&listType=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}新建文件夹
URL: https://demo.youshengyun.com/storage/mobile/fileNode/addFolder
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 新建文件夹
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
| auth-positionId | string | true | 岗位id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| name | string | true | 文件名称 | - |
| parentId | string | true | 当前所在父目录id | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -H 'auth-positionId' -i https://demo.youshengyun.com/storage/mobile/fileNode/addFolder?name=&parentId=&listType=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}下载单个或者多个文件
URL: https://demo.youshengyun.com/storage/mobile/fileNode/downloadFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 下载单个或者多个文件
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
| auth-positionId | string | true | 岗位id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| ids | string | true | 文件id字符串,多个id以“,”隔开 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -H 'auth-positionId' -i https://demo.youshengyun.com/storage/mobile/fileNode/downloadFile?ids=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}删除单个或者多个文件(标记删除)
URL: https://demo.youshengyun.com/storage/mobile/fileNode/deleteFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除单个或者多个文件(标记删除)
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
| auth-positionId | string | true | 岗位id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| ids | string | true | 文件id字符串,多个id以“,”隔开 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -H 'auth-positionId' -i https://demo.youshengyun.com/storage/mobile/fileNode/deleteFile?ids=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}移动单个或者多个文件
URL: https://demo.youshengyun.com/storage/mobile/fileNode/moveFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 移动单个或者多个文件
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| ids | string | true | 需要移动文件id字符串,多个id以“,”隔开 | - |
| targetId | string | true | 移动到目标文件夹的id | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/moveFile?ids=&targetId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}重命名文件或文件夹
URL: https://demo.youshengyun.com/storage/mobile/fileNode/rename
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 重命名文件或文件夹
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
| auth-positionId | string | true | 岗位id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| id | string | true | 文件id | - |
| name | string | true | 文件名称 | - |
| parentId | string | true | 当前所在父目录id | - |
| listType | string | true | 列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage) | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -H 'auth-positionId' -i https://demo.youshengyun.com/storage/mobile/fileNode/rename?id=&name=&parentId=&listType=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取公共文件的文件公开记录列表
URL: https://demo.youshengyun.com/storage/mobile/fileNode/getDownloadRecord
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取公共文件的文件公开记录列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileId | string | true | 文件id | - |
| page | int32 | true | 页数 | - |
| rows | int32 | true | 总行数 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getDownloadRecord?page=0&rows=0&fileId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}文件夹加密方法
URL: https://demo.youshengyun.com/storage/mobile/fileNode/setFolderPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 文件夹加密方法
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/setFolderPassword?folderId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}取消文件夹密码方法
URL: https://demo.youshengyun.com/storage/mobile/fileNode/cancelFolderPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 取消文件夹密码方法
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/cancelFolderPassword?folderId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}重置文件夹密码方法
URL: https://demo.youshengyun.com/storage/mobile/fileNode/resetFolderPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 重置文件夹密码方法
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/resetFolderPassword?folderId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}验证文件夹密码方法
URL: https://demo.youshengyun.com/storage/mobile/fileNode/checkFolderPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 验证文件夹密码方法
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/checkFolderPassword?folderId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}文件夹解密方法
URL: https://demo.youshengyun.com/storage/mobile/fileNode/decryptPassword
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 文件夹解密方法
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| folderId | string | true | 文件夹id | - |
| password | string | true | 文件夹密码 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/decryptPassword?folderId=&password=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}收藏文件或者文件夹
URL: https://demo.youshengyun.com/storage/mobile/fileNode/setCollect
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 收藏文件或者文件夹
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileNodeId | string | true | 文件夹或者文件id | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/setCollect?fileNodeId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}取消收藏
URL: https://demo.youshengyun.com/storage/mobile/fileNode/cancelCollect
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 取消收藏
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileNodeId | string | true | 文件夹或者文件id | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/cancelCollect?fileNodeId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}文件共享处理接口
获取文件共享记录列表
URL: https://demo.youshengyun.com/storage/mobile/fileNodeShare/getFileNodeShareRecordList
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取文件共享记录列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/getFileNodeShareRecordListResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}共享文件
URL: https://demo.youshengyun.com/storage/mobile/fileNodeShare/shareFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 共享文件
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileNodeIds | string | true | 需要共享的文件id字符串,以“,”相隔 | - |
| orgUnitIds | string | true | 共享的人员id字符串,以“,”相隔 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/shareFile?fileNodeIds=&orgUnitIds=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}公共文件公开
URL: https://demo.youshengyun.com/storage/mobile/fileNodeShare/publicFile
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 公共文件公开
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileNodeIds | string | true | 需要公开的文件id字符串,以“,”相隔 | - |
| orgUnitIds | string | true | 公开的人员id字符串,以“,”相隔 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/publicFile?fileNodeIds=&orgUnitIds=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}取消共享文件
URL: https://demo.youshengyun.com/storage/mobile/fileNodeShare/cancelShare
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 取消共享文件
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileNodeIds | string | true | 需要取消的文件id字符串,以“,”相隔 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/cancelShare?fileNodeIds=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取公共文件公开记录列表
URL: https://demo.youshengyun.com/storage/mobile/fileNodeShare/getFilePublicRecord
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取公共文件公开记录列表
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| fileId | string | true | 文件id | - |
| page | int32 | true | 页数 | - |
| rows | int32 | true | 总行数 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/getFilePublicRecord?page=0&rows=0&fileId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}删除文件权限的公开人员
URL: https://demo.youshengyun.com/storage/mobile/fileNodeShare/deletePublicPerson
Type: GET
Author: yihong
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除文件权限的公开人员
Request-headers:
| Header | Type | Required | Description | Since |
|---|---|---|---|---|
| auth-tenantId | string | true | 租户id | - |
| auth-userId | string | true | 用户id | - |
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| publicRecordIds | string | true | 需要删除的公开记录id字符串(来源于getFilePublicRecord方法返回的id),以“,”相隔 | - |
Request-example:
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/deletePublicPerson?publicRecordIds=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}错误码列表
| Error code | Description |
|---|---|
| 0 | 操作成功 |
| 1 | 服务器内部错误,请联系开发人员 |
| 2 | 参数校验失败 |
| 3 | 对象[{}]不存在 |
| 100 | 令牌未传入 |
| 101 | 令牌已失效 |
| 102 | 校验令牌出问题了 |
| 200 | 权限不足拒绝访问 |
| 211 | 当前用户不是全局系统管理员 |
| 212 | 当前用户不是全局安全保密员 |
| 213 | 当前用户不是全局安全审计员 |
| 214 | 当前用户不是部门系统管理员 |
| 215 | 当前用户不是部门安全保密员 |
| 216 | 当前用户不是部门安全审计员 |
| 220 | 当前用户没有拥有角色[{}] |
| 221 | 当前岗位没有拥有角色[{}] |
| 222 | 当前用户不是[{}] |
| 230 | 当前用户没有被授权资源[{}] |
| 231 | 当前岗位没有被授权资源[{}] |
数据字典
http状态码字典
| Code | Type | Description |
|---|---|---|
| 200 | string | ok |
| 400 | string | Bad Request |
| 401 | string | Unauthorized |
| 403 | string | Forbidden |
| 404 | string | Not Found |
| 415 | string | Unsupported Media Type |
| 500 | string | Internal Server Error |
| 502 | string | Bad Gateway |
| 503 | string | Service Unavailable |