zhangf
2024-07-26 698995469a3fcdc3164fc486d18bdbe059b6c92e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
}