1 changed files with 0 additions and 35 deletions
@ -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…
Reference in new issue