diff --git a/src/main/java/makar/dev/converter/UserConverter.java b/src/main/java/makar/dev/converter/UserConverter.java index 0a54b74..b9ea62c 100644 --- a/src/main/java/makar/dev/converter/UserConverter.java +++ b/src/main/java/makar/dev/converter/UserConverter.java @@ -10,6 +10,7 @@ public class UserConverter { public static UserResponse.HomeDto toRouteSetHomeDto(NotiResponse.NotiListDto notiListDto, Route route){ return UserResponse.HomeDto.builder() .isRouteSet(true) + .routeId(route.getRouteId()) .sourceStationName(route.getSourceStation().getStationName()) .destinationStationName(route.getDestinationStation().getStationName()) .makarTime(route.getSchedule().getSourceTime()) @@ -22,6 +23,7 @@ public static UserResponse.HomeDto toRouteSetHomeDto(NotiResponse.NotiListDto no public static UserResponse.HomeDto toRouteUnSetHomeDto(){ return UserResponse.HomeDto.builder() .isRouteSet(false) + .routeId(0L) .sourceStationName(null) .destinationStationName(null) .makarTime(null) diff --git a/src/main/java/makar/dev/dto/response/UserResponse.java b/src/main/java/makar/dev/dto/response/UserResponse.java index 24a1602..de3f0f3 100644 --- a/src/main/java/makar/dev/dto/response/UserResponse.java +++ b/src/main/java/makar/dev/dto/response/UserResponse.java @@ -14,6 +14,7 @@ public class UserResponse { @NoArgsConstructor @AllArgsConstructor public static class HomeDto { + private Long routeId; private boolean isRouteSet; private String sourceStationName; private String destinationStationName;