This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user