Skip to content

Commit

Permalink
[Feat] 장소 x, y 좌표 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonInbae committed Oct 1, 2024
1 parent 7057f83 commit d3ccf90
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ApiResponse<UserInfo> retrieveOrCreateUser(Map<String, Object> userInfo)
// User newUser = new User();
// newUser.setId(uuid);
// newUser.setEmail(email);
// newUser.setNickname(name);
// newUser.setNickname(title);
// return userRepository.save(newUser);
// });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public record BlueResponseDto(
Long id,
String name,
String title,
String xMap,
String yMap,
String address,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ public ApiResponse<List<PartCafeResponseDto>> getCafesHome() {
arr[0] + " " + arr[1],
cafe.getTitle(),
cafe.getContentId(),
cafe.getCafeImages().isEmpty() ? null : cafe.getCafeImages().get(0).getOriginimgurl()
cafe.getCafeImages().isEmpty() ? null : cafe.getCafeImages().get(0).getOriginimgurl(),
cafe.getXMap(),
cafe.getYMap()
);
dtos.add(responseDto);
}
Expand All @@ -400,7 +402,9 @@ public ApiResponse<List<PartCafeResponseDto>> getCafesByKeyword(String keyword)
arr[0] + " " + arr[1],
cafe.getTitle(),
cafe.getContentId(),
cafe.getCafeImages().isEmpty() ? null : cafe.getCafeImages().get(0).getOriginimgurl()
cafe.getCafeImages().isEmpty() ? null : cafe.getCafeImages().get(0).getOriginimgurl(),
cafe.getXMap(),
cafe.getYMap()
);
partCafeResponseDtoList.add(partCafeResponseDto);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ public record PartCafeResponseDto(
String address,
String title,
String contentid,
String img
String img,
String xMap,
String yMap
) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public ApiResponse<List<PartRestaurantResponseDto>> homerestaurant() {
arr[0] + " " + arr[1],
restaurant.getTitle(),
restaurant.getContentId(),
restaurant.getImages().isEmpty() ? null : restaurant.getImages().get(0).getOriginimgurl()
restaurant.getImages().isEmpty() ? null : restaurant.getImages().get(0).getOriginimgurl(),
restaurant.getXMap(),
restaurant.getYMap()
);
dtos.add(responseDto);
}
Expand Down Expand Up @@ -420,7 +422,9 @@ public ApiResponse<List<PartRestaurantResponseDto>> getRestaurantsByKeyword(Stri
arr[0] + " " + arr[1],
restaurant.getTitle(),
restaurant.getContentId(),
restaurant.getImages().isEmpty() ? null : restaurant.getImages().get(0).getOriginimgurl()
restaurant.getImages().isEmpty() ? null : restaurant.getImages().get(0).getOriginimgurl(),
restaurant.getXMap(),
restaurant.getYMap()
);
partRestaurantResponseDtoList.add(restaurantResponseDto);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public record PartRestaurantResponseDto(
String address,
String title,
String contentid,
String img
String img,
String xMap,
String yMap
) {
// private String address;
// private String title;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@Data
public class ItemDTO {
private List<String> tourImage;
private String name;
private String title;
private String category;
private String address;
private String comment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public TourDTO onepost(Long postid) {
tourDTO.setTags(tourPostHashTagRepository.findBytourCourseForHashTag(course));
tourDTO.setContentid(course.getContentId());
for(TourPostItem item: tourPostItemRepository.findByuserTourCourse(course)){
itemDTO.setName(item.getName());
itemDTO.setTitle(item.getName());
itemDTO.setCategory(item.getCategory());
itemDTO.setAddress(item.getAddress());
itemDTO.setComment(itemDTO.getComment());
Expand Down

0 comments on commit d3ccf90

Please sign in to comment.