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/YozoApi.java |  108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/jnpf-file/jnpf-file-api/src/main/java/jnpf/file/YozoApi.java b/jnpf-file/jnpf-file-api/src/main/java/jnpf/file/YozoApi.java
new file mode 100644
index 0000000..ded081d
--- /dev/null
+++ b/jnpf-file/jnpf-file-api/src/main/java/jnpf/file/YozoApi.java
@@ -0,0 +1,108 @@
+package jnpf.file;
+
+import jnpf.base.ActionResult;
+import jnpf.base.vo.PaginationVO;
+import jnpf.file.fallback.YozoApiFallback;
+import jnpf.model.YozoFileParams;
+import jnpf.utils.FeignName;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.http.MediaType;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.IOException;
+
+/**
+ * 姘镐腑鏈嶅姟
+ *
+ * @author JNPF寮�鍙戝钩鍙扮粍
+ * @version V3.1.0
+ * @copyright 寮曡繄淇℃伅鎶�鏈湁闄愬叕鍙革紙https://www.jnpfsoft.com锛�
+ * @date  2021/4/15
+ */
+@FeignClient(name = FeignName.FILE_SERVER_NAME, fallback = YozoApiFallback.class)
+public interface YozoApi {
+    /**
+     * 鑾峰彇棰勮url
+     * @param params
+     * @return
+     */
+    @PostMapping("/getUrl")
+    ActionResult<Object> getUrl(@RequestBody YozoFileParams params);
+
+    /**
+     * 涓婁紶鏈湴鏂囦欢
+     * @param file
+     * @return
+     * @throws IOException
+     */
+    @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE )
+    ActionResult<Object> upload (@RequestPart("multipartFile") MultipartFile file) throws IOException;
+
+    /**
+     * 鏂板缓鏂囦欢
+     * @param fileName
+     * @param templateType
+     * @return
+     */
+    @GetMapping("/newCreate")
+    ActionResult<Object> newCreate(@RequestParam("fileName") String fileName,@RequestParam("templateType") String templateType);
+
+    /**
+     * http涓婁紶鏂囦欢
+     * @param fileUrl
+     * @return
+     */
+    @GetMapping("/uploadByHttp")
+    ActionResult<Object> uploadByHttp(@RequestParam("fileUrl") String fileUrl);
+
+    /**
+     * 姘镐腑涓嬭浇鏂囦欢
+     * @param fileVersionId
+     * @return
+     */
+    @GetMapping("/downloadFile")
+    String downloadFile(@RequestParam("fileVersionId")String fileVersionId);
+
+    /**
+     * 鍒犻櫎鏂囦欢鐗堟湰
+     * @param fileVersionId
+     * @return
+     */
+    @GetMapping("/deleteVersionFile")
+    ActionResult<Object> deleteVersion(@RequestParam("fileVersionId")String fileVersionId);
+
+    /**
+     * 鎵归噺鍒犻櫎鏂囦欢鐗堟湰
+     * @param fileVersionIds
+     * @return
+     */
+    @GetMapping("/batchDelete")
+    ActionResult<Object> batchDelete(@RequestParam("fileVersionIds")String[] fileVersionIds);
+
+    /**
+     * 鍦ㄧ嚎缂栬緫
+     * @param fileVersionId
+     * @return
+     */
+    @GetMapping("/editFile")
+    ActionResult<Object> editFile (@RequestParam("fileVersionId")String fileVersionId);
+
+    /**
+     * 鏂囨。鍒楄〃
+     * @param pageModel
+     * @return
+     */
+    @PostMapping("/documentList")
+    ActionResult<Object> documentList(@RequestBody PaginationVO pageModel);
+
+    /**
+     * 鏈湴鍚屾缂栬緫杩囧悗鐨勬枃浠�
+     * @param fileVersionId
+     * @return
+     */
+    @GetMapping("/updateFile")
+    ActionResult<Object> updateFile(@RequestParam("fileVersionId") String fileVersionId);
+
+
+}

--
Gitblit v1.8.0