package com.ard.work.service;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
/**
|
* 文件上传接口
|
*
|
* @author ard
|
*/
|
public interface IMinioFileService {
|
|
/**
|
* 文件上传接口
|
*
|
* @param file 上传的文件
|
* @return 访问地址
|
* @throws Exception
|
*/
|
public String uploadFile(MultipartFile file) throws Exception;
|
|
/**
|
* 文件上传-指定桶名称
|
*
|
* @param file 上传的文件
|
* @param bucketName 桶名称
|
* @return 访问地址
|
* @throws Exception
|
*/
|
public String uploadFile(MultipartFile file, String bucketName) throws Exception;
|
|
/**
|
* 文件下载接口
|
*/
|
public void downloadFile(String fileName, HttpServletResponse response) throws Exception;
|
|
/**
|
* 文件下载接口-指定桶名称
|
*/
|
public void downloadFile(String fileName, String bucketName, HttpServletResponse response) throws Exception;
|
|
/**
|
* 文件删除接口
|
*/
|
public void deleteFile(String fileName) throws Exception;
|
|
/**
|
* 文件删除接口-指定桶名称
|
*/
|
public void deleteFile(String fileName, String bucketName) throws Exception;
|
|
}
|