public interface ReactiveFileDao
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
createFolder(CreateFolderRequest createFolderRequest)
创建文件夹
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>> |
downloadFile(String fileId,
org.springframework.http.HttpHeaders httpHeaders)
下载文件,支持分段下载,断点续传
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
get(String fileId)
获取指定文件的信息
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
getDownloadUrl(String fileId)
获取文件的下载地址信息
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
getMultiDownloadUrl(MultiDownloadUrlRequest multiDownloadUrlRequest)
已过时。
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
list(ListRequest listRequest)
自定义请求参数的文件列表获取
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>> |
multiDownloadFile(MultiDownloadUrlRequest multiDownloadUrlRequest,
org.springframework.http.HttpHeaders httpHeaders)
已过时。
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
search(SearchRequest searchRequest)
根据指定的文件名和文件类型搜索文件
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec |
update(UpdateRequest updateRequest)
修改文件名
|
reactor.core.publisher.Mono<CreateFileResponse> |
uploadFile(String parentFileId,
Path path,
CheckNameEnum checkNameEnum)
上传文件(支持快传和分片上传)
|
org.springframework.web.reactive.function.client.WebClient.ResponseSpec list(ListRequest listRequest)
listRequest - 文件请求参数org.springframework.web.reactive.function.client.WebClient.ResponseSpec search(SearchRequest searchRequest)
searchRequest - 自定义搜索请求参数org.springframework.web.reactive.function.client.WebClient.ResponseSpec get(String fileId)
fileId - 文件IDorg.springframework.web.reactive.function.client.WebClient.ResponseSpec getDownloadUrl(String fileId)
fileId - 文件IDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>> downloadFile(String fileId, org.springframework.http.HttpHeaders httpHeaders)
fileId - 文件IDhttpHeaders - 表示 HTTP 请求头@Deprecated org.springframework.web.reactive.function.client.WebClient.ResponseSpec getMultiDownloadUrl(MultiDownloadUrlRequest multiDownloadUrlRequest)
multiDownloadUrlRequest - 多文件下载请求@Deprecated reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>> multiDownloadFile(MultiDownloadUrlRequest multiDownloadUrlRequest, org.springframework.http.HttpHeaders httpHeaders)
multiDownloadUrlRequest - 多个文件请求httpHeaders - http请求头org.springframework.web.reactive.function.client.WebClient.ResponseSpec createFolder(CreateFolderRequest createFolderRequest)
createFolderRequest - 请求参数reactor.core.publisher.Mono<CreateFileResponse> uploadFile(String parentFileId, Path path, CheckNameEnum checkNameEnum)
parentFileId - 父目录IDpath - 文件路径checkNameEnum - 同名策略org.springframework.web.reactive.function.client.WebClient.ResponseSpec update(UpdateRequest updateRequest)
updateRequest - 修改文件名的请求参数Copyright © 2021. All rights reserved.