ProjectFileService.java 959 B

123456789101112131415161718192021222324252627282930
  1. package com.hssx.cloudmodel.service;
  2. import com.hssx.cloudmodel.entity.ProjectFile;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.hssx.cloudmodel.entity.vo.UserVO;
  5. import com.hssx.cloudmodel.util.HttpRespMsg;
  6. import org.springframework.web.multipart.MultipartFile;
  7. import javax.servlet.http.HttpServletResponse;
  8. import java.io.FileNotFoundException;
  9. import java.io.UnsupportedEncodingException;
  10. /**
  11. * <p>
  12. * 服务类
  13. * </p>
  14. *
  15. * @author 吴涛涛
  16. * @since 2019-07-30
  17. */
  18. public interface ProjectFileService extends IService<ProjectFile> {
  19. HttpRespMsg addFile(UserVO userVO, MultipartFile file, String path);
  20. HttpRespMsg dowloadFile(ProjectFile projectFile, String token,String downLoadpath,HttpServletResponse response,String path) throws FileNotFoundException, UnsupportedEncodingException;
  21. HttpRespMsg getFileList(UserVO userVO,String path);
  22. HttpRespMsg delFile(ProjectFile projectFile,String token);
  23. }