mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 规范 ICloudStorageStrategy 接口函数
This commit is contained in:
		@@ -18,15 +18,6 @@ public interface ICloudStorageStrategy {
 | 
			
		||||
	 */
 | 
			
		||||
	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);
 | 
			
		||||
 | 
			
		||||
	String getEndpointLink();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,6 @@ public abstract class AbstractCloudStorageStrategy implements ICloudStorageStrat
 | 
			
		||||
	@Override
 | 
			
		||||
	public abstract String getServiceType();
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public String getPath(String prefix, String suffix) {
 | 
			
		||||
		// 生成uuid
 | 
			
		||||
		String uuid = IdUtil.fastSimpleUUID();
 | 
			
		||||
@@ -57,6 +56,5 @@ public abstract class AbstractCloudStorageStrategy implements ICloudStorageStrat
 | 
			
		||||
	@Override
 | 
			
		||||
	public abstract UploadResult uploadSuffix(InputStream inputStream, String suffix, String contentType);
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public abstract String getEndpointLink();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user