Skip to content

Commit

Permalink
[fix] getDateDetail Service dto 응답 스펙 변경 - #85
Browse files Browse the repository at this point in the history
  • Loading branch information
gardening-y committed Jul 12, 2024
1 parent 3fa9059 commit abb8f0c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public record DateDetailRes(
List<TagGetRes> tags,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd", timezone = "Asia/Seoul")
LocalDate date,
List<PlaceGetRes> places
List<PlaceGetRes> places,
int dDay
) {

public static DateDetailRes of(Date date, List<DateTag> tags, List<DatePlace> places) {
public static DateDetailRes of(Date date, List<DateTag> tags, List<DatePlace> places, int dDay) {

List<TagGetRes> tagGetRes = tags.stream()
.map(TagGetRes::of)
Expand All @@ -41,6 +42,7 @@ public static DateDetailRes of(Date date, List<DateTag> tags, List<DatePlace> pl
.tags(tagGetRes)
.date(date.getDate())
.places(placeGetRes)
.dDay(dDay)
.build();
}
}

0 comments on commit abb8f0c

Please sign in to comment.