mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-26 04:39:26 +08:00
优化头像上传
This commit is contained in:
@@ -2,14 +2,21 @@ package xyz.playedu.api.service;
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import xyz.playedu.api.domain.Resource;
|
||||
import xyz.playedu.api.domain.UserUploadImageLog;
|
||||
import xyz.playedu.api.exception.ServiceException;
|
||||
import xyz.playedu.api.types.UploadFileInfo;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
* @create 2023/3/8 14:02
|
||||
*/
|
||||
public interface UploadService {
|
||||
|
||||
UploadFileInfo upload(MultipartFile file, String dir) throws ServiceException;
|
||||
|
||||
Resource storeMinio(Integer adminId, MultipartFile file, String categoryIds) throws ServiceException;
|
||||
|
||||
Resource storeBase64Image(Integer adminId, String content, String categoryIds) throws ServiceException;
|
||||
|
||||
UserUploadImageLog userAvatar(Integer userId, MultipartFile file, String typed, String scene);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user