Class OssUsageServiceImpl
-
- All Implemented Interfaces:
-
io.github.caijiang.common.aliyun.oss.OssUsageService
public final class OssUsageServiceImpl implements OssUsageService
CJ
-
-
Constructor Summary
Constructors Constructor Description OssUsageServiceImpl(OssProperties properties)
-
Method Summary
Modifier and Type Method Description StringuploadPublicResource(String resourcePath, InputStream data)上传公开资源 StringpublicResourceUrl(String resourcePath)UnituploadPrivateResource(String resourcePath, InputStream data)上传私有资源 StringprivateResourceTemporaryUrl(String resourcePath)-
-
Constructor Detail
-
OssUsageServiceImpl
OssUsageServiceImpl(OssProperties properties)
-
-
Method Detail
-
uploadPublicResource
String uploadPublicResource(String resourcePath, InputStream data)
上传公开资源
- Parameters:
resourcePath- 资源路径
-
publicResourceUrl
String publicResourceUrl(String resourcePath)
-
uploadPrivateResource
Unit uploadPrivateResource(String resourcePath, InputStream data)
上传私有资源
- Parameters:
resourcePath- 资源路径
-
privateResourceTemporaryUrl
String privateResourceTemporaryUrl(String resourcePath)
- Returns:
临时可以访问的私有资源地址
-
-
-
-