Skip to content

Commit

Permalink
[merge] DateDetail dto 수정 - #112
Browse files Browse the repository at this point in the history
[FIX] DateDetail dto 수정 - #112
  • Loading branch information
gardening-y authored Jul 17, 2024
2 parents cd580eb + 7dad708 commit 6586d8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.AccessLevel;
import lombok.Builder;
import org.dateroad.date.domain.Date;
import org.dateroad.date.domain.Region;
import org.dateroad.place.domain.DatePlace;
import org.dateroad.tag.domain.DateTag;

Expand All @@ -18,7 +17,7 @@ public record DateDetailRes(
String title,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm a", timezone = "Asia/Seoul")
LocalTime startAt,
Region.SubRegion city,
String city,
List<TagGetRes> tags,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd", timezone = "Asia/Seoul")
LocalDate date,
Expand All @@ -40,6 +39,7 @@ public static DateDetailRes of(Date date, List<DateTag> tags, List<DatePlace> pl
.dateId(date.getId())
.title(date.getTitle())
.startAt(date.getStartAt())
.city(date.getCity().getDisplayName())
.tags(tagGetRes)
.date(date.getDate())
.places(placeGetRes)
Expand Down

0 comments on commit 6586d8a

Please sign in to comment.