提交代码

This commit is contained in:
huangzj
2023-07-19 14:58:13 +08:00
parent 285545ecd0
commit 11cd82dc0f
32 changed files with 365 additions and 68 deletions

View File

@@ -28,5 +28,7 @@ public interface RoleEngineerDevFeignClient {
@PostMapping("/getDevice")
public HttpResult<List<String>> getDevice();
@PostMapping("/getRoleproject")
public HttpResult<List<String>> getRoleProject();
}

View File

@@ -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);
}
};
}
}