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 @@ -577,7 +577,8 @@ public CourseResponse.RecommendationCreated recommendPlace(Long courseId, Long u
// 추천자(User) 조회
User recommender = userService.getActiveUser(userId);

PlaceRecommendationSource sourceEnum = PlaceRecommendationSource.MEMBER;
// 요청의 출처를 그대로 사용한다. 저장된 장소에서 불러온 추천이면 SAVED 로 기록된다.
PlaceRecommendationSource sourceEnum = request.source();

// Builder를 이용한 PlaceRecommendation 생성 (ERD 외래키/연관관계 100% 일치)
PlaceRecommendation recommendation = PlaceRecommendation.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public PlaceResDTO.GetPlaceSearch searchPlaces(
return placeSearchService.search(request);
}

@Operation(summary = "저장한 매거진 목록 조회")
@Operation(summary = "저장 목록 조회")
@GetMapping("/bookmarks")
public PlaceResDTO.GetBookmarkList getBookmarkList(
@AuthenticationPrincipal Long userId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ private static PlaceResDTO.GetBookmarkList.BookmarkItem toBookmarkItem(BookmarkP

return PlaceResDTO.GetBookmarkList.BookmarkItem.builder()
.bookmarkId(bookmarkPlace.getId())
.placeId(place.getPlaceId())
// 관광(KorService2) 출처 장소는 tour_content_id 가 곧 magazineId(=contentId).
// 네이버 출처 장소는 값이 없어 null (해당 항목은 매거진 상세로 이동 불가).
.magazineId(parseContentId(place.getTourContentId()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public record GetBookmarkList(
@Builder
public record BookmarkItem(
Long bookmarkId,
Long placeId, // 내부 Place PK. 코스 장소 추천/추가 시 이 값을 사용한다.
Long magazineId,
String thumbnailUrl,
String placeName,
Expand Down
Loading