package cn.cetc54.platform.base.manager;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import java.io.InputStream;
|
|
/**
|
* @author x
|
*/
|
public interface FileManage {
|
|
|
/**
|
* 文件路径上传
|
* @param filePath
|
* @param key
|
* @return
|
*/
|
String pathUpload(String filePath, String key);
|
|
/**
|
* 文件流上传
|
* @param inputStream
|
* @param key
|
* @param file
|
* @return
|
*/
|
String inputStreamUpload(InputStream inputStream, String key, MultipartFile file);
|
|
/**
|
* 重命名文件
|
* @param fromKey
|
* @param toKey
|
* @return
|
*/
|
String renameFile(String fromKey, String toKey);
|
|
/**
|
* 拷贝文件
|
* @param fromKey
|
* @param toKey
|
* @return
|
*/
|
String copyFile(String fromKey, String toKey);
|
|
/**
|
* 删除文件
|
* @param key
|
*/
|
void deleteFile(String key);
|
}
|