Browse Source

去掉负载均衡服务

master
wxz 5 years ago
parent
commit
89fd63701e
  1. 35
      gov-access-lb/gov-access-lb-client/src/main/java/com/epmet/feign/fallback/GovAccessFeignClientFallBack.java

35
gov-access-lb/gov-access-lb-client/src/main/java/com/epmet/feign/fallback/GovAccessFeignClientFallBack.java

@ -1,35 +0,0 @@
package com.epmet.feign.fallback;
import com.epmet.commons.tools.constant.ServiceConstant;
import com.epmet.commons.tools.utils.ModuleUtils;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.form.InitDefaultOperationsFormDTO;
import com.epmet.dto.form.ListOpePermsFormDTO;
import com.epmet.feign.GovAccessFeignClient;
import org.springframework.stereotype.Component;
import java.util.Set;
/**
* @Description
* @Author sun
*/
@Component
public class GovAccessFeignClientFallBack implements GovAccessFeignClient {
@Override
public Result initDefaultOperationsForRoles(InitDefaultOperationsFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.GOV_ACCESS_SERVER, "initDefaultOperationsForRoles", formDTO);
}
@Override
public Result<Set<String>> listOperationPermissions(ListOpePermsFormDTO listOpePermsFormDTO) {
return ModuleUtils.feignConError(ServiceConstant.GOV_ACCESS_SERVER, "listOperationPermissions", listOpePermsFormDTO);
}
@Override
public Result getHost() {
return ModuleUtils.feignConError("lb-server", "getHost", null);
}
}
Loading…
Cancel
Save