package com.ruoyi.system.service;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import java.io.IOException;
|
import java.io.InputStream;
|
|
/**
|
* @author mitao
|
* @date 2024/12/23
|
*/
|
public interface OssService {
|
/**
|
* 文件上传
|
*
|
* @param file
|
* @return
|
*/
|
String uploadFile(MultipartFile file) throws IOException;
|
|
/**
|
* 文件上传,指定上传路径
|
*
|
* @param storagePath
|
* @param file
|
* @return
|
*/
|
String upload(String storagePath, MultipartFile file) throws IOException;
|
|
String uploadByInputStream(InputStream inputStream);
|
}
|