-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- length 제약조건 추가 - request에 validate 추가 - response enum -> String 반환하도록 변경 - updownCode 오탈자 수정
- Loading branch information
Showing
10 changed files
with
56 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 6 additions & 9 deletions
15
server/src/main/java/com/talkka/server/subway/dto/SubwayConfusionRespDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
server/src/main/java/com/talkka/server/subway/dto/SubwayStationRespDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
package com.talkka.server.subway.dto; | ||
|
||
import com.talkka.server.subway.dao.SubwayStationEntity; | ||
import com.talkka.server.subway.enums.Line; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record SubwayStationRespDto( | ||
Long stationId, | ||
String stationName, | ||
String frCode, | ||
Line line | ||
String stationCode, | ||
String lineCode | ||
) { | ||
public static SubwayStationRespDto of(SubwayStationEntity subwayStationEntity) { | ||
return new SubwayStationRespDto( | ||
subwayStationEntity.getId(), | ||
subwayStationEntity.getStationName(), | ||
subwayStationEntity.getFrCode(), | ||
subwayStationEntity.getLine() | ||
subwayStationEntity.getStationCode(), | ||
subwayStationEntity.getLine().getCode() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters