Skip to content

Commit

Permalink
!hotfix: 홈 화면 조회 API routeId 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
daeun084 committed Aug 1, 2024
1 parent 19745e9 commit 95b3cf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/makar/dev/converter/UserConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/main/java/makar/dev/dto/response/UserResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95b3cf1

Please sign in to comment.