Skip to content

网络硬盘Mobile端接口

VersionUpdate TimeStatusAuthorDescription
1.02022/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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
userNamestringfalse用户名称-
pageint32true页数-
rowsint32true总行数-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idstringtrue存储空间id-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileCapacity/getCapacityInfo?id=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idstringtrue存储空间id-
capacitySizeint64true存储容量大小-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileCapacity/updateCapacity?capacitySize=0&id=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileIdstringtrue文件id-
encryptionbooleantrue是否加密-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/linkMobile/setLinkPassword?encryption=true&fileId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileIdstringtrue文件id-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/linkMobile/checkLinkPassword?fileId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-
auth-positionIdstringtrue岗位id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
fileNodeTypestringfalse文件分类类型(文件夹:0,图片:1,文档:2,视频:3,音频:4,压缩包:5,其他:6)-
searchNamestringfalse文件名称查询-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-
orderPropstringfalse排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME)-
orderAscbooleanfalse排序是否正序(true-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
fileNodeTypestringfalse文件分类类型(文件夹:0,图片:1,文档:2,视频:3,音频:4,压缩包:5,其他:6)-
searchNamestringfalse文件名称查询条件-
startTimestringfalse开始时间查询条件-
endTimestringfalse结束时间查询条件-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-
orderPropstringfalse排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME)-
orderAscbooleanfalse排序是否正序(true-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
fileNodeTypestringfalse文件分类类型(文件夹:0,图片:1,文档:2,视频:3,音频:4,压缩包:5,其他:6)-
searchNamestringfalse文件名称查询条件-
startTimestringfalse开始时间查询条件-
endTimestringfalse结束时间查询条件-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-
orderPropstringfalse排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME)-
orderAscbooleanfalse排序是否正序(true-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
searchNamestringfalse文件名称查询条件-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-
orderPropstringfalse排序字段(文件名称:FILE_NAME,文件大小:FILE_SIZE,更新时间:UPDATE_TIME,创建时间;CREATE_TIME)-
orderAscbooleanfalse排序是否正序(true-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/getRecycleList

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrueNo comments found.-
auth-userIdstringtrueNo comments found.-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/clearRecycle

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrueNo comments found.-
auth-userIdstringtrueNo comments found.-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idsstringtrueNo comments found.-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/deleteRecycleFile?ids=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrueNo comments found.-
auth-userIdstringtrueNo comments found.-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idsstringtrueNo comments found.-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/restoreRecycleFile?ids=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-
auth-positionIdstringtrue岗位id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
filefilefalse文件对象-
parentIdstringtrue父文件id(未进入列表文件夹时传listType的值,否则传点击文件夹的id)-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-
auth-positionIdstringtrue岗位id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
namestringtrue文件名称-
parentIdstringtrue当前所在父目录id-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-
auth-positionIdstringtrue岗位id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idsstringtrue文件id字符串,多个id以“,”隔开-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-
auth-positionIdstringtrue岗位id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idsstringtrue文件id字符串,多个id以“,”隔开-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idsstringtrue需要移动文件id字符串,多个id以“,”隔开-
targetIdstringtrue移动到目标文件夹的id-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/moveFile?ids=&targetId=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-
auth-positionIdstringtrue岗位id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
idstringtrue文件id-
namestringtrue文件名称-
parentIdstringtrue当前所在父目录id-
listTypestringtrue列表类型(我的文件:my,共享文件:shared,公共文件:public,部门文件:dept,上报文件:report,上报文件管理:reportManage)-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileIdstringtrue文件id-
pageint32true页数-
rowsint32true总行数-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/setFolderPassword?folderId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/cancelFolderPassword?folderId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/resetFolderPassword?folderId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/checkFolderPassword?folderId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
folderIdstringtrue文件夹id-
passwordstringtrue文件夹密码-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/decryptPassword?folderId=&password=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileNodeIdstringtrue文件夹或者文件id-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/setCollect?fileNodeId=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileNodeIdstringtrue文件夹或者文件id-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNode/cancelCollect?fileNodeId=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/getFileNodeShareRecordList

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileNodeIdsstringtrue需要共享的文件id字符串,以“,”相隔-
orgUnitIdsstringtrue共享的人员id字符串,以“,”相隔-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/shareFile?fileNodeIds=&orgUnitIds=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileNodeIdsstringtrue需要公开的文件id字符串,以“,”相隔-
orgUnitIdsstringtrue公开的人员id字符串,以“,”相隔-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/publicFile?fileNodeIds=&orgUnitIds=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileNodeIdsstringtrue需要取消的文件id字符串,以“,”相隔-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/cancelShare?fileNodeIds=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
fileIdstringtrue文件id-
pageint32true页数-
rowsint32true总行数-

Request-example:

bash
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:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "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:

HeaderTypeRequiredDescriptionSince
auth-tenantIdstringtrue租户id-
auth-userIdstringtrue用户id-

Query-parameters:

ParameterTypeRequiredDescriptionSince
publicRecordIdsstringtrue需要删除的公开记录id字符串(来源于getFilePublicRecord方法返回的id),以“,”相隔-

Request-example:

bash
curl -X GET -k -H 'auth-tenantId' -H 'auth-userId' -i https://demo.youshengyun.com/storage/mobile/fileNodeShare/deletePublicPerson?publicRecordIds=

Response-fields:

FieldTypeDescriptionSince
successboolean操作是否成功-
codeint32错误代码-
msgstring操作描述-
dataobject操作成功返回的数据-

Response-example:

json
{
  "success": true,
  "code": 0,
  "msg": "",
  "data": ""
}

错误码列表

Error codeDescription
0操作成功
1服务器内部错误,请联系开发人员
2参数校验失败
3对象[{}]不存在
100令牌未传入
101令牌已失效
102校验令牌出问题了
200权限不足拒绝访问
211当前用户不是全局系统管理员
212当前用户不是全局安全保密员
213当前用户不是全局安全审计员
214当前用户不是部门系统管理员
215当前用户不是部门安全保密员
216当前用户不是部门安全审计员
220当前用户没有拥有角色[{}]
221当前岗位没有拥有角色[{}]
222当前用户不是[{}]
230当前用户没有被授权资源[{}]
231当前岗位没有被授权资源[{}]

数据字典

http状态码字典

CodeTypeDescription
200stringok
400stringBad Request
401stringUnauthorized
403stringForbidden
404stringNot Found
415stringUnsupported Media Type
500stringInternal Server Error
502stringBad Gateway
503stringService Unavailable

Released under the GPL-3.0 License.