From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master

---
 jnpf-file/jnpf-file-api/src/main/java/jnpf/file/FileApi.java |   63 +++++++++++++++++++++++++++++++
 1 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/jnpf-file/jnpf-file-api/src/main/java/jnpf/file/FileApi.java b/jnpf-file/jnpf-file-api/src/main/java/jnpf/file/FileApi.java
new file mode 100644
index 0000000..a4df8d8
--- /dev/null
+++ b/jnpf-file/jnpf-file-api/src/main/java/jnpf/file/FileApi.java
@@ -0,0 +1,63 @@
+package jnpf.file;
+
+import jnpf.base.vo.DownloadVO;
+import jnpf.file.fallback.FileApiFallback;
+import jnpf.model.ExportModel;
+import jnpf.utils.FeignName;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 閫氳繃api璋冪敤鏂囦欢璺緞
+ * @author JNPF寮�鍙戝钩鍙扮粍
+ * @version V3.1.0
+ * @copyright 寮曡繄淇℃伅鎶�鏈湁闄愬叕鍙革紙https://www.jnpfsoft.com锛�
+ * @date 2021-03-24
+ */
+@FeignClient(name = FeignName.FILE_SERVER_NAME, fallback = FileApiFallback.class)
+public interface FileApi {
+    /**
+     * 閫氳繃type鑾峰彇璺緞
+     *
+     * @param type 绫诲瀷
+     * @return
+     */
+    @GetMapping("/getPath/{type}")
+    String getPath(@PathVariable("type") String type);
+
+    /**
+     * 瀵煎嚭
+     * @param exportModel
+     * @return
+     */
+    @PostMapping("/export")
+    DownloadVO exportFile(@RequestBody ExportModel exportModel);
+
+    /**
+     * 鑾峰彇鏈湴淇濆瓨璺緞
+     *
+     * @param
+     * @return
+     */
+    @GetMapping("/getLocalBasePath")
+    String getLocalBasePath();
+
+
+
+
+    /**
+     * 鑾峰彇鍏佽鏂囦欢棰勮绫诲瀷
+     *
+     * @param
+     * @return
+     */
+    @GetMapping("/getAllowPreviewFileType")
+    String getAllowPreviewFileType();
+
+    /**
+     * 鑾峰彇褰撳墠瀛樺偍骞冲彴
+     * @return
+     */
+    @GetMapping("/fileExists")
+    Boolean fileExists(@RequestParam("type") String type, @RequestParam("fileName") String fileName);
+}

--
Gitblit v1.8.0