| | |
| | | public interface IFileService extends IService<FileInfo> { |
| | | FileInfo upload(MultipartFile file ) throws Exception; |
| | | |
| | | FileInfo upload(MultipartFile file ,String imgType) throws Exception; |
| | | |
| | | PageResult<FileInfo> findList(Map<String, Object> params); |
| | | |
| | | void delete(String id); |
| | | |
| | | /** |
| | | * 上传图片-并缩略,其实是给文件服务器存储了两个文件 一个原文件 一个缩略图文件 |
| | | * @param file form内的文件数据 |
| | | * @param imgType 业务类型 例如logo |
| | | * @return 返回的实体中 path字段保存的是缩略图地址 |
| | | * @throws Exception |
| | | */ |
| | | FileInfo uploadForThumbnails(MultipartFile file ,String imgType) throws Exception; |
| | | } |