Pu Zhibing
2024-10-16 c4664502dfdaffff555b532e65b51a57ac8b29c2
ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
@@ -4,6 +4,7 @@
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.TEnterpriseUserApplication;
import com.ruoyi.other.api.domain.TUserTag;
import com.ruoyi.other.api.dto.TagListQueryDto;
import com.ruoyi.other.api.dto.UnitListQueryDto;
@@ -31,6 +32,11 @@
    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) {
@@ -91,6 +97,11 @@
            public R<TCoupon> getCouponById(Integer id) {
                return R.fail("查询优惠卷:"+throwable.getMessage());
            }
            @Override
            public R<List<TEnterpriseUserApplication>> getTnterPrise() {
                return R.fail("查询:"+throwable.getMessage());
            }
        };
    }
}