From 5e8d5b44b21f5cb5f0f6a504f3a6f7f18200fdde Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 09 九月 2024 18:20:03 +0800
Subject: [PATCH] 合并代码
---
ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/VipClient.java | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/VipClient.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/VipClient.java
index 2b550e3..7d33fd2 100644
--- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/VipClient.java
+++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/VipClient.java
@@ -6,6 +6,7 @@
import com.ruoyi.other.api.domain.TVip;
import com.ruoyi.other.api.factory.VipFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@@ -13,7 +14,7 @@
* 会员服务
* @author ruoyi
*/
-@FeignClient(contextId = "VipClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = VipFallbackFactory.class)
+@FeignClient(contextId = "VipClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = VipFallbackFactory.class)
public interface VipClient {
/**
@@ -22,10 +23,19 @@
* @return
*/
@PostMapping(value = "/vip/getVipInfoByType")
- R<TVip> getVipInfoByType(@RequestParam Integer type);
+ R<TVip> getVipInfoByType(@RequestParam("type") Integer type);
+
+ /**
+ * 远程调用
+ * @param id
+ * @return
+ */
+ @PostMapping("/vip/getInfo1")
+ R<TVip> getInfo1(@RequestParam("id") Integer id);
+
@PostMapping(value = "/vip/getInfo")
- R<TVip> getInfo(@RequestParam Integer id);
+ R<TVip> getInfo(@RequestParam("id") Integer id);
}
--
Gitblit v1.7.1