Skip to content

Commit

Permalink
[BE] feat: API 응답에 위도, 경도 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xeoxaxeo committed Feb 20, 2024
1 parent 5cd7668 commit 4e016fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ public class CafeBasicInfoDto {
private List<Long> businessHourId;
private Map<String, String> businessHour = new HashMap<>();
private String imageUrl;
private String latitude;
private String longitude;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ public class CafeDetailInfoDto {
private List<Long> commentId;
private List<String> comment;
private String imageUrl;
private String latitude;
private String longitude;
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ public List<CafeBasicInfoDto> getAllCafesBasicInfo() {
dto.setHashtag(cafe.getHashtag().stream().map(HashtagEntity::getTagName).collect(Collectors.toList()));
dto.setBusinessStatus(getBusinessStatus(cafe));
dto.setImageUrl(cafe.getImageUrl());

dto.setLatitude(cafe.getLatitude());
dto.setLongitude(cafe.getLongitude());
List<Long> businessHourId = new ArrayList<>();
Map<String, String> businessHour = new HashMap<>();
String businessStatus = "";
Expand Down Expand Up @@ -165,6 +166,8 @@ public List<CafeBasicInfoDto> searchCafesByKeyword(String keyword) {
dto.setHashtag(cafe.getHashtag().stream().map(HashtagEntity::getTagName).collect(Collectors.toList()));
dto.setBusinessStatus(getBusinessStatus(cafe));
dto.setImageUrl(cafe.getImageUrl());
dto.setLatitude(cafe.getLatitude());
dto.setLongitude(cafe.getLongitude());

List<Long> businessHourId = new ArrayList<>();
Map<String, String> businessHour = new HashMap<>();
Expand Down Expand Up @@ -204,6 +207,8 @@ public List<CafeBasicInfoDto> searchCafesByHashtag(Long hashtagId) {
dto.setHashtag(cafe.getHashtag().stream().map(HashtagEntity::getTagName).collect(Collectors.toList()));
dto.setBusinessStatus(getBusinessStatus(cafe));
dto.setImageUrl(cafe.getImageUrl());
dto.setLatitude(cafe.getLatitude());
dto.setLongitude(cafe.getLongitude());

List<Long> businessHourId = new ArrayList<>();
Map<String, String> businessHour = new HashMap<>();
Expand Down Expand Up @@ -248,6 +253,8 @@ public CafeDetailInfoDto getCafeDetailInfo(Long cafeId) {
dto.setStudentDiscount(cafe.getStudentDiscount());
dto.setBestMenu(cafe.getBestMenu());
dto.setImageUrl(cafe.getImageUrl());
dto.setLatitude(cafe.getLatitude());
dto.setLongitude(cafe.getLongitude());

List<Long> businessHourId = new ArrayList<>();
Map<String, String> businessHour = new HashMap<>();
Expand Down
File renamed without changes.

0 comments on commit 4e016fc

Please sign in to comment.