update 规范 ICloudStorageStrategy 接口函数
This commit is contained in:
parent
18cbd96280
commit
7ab51b8960
@ -18,15 +18,6 @@ public interface ICloudStorageStrategy {
|
|||||||
*/
|
*/
|
||||||
String getServiceType();
|
String getServiceType();
|
||||||
|
|
||||||
/**
|
|
||||||
* 文件路径
|
|
||||||
*
|
|
||||||
* @param prefix 前缀
|
|
||||||
* @param suffix 后缀
|
|
||||||
* @return 返回上传路径
|
|
||||||
*/
|
|
||||||
String getPath(String prefix, String suffix);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件上传
|
* 文件上传
|
||||||
*
|
*
|
||||||
@ -70,5 +61,4 @@ public interface ICloudStorageStrategy {
|
|||||||
*/
|
*/
|
||||||
UploadResult uploadSuffix(InputStream inputStream, String suffix, String contentType);
|
UploadResult uploadSuffix(InputStream inputStream, String suffix, String contentType);
|
||||||
|
|
||||||
String getEndpointLink();
|
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,6 @@ public abstract class AbstractCloudStorageStrategy implements ICloudStorageStrat
|
|||||||
@Override
|
@Override
|
||||||
public abstract String getServiceType();
|
public abstract String getServiceType();
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getPath(String prefix, String suffix) {
|
public String getPath(String prefix, String suffix) {
|
||||||
// 生成uuid
|
// 生成uuid
|
||||||
String uuid = IdUtil.fastSimpleUUID();
|
String uuid = IdUtil.fastSimpleUUID();
|
||||||
@ -57,6 +56,5 @@ public abstract class AbstractCloudStorageStrategy implements ICloudStorageStrat
|
|||||||
@Override
|
@Override
|
||||||
public abstract UploadResult uploadSuffix(InputStream inputStream, String suffix, String contentType);
|
public abstract UploadResult uploadSuffix(InputStream inputStream, String suffix, String contentType);
|
||||||
|
|
||||||
@Override
|
|
||||||
public abstract String getEndpointLink();
|
public abstract String getEndpointLink();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user