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);
|
|
void downloadForStream(HttpServletResponse response, String key);
|
|
void downloadById(HttpServletResponse response, HttpServletRequest request, Long id);
|
}
|