✨ 增加 RemoteFileService.java 文件传输工具类

This commit is contained in:
冷冷 committed 2024-04-20 21:56:33 +08:00
1 parent b77d318f07
commit 27de7564c5
1 file changed
+20
@@ -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);
}