Skip to content

Comments

feat: 유저픽 게시글 상세 조회 기능 구현#104

Merged
hisonghy merged 3 commits intodevelopfrom
feature/load-detail-post-99
Apr 22, 2025
Merged

feat: 유저픽 게시글 상세 조회 기능 구현#104
hisonghy merged 3 commits intodevelopfrom
feature/load-detail-post-99

Conversation

@hisonghy
Copy link
Member

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 유저픽 게시글 상세 조회 기능 구현했습니다
  • 유저픽 게시글, 게시글 이미지, 게시글 상품, 게시글 상품 이미지 정보를 모두 응답하도록 설계했습니다
  • 이 API 요청 시 게시글의 view_count(조회수) 필드가 +1 씩 업데이트 되도록 구현했습니다

🔍 참고사항

📚 기타

@hisonghy hisonghy added the ⚡ feature 새로운 기능 추가 및 수정 label Apr 21, 2025
@hisonghy hisonghy self-assigned this Apr 21, 2025
@hisonghy hisonghy requested a review from myqewr April 21, 2025 15:06
@hisonghy
Copy link
Member Author

post 를 조회할 때 (페이징 X, 목록 조회 X), queryDSL 을 사용해 관련된 엔티티(post_image, post_product, post_product_image) 들을 하나의 쿼리로 조회하고 DTO, VO 로 매핑해서 반환하는 방법 고려 (역방향 조인)
상세 조회 요청은 연관된 데이터들이 모두 필요하기 때문에 위의 방식도 괜찮은 선택일 수도 있음

@hisonghy hisonghy merged commit 1cfabce into develop Apr 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡ feature 새로운 기능 추가 및 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡ 유저픽 게시글 상세 조회 API 구현

2 participants