ArchiveFileService.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.gz.service.archive;
  2. import com.github.pagehelper.PageInfo;
  3. import com.gz.core.exception.BusinessException;
  4. import com.gz.dto.system.ArchiveFileDTO;
  5. import com.gz.rvo.archive.ArchiveFileRVO;
  6. import com.gz.vo.archive.SearchArchiveFileVO;
  7. import org.springframework.web.multipart.MultipartFile;
  8. import java.io.IOException;
  9. import java.util.List;
  10. public interface ArchiveFileService {
  11. /**
  12. * @description 上传文件
  13. * @author LiuChangLan
  14. * @since 2020/9/9 11:25
  15. * @return
  16. */
  17. ArchiveFileDTO upload(MultipartFile files,Integer archiveId, Integer fileType,Integer secondaryArchiveId) throws BusinessException, IOException;
  18. void downloadAll(Integer archiveId);
  19. /**
  20. * @description 删除附件
  21. * @author LiuChangLan
  22. * @since 2021/2/25 17:09
  23. */
  24. Integer delete(Integer id);
  25. /**
  26. * @description 查询分页列表
  27. * @author LiuChangLan
  28. * @since 2021/2/25 17:09
  29. * @param vo
  30. */
  31. PageInfo<ArchiveFileRVO> selectByPage(SearchArchiveFileVO vo);
  32. /**
  33. * @description 查询档案文件
  34. * @author LiuChangLan
  35. * @since 2021/3/11 12:24
  36. */
  37. List<ArchiveFileRVO> selectByArchiveId(SearchArchiveFileVO vo);
  38. }