| | |
| | | package com.ruoyi.other.api.factory; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.api.dto.TagListQueryDto; |
| | | import com.ruoyi.account.api.dto.UnitListQueryDto; |
| | | import com.ruoyi.account.api.vo.CouponListVOVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.other.api.domain.TCompany; |
| | | import com.ruoyi.other.api.domain.TCoupon; |
| | | import com.ruoyi.other.api.domain.TUserTag; |
| | | import com.ruoyi.other.api.domain.*; |
| | | import com.ruoyi.other.api.dto.TagListQueryDto; |
| | | import com.ruoyi.other.api.dto.UnitListQueryDto; |
| | | import com.ruoyi.other.api.feignClient.OtherClient; |
| | | import com.ruoyi.other.api.vo.CouponListVOVO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | |
| | | public OtherClient create(Throwable throwable) { |
| | | log.error("单位用失败:{}", throwable.getMessage()); |
| | | return new OtherClient() { |
| | | |
| | | @Override |
| | | public R<Integer> getAddCarIntegral() { |
| | | return R.fail("查询首次添加车辆可获积分:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<Page<TCompany>> queryUnitPage(UnitListQueryDto unitListQueryDto) { |
| | |
| | | public R<TCoupon> getCouponById(Integer id) { |
| | | return R.fail("查询优惠卷:"+throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<TEnterpriseUserApplication>> getTnterPrise() { |
| | | return R.fail("查询:"+throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<Region> getRegionBuyCode(String code) { |
| | | return R.fail("远程调用根据code查询名称失败:"+throwable.getMessage()); |
| | | } |
| | | }; |
| | | } |
| | | } |