123456789101112131415161718192021222324252627282930313233343536373839 |
- package com.example.fms.service;
- import org.springframework.transaction.annotation.Transactional;
- import org.springframework.web.multipart.MultipartFile;
- import java.util.List;
- /**
- * @Author xiexiang
- * @Date 2023/6/7
- */
- public interface IFileManagerService {
- /**
- * 上传系统文件
- *
- * @param files
- * @param sourceId
- */
- @Transactional
- void add(List<MultipartFile> files, Integer sourceId);
- /**
- * 删除系统文件
- *
- * @param ids
- * @param type
- */
- @Transactional
- void delete(List<Integer> ids, Integer type);
- /**
- * 下载系统文件
- *
- * @param fileName
- * @param savePath
- * @param sourceId
- */
- void download(String fileName, String savePath, Integer sourceId);
- }
|