From e0ff6529b4364fdbf81d25f33e881118b147b3fa Mon Sep 17 00:00:00 2001
From: zf <1603559716@qq.com>
Date: 星期一, 31 七月 2023 13:04:41 +0800
Subject: [PATCH] bug修改

---
 src/main/java/com/gk/hotwork/Service/AttachmentService.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gk/hotwork/Service/AttachmentService.java b/src/main/java/com/gk/hotwork/Service/AttachmentService.java
new file mode 100644
index 0000000..5886c21
--- /dev/null
+++ b/src/main/java/com/gk/hotwork/Service/AttachmentService.java
@@ -0,0 +1,35 @@
+package com.gk.hotwork.Service;
+
+import com.gk.hotwork.Domain.AttachmentInfo;
+import com.gk.hotwork.Domain.Exception.BusinessException;
+import com.gk.hotwork.Domain.UserInfo;
+import org.apache.commons.collections4.CollectionUtils;
+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, UserInfo userInfo);
+
+    Object saveFileToPath(MultipartFile file, String module, int type, UserInfo user);
+
+    Object saveBatchFileToPath(MultipartFile[] file, String module, UserInfo user);
+
+    void downloadForStream(HttpServletResponse response, String key);
+
+    void downloadById(HttpServletResponse response, HttpServletRequest request, Long id);
+}

--
Gitblit v1.9.2