diff --git a/application/src/main/java/org/depromeet/spot/application/stadium/StadiumReadController.java b/application/src/main/java/org/depromeet/spot/application/stadium/StadiumReadController.java index 4eb01c74..46f31427 100644 --- a/application/src/main/java/org/depromeet/spot/application/stadium/StadiumReadController.java +++ b/application/src/main/java/org/depromeet/spot/application/stadium/StadiumReadController.java @@ -46,7 +46,7 @@ public List findAllStadiums() { public List findAllNames() { List infos = stadiumReadUsecase.findAllNames(); return infos.stream() - .map(t -> new StadiumNameInfoResponse(t.getId(), t.getName())) + .map(t -> new StadiumNameInfoResponse(t.getId(), t.getName(), t.isActive())) .toList(); } diff --git a/application/src/main/java/org/depromeet/spot/application/stadium/dto/response/StadiumNameInfoResponse.java b/application/src/main/java/org/depromeet/spot/application/stadium/dto/response/StadiumNameInfoResponse.java index 7606a081..e6d6f47c 100644 --- a/application/src/main/java/org/depromeet/spot/application/stadium/dto/response/StadiumNameInfoResponse.java +++ b/application/src/main/java/org/depromeet/spot/application/stadium/dto/response/StadiumNameInfoResponse.java @@ -1,3 +1,3 @@ package org.depromeet.spot.application.stadium.dto.response; -public record StadiumNameInfoResponse(Long id, String name) {} +public record StadiumNameInfoResponse(Long id, String name, boolean isActive) {} diff --git a/infrastructure/ncp/src/main/java/org/depromeet/spot/ncp/resources/application.yaml b/infrastructure/ncp/src/main/resources/application-ncp.yaml similarity index 100% rename from infrastructure/ncp/src/main/java/org/depromeet/spot/ncp/resources/application.yaml rename to infrastructure/ncp/src/main/resources/application-ncp.yaml diff --git a/usecase/src/main/java/org/depromeet/spot/usecase/port/in/stadium/StadiumReadUsecase.java b/usecase/src/main/java/org/depromeet/spot/usecase/port/in/stadium/StadiumReadUsecase.java index be5bd764..d80b5e74 100644 --- a/usecase/src/main/java/org/depromeet/spot/usecase/port/in/stadium/StadiumReadUsecase.java +++ b/usecase/src/main/java/org/depromeet/spot/usecase/port/in/stadium/StadiumReadUsecase.java @@ -49,5 +49,6 @@ class StadiumInfoWithSeatChart { class StadiumNameInfo { private final Long id; private final String name; + private final boolean isActive; } } diff --git a/usecase/src/main/java/org/depromeet/spot/usecase/service/stadium/StadiumReadService.java b/usecase/src/main/java/org/depromeet/spot/usecase/service/stadium/StadiumReadService.java index 471d24e2..82ca5cb3 100644 --- a/usecase/src/main/java/org/depromeet/spot/usecase/service/stadium/StadiumReadService.java +++ b/usecase/src/main/java/org/depromeet/spot/usecase/service/stadium/StadiumReadService.java @@ -55,7 +55,9 @@ public List findAllStadiums() { @Override public List findAllNames() { List stadiums = stadiumRepository.findAll(); - return stadiums.stream().map(s -> new StadiumNameInfo(s.getId(), s.getName())).toList(); + return stadiums.stream() + .map(s -> new StadiumNameInfo(s.getId(), s.getName(), s.isActive())) + .toList(); } @Override