package com.kidgrow.oprationcenter.feign.fallback;
|
|
|
import com.kidgrow.oprationcenter.feign.SaasClientPayFeignService;
|
import feign.hystrix.FallbackFactory;
|
import org.springframework.stereotype.Component;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: <br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/11/16 15:58 <br>
|
* @Author: <a href="78125310@kidgrow.com">dougang</a>
|
*/
|
@Component
|
public class SaasClientPayFallbackFactory implements FallbackFactory<SaasClientPayFeignService> {
|
|
|
@Override
|
public SaasClientPayFeignService create(Throwable throwable) {
|
return new SaasClientPayFeignService() {
|
@Override
|
public List<Map<String, Object>> getDepartmentPayStateList(Map<String, Object> map) {
|
return null;
|
}
|
};
|
}
|
}
|