Skip to content
Merged
Show file tree
Hide file tree
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 @@ -14,15 +14,24 @@ public class PlaceResponseDto {

private String nameKo;
private String nameEn;
private String nameJp;
private String nameCh;

private String descriptionKo;
private String descriptionEn;
private String descriptionJp;
private String descriptionCh;

private Double longitude;
private Double latitude;

private String imageUrl;
private String address;

private String addressKo;
private String addressEn;
private String addressJp;
private String addressCh;

private String contactInfo;
private String websiteUrl;

Expand All @@ -39,12 +48,19 @@ public PlaceResponseDto(Place place) {
this.regionId = place.getRegion() != null ? place.getRegion().getRegionId() : null;
this.nameKo = place.getNameKo();
this.nameEn = place.getNameEn();
this.nameJp = place.getNameJp();
this.nameCh = place.getNameCh();
this.descriptionKo = place.getDescriptionKo();
this.descriptionEn = place.getDescriptionEn();
this.descriptionJp = place.getDescriptionJp();
this.descriptionCh = place.getDescriptionCh();
this.longitude = place.getLongitude();
this.latitude = place.getLatitude();
this.imageUrl = place.getImageUrl();
this.address = place.getAddressKo();
this.addressKo = place.getAddressKo();
this.addressEn = place.getAddressEn();
this.addressJp = place.getAddressJp();
this.addressCh = place.getAddressCh();
this.contactInfo = place.getContactInfo();
this.websiteUrl = place.getWebsiteUrl();
this.kakaoPlaceId = place.getKakaoPlaceId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,38 @@
import com.mey.backend.domain.place.entity.Place;
import lombok.Getter;

import java.util.Map;

@Getter
public class PlaceSimpleResponseDto {

private Long id;
private String nameKo;
private String nameEn;
private String nameJp;
private String nameCh;
private Double longitude;
private Double latitude;
private Long regionId;
private Map<String, String> openingHours;
private String addressKo;
private String addressEn;
private String addressJp;
private String addressCh;

public PlaceSimpleResponseDto(Place place) {
this.id = place.getPlaceId();
this.nameKo = place.getNameKo();
this.nameEn = place.getNameEn();
this.nameJp = place.getNameJp();
this.nameCh = place.getNameCh();
this.longitude = place.getLongitude();
this.latitude = place.getLatitude();
this.regionId = place.getRegion().getRegionId();
this.openingHours = place.getOpeningHours();
this.addressKo = place.getAddressKo();
this.addressEn = place.getAddressEn();
this.addressJp = place.getAddressJp();
this.addressCh = place.getAddressCh();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,36 @@
import lombok.Getter;

import java.util.List;
import java.util.Map;

@Getter
@AllArgsConstructor
public class PlaceThemeResponseDto {
private Long id;
private String nameKo;
private String nameEn;
private String nameJp;
private String nameCh;
private List<String> themes;
private String imageUrl;
private Map<String, String> openingHours;
private String addressKo;
private String addressEn;
private String addressJp;
private String addressCh;

public PlaceThemeResponseDto(Place place) {
this.id = place.getPlaceId();
this.nameKo = place.getNameKo();
this.nameEn = place.getNameEn();
this.nameJp = place.getNameJp();
this.nameCh = place.getNameCh();
this.themes = place.getThemes();
this.imageUrl = place.getImageUrl();
this.openingHours = place.getOpeningHours();
this.addressKo = place.getAddressKo();
this.addressEn = place.getAddressEn();
this.addressJp = place.getAddressJp();
this.addressCh = place.getAddressCh();
}
}