30 lines
910 B
Java
30 lines
910 B
Java
package jnpf.cultivate.fallback;
|
|
|
|
import jnpf.cultivate.FtbCultivateIdentifyApi;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.cloud.openfeign.FallbackFactory;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Slf4j
|
|
@Component
|
|
public class FtbCultivateIdentifyApiFallback implements FallbackFactory<FtbCultivateIdentifyApi> {
|
|
|
|
@Override
|
|
public FtbCultivateIdentifyApi create(Throwable cause) {
|
|
cause.printStackTrace();
|
|
return new FtbCultivateIdentifyApi() {
|
|
@Override
|
|
public Boolean setIdentifyBeOverdue(String tenantId) {
|
|
log.error("setIdentifyBeOverdue调用失败...");
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public Boolean setIdentifyRemind(String tenantId) {
|
|
log.error("setIdentifyRemind调用失败...");
|
|
return false;
|
|
}
|
|
};
|
|
}
|
|
}
|