package com.cloudroam.manager;
|
|
import com.cloudroam.model.SysFileDO;
|
import org.springframework.web.multipart.MultipartFile;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
public interface SysFileManager {
|
/*
|
上传单个文件
|
*/
|
SysFileDO uploadFile(MultipartFile uploadfile, String bucket, String objectName) throws Exception;
|
|
/**
|
* 根据fullpath查看文件是否存在
|
*
|
* @param fullpath 文件全路径
|
* @return
|
*/
|
SysFileDO getFileByFullpath(String fullpath);
|
|
/**
|
* 文件下载
|
* @param fullpath 文件全路径
|
* @param response
|
*/
|
void downloadFileWithFullpath(String fullpath, HttpServletResponse response) throws Exception;
|
}
|