From 899277d8fba239727875201ee6a060b6c535f743 Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期一, 30 九月 2024 18:01:39 +0800 Subject: [PATCH] 1.修改会员来访明细工具逻辑 2.新增查询权限工具类 --- phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 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 a83202d..4120034 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 @@ -2,6 +2,7 @@ import com.hx.resultTool.Result; import com.hz.his.dto.file.FileDownDto; +import com.hz.his.dto.file.FileSignVo; import feign.Response; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.MediaType; @@ -13,7 +14,7 @@ /** * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� */ -@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "cos-down") +@FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "cos-down") public interface SFileService { /** @@ -31,10 +32,11 @@ * @param file 鏂囦欢 * @param folderCode 瀛樺偍鏂囦欢澶�,姣斿鍟嗗搧杞挱鍥�:/goods/banner * @param bucketName 瀛樺偍妗跺悕绉� + * @param fileName 鏂囦欢鍚嶇О锛堝惈鍚庣紑锛�,濡傦細test.xml * @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); + Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName,@RequestParam("fileName")String fileName); /** @@ -46,4 +48,20 @@ @PostMapping(value = "/cos/download-file") Response downloadFile(@RequestBody FileDownDto cosDownDto); + /** + *鐢熸垚绛惧悕璁块棶URL + * @param fileSignVo 瀵硅薄 + * @return 浣跨敤FileSignReturnVo杞寲 + */ + @PostMapping(value = "/cos/signUrl") + Result signUrl(@RequestBody FileSignVo fileSignVo); + + /** + *鐢熸垚涓婁紶绛惧悕 + * @param fileSignVo 瀵硅薄 + * @return 浣跨敤FileSignReturnVo杞寲 + */ + @PostMapping(value = "/cos/policy") + Result policy(@RequestBody FileSignVo fileSignVo); + } \ No newline at end of file -- Gitblit v1.8.0