-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : 버스 버저닝 V2 updated_at 추가 (#446)
* feat : 버스 timetable v2 추가 * feat : 버스 버저닝 timetable/v2 서비스 구현 * test : 버스 시간표 조회 v2 테스트 추가 * chore : 버스 v2 테스트 수정 * chore : 사용하지 않는 import 제거 * chore : log() 제거 * chore : 스웨거 설명 추가 (cherry picked from commit f778f5e)
- Loading branch information
1 parent
adc53f0
commit 9ef08ff
Showing
5 changed files
with
133 additions
and
9 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
30 changes: 30 additions & 0 deletions
30
src/main/java/in/koreatech/koin/domain/bus/dto/BusTimetableResponse.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package in.koreatech.koin.domain.bus.dto; | ||
|
||
import static com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy; | ||
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
|
||
import in.koreatech.koin.domain.bus.model.BusTimetable; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@JsonNaming(SnakeCaseStrategy.class) | ||
public record BusTimetableResponse( | ||
@Schema(description = "버스 시간표", example = """ | ||
{ | ||
"route_name": "주말(14시 35분)", | ||
"arrival_info": { | ||
"nodeName": "터미널(신세계 앞 횡단보도)", | ||
"arrivalTime": "14:35" | ||
} | ||
} | ||
""", requiredMode = NOT_REQUIRED) | ||
List<? extends BusTimetable> busTimetable, | ||
|
||
@Schema(description = "업데이트 시각", example = "2024-04-20 18:00:00", requiredMode = NOT_REQUIRED) | ||
LocalDateTime updatedAt | ||
) { | ||
} |
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