From 3244b550596e0330031b3f4547356927df83b0ad Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 19 五月 2025 11:48:35 +0800 Subject: [PATCH] 修改bug --- ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/VipClient.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 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 b2ca8d3..6ac6918 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 @@ -1,5 +1,6 @@ package com.ruoyi.other.api.feignClient; +import com.ruoyi.account.api.dto.GiveVipDto; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.core.web.domain.AjaxResult; @@ -8,13 +9,16 @@ 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.RequestBody; import org.springframework.web.bind.annotation.RequestParam; + +import java.util.List; /** * 会员服务 * @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 { /** @@ -31,9 +35,16 @@ * @return */ @PostMapping("/vip/getInfo1") - public R<TVip> getInfo1(@RequestParam("id") Integer id); + R<TVip> getInfo1(@RequestParam("id") Integer id); + + @PostMapping("/vip/getAllVip") + R<List<TVip>> getAllVip(); @PostMapping(value = "/vip/getInfo") R<TVip> getInfo(@RequestParam("id") Integer id); + @PostMapping(value = "/t-app-user/user/give/vip") + R giveVip(@RequestBody GiveVipDto giveVipDto); + @GetMapping(value = "/vip/getVipList") + R<List<TVip>> getVipList(); } -- Gitblit v1.7.1