| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.other.api.domain.VipGood; |
| | | import com.ruoyi.other.api.domain.VipSetting; |
| | | import com.ruoyi.other.api.feignClient.VipGoodClient; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @Override |
| | | public VipGoodClient create(Throwable cause) { |
| | | return new VipGoodClient() { |
| | | @GetMapping("/vip-good/getVipGoodsByVipId") |
| | | @Override |
| | | public R<List<VipGood>> getVipGoodsByVipId(Integer vipId) { |
| | | return R.fail("根据会员id获取会员购买商品失败:" + cause.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<VipSetting> getVipSettingById(Integer id) { |
| | | return R.fail("根据会员id获取会员失败:" + cause.getMessage()); |
| | | |
| | | } |
| | | }; |
| | | } |
| | | } |