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; 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.RequestBody; import org.springframework.web.bind.annotation.RequestParam; /** * 会员服务 * @author ruoyi */ @FeignClient(contextId = "VipClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = VipFallbackFactory.class) public interface VipClient { /** * 获取最高抵扣、最低起步价,最高折扣的会员 * @param type 1=最高抵扣、2=最低起步价,3=最高折扣 * @return */ @PostMapping(value = "/vip/getVipInfoByType") R getVipInfoByType(@RequestParam("type") Integer type); /** * 远程调用 * @param id * @return */ @PostMapping("/vip/getInfo1") R getInfo1(@RequestParam("id") Integer id); @PostMapping(value = "/vip/getInfo") R getInfo(@RequestParam("id") Integer id); @PostMapping(value = "/t-app-user/user/give/vip") R giveVip(@RequestBody GiveVipDto giveVipDto); }