Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: placeDto 없는 데이터 빈 배열로 리팩토링 #21

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public static PlaceDto from(final Place place) {
.address(place.getAddress())
.latitude(place.getLatitude())
.longitude(place.getLongitude())
.images(List.of())
.reviewTags(List.of())
.phone(place.getPhone())
.links(CustomListUtils.mapTo(place.getLinks().getValues(), LinkDto::from))
.businessHours(CustomListUtils.mapTo(place.getBusinessHours().getValues(), BusinessHourDto::from))
Expand All @@ -80,6 +82,7 @@ public static PlaceDto of(final Place place, final List<Image> images) {
.latitude(place.getLatitude())
.longitude(place.getLongitude())
.images(CustomListUtils.mapTo(images, ImageDto::from))
.reviewTags(List.of())
.phone(place.getPhone())
.links(CustomListUtils.mapTo(place.getLinks().getValues(), LinkDto::from))
.businessHours(CustomListUtils.mapTo(place.getBusinessHours().getValues(), BusinessHourDto::from))
Expand All @@ -100,6 +103,7 @@ public static PlaceDto of(
.longitude(place.getLongitude())
.images(CustomListUtils.mapTo(images, ImageDto::from))
.phone(place.getPhone())
.ratingAverage(ratingAvg)
.links(CustomListUtils.mapTo(place.getLinks().getValues(), LinkDto::from))
.businessHours(CustomListUtils.mapTo(place.getBusinessHours().getValues(), BusinessHourDto::from))
.reviewTags(CustomListUtils.mapTo(reviewTags, ReviewTagDto::from))
Expand Down
Loading