package com.yuchen.saas.park.api.feign.imspect;

import com.yuchen.saas.park.api.util.SaasParkFeignFallbackUtils;
import feign.hystrix.FallbackFactory;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.stereotype.Component;

/**
 * @author zhouhanwei
 * @create 2024/4/9 16:17
 */
@Component
public class AdminPlanTaskFallback implements FallbackFactory<AdminPlanTaskFeign> {

    @Override
    public AdminPlanTaskFeign create(Throwable throwable) {
        return reqDTO -> SaasParkFeignFallbackUtils.printLogAndReturn(throwable);
    }
}
