public class ReactiveBaseExecutor extends Object implements ReactiveExecutor
| 构造器和说明 |
|---|
ReactiveBaseExecutor(ReactiveFileDao reactiveFileDao,
ReactiveRecycleDao reactiveRecycleDao) |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CreateFolderResponse>> |
createFolder(CreateFolderRequest createFolderRequest)
根据创建文件夹的请求参数,发送创建文件夹的请求
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>> |
downloadFile(String fileId,
org.springframework.http.HttpHeaders httpHeaders)
下载文件,支持分段下载,断点续传
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BaseItem>> |
get(String fileId)
根据文件ID,发送get请求
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<DownloadUrlResponse>> |
getDownloadUrl(String fileId)
根据文件ID,获取文件的下载信息
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ListResponse>> |
list(ListRequest listRequest)
根据指定的请求参数,发送list请求
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SearchResponse>> |
search(SearchRequest searchRequest)
根据指定的搜索请求参数,发送search请求
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>> |
trash(String fileId)
将文件移入到回收站
|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BaseItem>> |
update(UpdateRequest updateRequest)
根据指定的修改文件名参数,发送修改文件名请求
|
reactor.core.publisher.Mono<CreateFileResponse> |
uploadFile(String parentFileId,
Path path,
CheckNameEnum checkNameEnum)
上传文件
|
public ReactiveBaseExecutor(ReactiveFileDao reactiveFileDao, ReactiveRecycleDao reactiveRecycleDao)
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ListResponse>> list(ListRequest listRequest)
ReactiveExecutorlist 在接口中 Executorlist 在接口中 ReactiveExecutorlistRequest - list请求参数public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SearchResponse>> search(SearchRequest searchRequest)
ReactiveExecutorsearch 在接口中 Executorsearch 在接口中 ReactiveExecutorsearchRequest - 搜索请求参数public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BaseItem>> get(String fileId)
ReactiveExecutorget 在接口中 Executorget 在接口中 ReactiveExecutorfileId - 文件IDpublic reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<DownloadUrlResponse>> getDownloadUrl(String fileId)
ReactiveExecutorgetDownloadUrl 在接口中 ExecutorgetDownloadUrl 在接口中 ReactiveExecutorfileId - 文件IDpublic reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CreateFolderResponse>> createFolder(CreateFolderRequest createFolderRequest)
ReactiveExecutorcreateFolder 在接口中 ExecutorcreateFolder 在接口中 ReactiveExecutorcreateFolderRequest - 创建文件夹的请求参数public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>> downloadFile(String fileId, org.springframework.http.HttpHeaders httpHeaders)
ReactiveExecutordownloadFile 在接口中 ReactiveExecutorfileId - 文件IDhttpHeaders - 表示 HTTP 请求头public reactor.core.publisher.Mono<CreateFileResponse> uploadFile(String parentFileId, Path path, CheckNameEnum checkNameEnum)
ReactiveExecutoruploadFile 在接口中 ExecutoruploadFile 在接口中 ReactiveExecutorparentFileId - 父目录IDpath - 要上传的文件路径checkNameEnum - 同名策略public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>> trash(String fileId)
ReactiveExecutortrash 在接口中 Executortrash 在接口中 ReactiveExecutorfileId - 文件IDpublic reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BaseItem>> update(UpdateRequest updateRequest)
ReactiveExecutorupdate 在接口中 Executorupdate 在接口中 ReactiveExecutorupdateRequest - 修改文件名的请求参数Copyright © 2021. All rights reserved.