mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-26 04:39:26 +08:00
完善minio上传
This commit is contained in:
15
src/main/java/xyz/playedu/api/service/UploadService.java
Normal file
15
src/main/java/xyz/playedu/api/service/UploadService.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package xyz.playedu.api.service;
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import xyz.playedu.api.domain.Resource;
|
||||
import xyz.playedu.api.exception.ServiceException;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
* @create 2023/3/8 14:02
|
||||
*/
|
||||
public interface UploadService {
|
||||
Resource storeMinio(MultipartFile file, Integer categoryId) throws ServiceException;
|
||||
|
||||
Resource storeBase64Image(String content,Integer categoryId) throws ServiceException;
|
||||
}
|
||||
Reference in New Issue
Block a user