| 程序包 | 说明 |
|---|---|
| com.anji.plus.gaea.oss.exceptions | |
| com.anji.plus.gaea.oss.ossbuilder | |
| com.anji.plus.gaea.oss.ossbuilder.builders |
| 限定符和类型 | 类和说明 |
|---|---|
class |
GaeaOSSTypeLimitedException |
| 限定符和类型 | 方法和说明 |
|---|---|
static GaeaOSSException |
GaeaOSSExceptionBuilder.build(String code) |
static GaeaOSSException |
GaeaOSSExceptionBuilder.build(String code,
Throwable throwable) |
static GaeaOSSException |
GaeaOSSExceptionBuilder.build(Throwable throwable) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
GaeaOSSTemplate.downloadFile(String fileObjectName)
根据fileObjectName下载文件流
|
default String |
GaeaOSSTemplate.uploadFileByInputStream(org.springframework.web.multipart.MultipartFile file)
输入参数为前端文件上传对象MultipartFile
返回的是新文件名,下载删除需要
|
String |
GaeaOSSTemplate.uploadFileByInputStream(org.springframework.web.multipart.MultipartFile file,
String fileObjectName)
输入参数为前端文件上传对象MultipartFile
返回的是objectName 作为下载文件的依据,客服端需要存储
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
NFSClient.downloadFile(String fileObjectName) |
byte[] |
MinioClient.downloadFile(String fileObjectName)
根据fileUUid下载文件
|
byte[] |
AmazonS3Client.downloadFile(String fileObjectName) |
String |
NFSClient.uploadFileByInputStream(org.springframework.web.multipart.MultipartFile file,
String fileObjectName) |
String |
MinioClient.uploadFileByInputStream(org.springframework.web.multipart.MultipartFile file,
String fileObjectName)
文件上传,输入参数为InputStream
|
String |
AmazonS3Client.uploadFileByInputStream(org.springframework.web.multipart.MultipartFile file,
String fileObjectName) |
Copyright © 2022. All rights reserved.