huangzhen
2023-09-13 10bf499726acea50b695d215f7f07d9e2cde5bec
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
28
29
30
31
32
33
34
35
36
package com.ruoyi.file.service;
 
import com.ruoyi.file.entity.AttachmentInfo;
import org.springframework.web.multipart.MultipartFile;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/7/24
 * @time: 13:53
 */
public interface AttachmentService {
    AttachmentInfo findByKey(String key);
 
    AttachmentInfo findById(Long id);
    List<AttachmentInfo> findByIds(List<Long> ids);
    List<AttachmentInfo> findByBusinessId(Long businessId);
 
    void delete(Long id);
 
    Object saveFileToPath(MultipartFile file, String module, int type);
 
    Object saveBatchFileToPath(MultipartFile[] file, String module);
 
    Object saveBatchFileToPath(MultipartFile[] file, String module,Long businessId);
 
    void downloadForStream(HttpServletResponse response, String key);
 
    void downloadById(HttpServletResponse response, HttpServletRequest request, Long id);
 
    void updateBatchById(List<AttachmentInfo> attachmentInfo);
}