From 27de7564c5d6e7ec1522bdd6f67f6b5348942561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Fri, 19 Apr 2024 14:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=A2=9E=E5=8A=A0=20RemoteFileServ?= =?UTF-8?q?ice.java=20=E6=96=87=E4=BB=B6=E4=BC=A0=E8=BE=93=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/api/feign/RemoteFileService.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pigx-upms/pigx-upms-api/src/main/java/com/pig4cloud/pigx/admin/api/feign/RemoteFileService.java diff --git a/pigx-upms/pigx-upms-api/src/main/java/com/pig4cloud/pigx/admin/api/feign/RemoteFileService.java b/pigx-upms/pigx-upms-api/src/main/java/com/pig4cloud/pigx/admin/api/feign/RemoteFileService.java new file mode 100644 index 000000000..02120b00f --- /dev/null +++ b/pigx-upms/pigx-upms-api/src/main/java/com/pig4cloud/pigx/admin/api/feign/RemoteFileService.java @@ -0,0 +1,20 @@ +package com.pig4cloud.pigx.admin.api.feign; + +import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants; +import feign.Response; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; + +/** + * 文件读取 + * + * @author lengleng + * @date 2024/3/14 + */ +@FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.UPMS_SERVICE) +public interface RemoteFileService { + + @GetMapping("/sys-file/oss/file") + Response getFile(@RequestParam String fileName); +}