From 390f208bb228eedc4bfbbe420ca082cd19c4f1a4 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期五, 03 二月 2023 12:59:13 +0800
Subject: [PATCH] 增加文件上传方法,可传文件名

---
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java
index 8dbfbd0..a83202d 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java
@@ -27,6 +27,17 @@
     Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName);
 
     /**
+     *涓婁紶鍥剧墖锛堣浆鍖栧疄浣揊ileUpdateDto锛�
+     * @param file 鏂囦欢
+     * @param folderCode 瀛樺偍鏂囦欢澶�,姣斿鍟嗗搧杞挱鍥�:/goods/banner
+     * @param bucketName 瀛樺偍妗跺悕绉�
+     * @return
+     */
+    @RequestMapping(value = "/cos/upload-multipart/name",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
+    Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName,@RequestParam("bucketName")String fileName);
+
+
+    /**
      *涓嬭浇鍥剧墖
      * 鍙互浣跨敤 FileDownUtil.downToFile()鏂规硶杞寲涓烘枃浠�
      * @param cosDownDto 瀵硅薄

--
Gitblit v1.8.0