提交代码
This commit is contained in:
@@ -28,5 +28,7 @@ public interface RoleEngineerDevFeignClient {
|
||||
|
||||
@PostMapping("/getDevice")
|
||||
public HttpResult<List<String>> getDevice();
|
||||
@PostMapping("/getRoleproject")
|
||||
public HttpResult<List<String>> getRoleProject();
|
||||
|
||||
}
|
||||
|
||||
@@ -42,6 +42,12 @@ public class RoleEngineerDevClientFallbackFactory implements FallbackFactory<Rol
|
||||
log.error("{}异常,降级处理,异常为:{}","查询角色设备异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getRoleProject() {
|
||||
log.error("{}异常,降级处理,异常为:{}","查询角色项目异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user