package com.gkhy.fourierSpecialGasMonitor.application.attachment.service;
|
|
import com.gkhy.fourierSpecialGasMonitor.application.attachment.service.dto.resp.AttachmentAppRespDTO;
|
import org.springframework.web.multipart.MultipartFile;
|
|
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletResponse;
|
|
/**
|
* @email 1603559716@qq.com
|
* @author: zf
|
* @date: 2023/5/7
|
* @time: 13:38
|
*/
|
public interface AttachmentAppService {
|
Object saveFileToPath(MultipartFile file, String module, Integer detail,Long currentUserId);
|
|
AttachmentAppRespDTO findByKey(String key);
|
AttachmentAppRespDTO findById(Long id);
|
|
|
void delete(Long id);
|
|
void downloadByKey(HttpServletResponse response, HttpServletRequest request, String key);
|
|
void downloadForStream(HttpServletResponse response, String key);
|
}
|