package com.zcloud.service.remote;

import com.zcloud.util.ReturnMap;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteCorpFallbackFactory implements FallbackFactory<RemoteCorpService> {

    @Override
    public RemoteCorpService create(Throwable throwable) {
//        return ParamsJson -> ReturnMap.error(500, "调用失败：1111"+throwable.getMessage());
        return new CorpFeignClientFallback(throwable);
    }
}
