Skip to content

Conversation

@MEOHIN
Copy link
Collaborator

@MEOHIN MEOHIN commented Sep 24, 2025

📢 기능 설명

상단 카드용 요약 데이터 조회 구현

연결된 issue

close #116



✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 이슈넘버를 적었는가?

- 사용자의 프로필에 표시될 게시글, 댓글, '좋아요' 수 통계를 조회하는 쿼리 메서드 구현
- `countMyPosts`: 사용자가 작성한 게시글의 총 개수 조회
- `countMyComments`: 사용자가 작성한 댓글의 총 개수 조회
- `countMyLikedPosts`: 사용자가 '좋아요'한 게시글의 총 개수 조회
- 사용자 프로필 응답 DTO(`ProfileResponseDto`)에 통계 정보 필드 추가
- `myPostCount`: 사용자가 작성한 게시글의 총 개수
- `myCommentCount`: 사용자가 작성한 댓글의 총 개수
- `myLikedPostCount`: 사용자가 '좋아요'한 게시글의 총 개수
- `ProfileResponseDto`에 정적 팩토리 메서드 `of()`를 구현하여 DTO 생성 로직을 캡슐화
- 프로필 조회 시 게시글, 댓글, '좋아요' 수 통계를 추가하여 DTO에 담아 반환하도록 기능 개선
@github-actions github-actions bot added the feat 새로운 기능 추가 label Sep 24, 2025
@MEOHIN MEOHIN merged commit 508b890 into dev Sep 24, 2025
1 check passed
@MEOHIN MEOHIN deleted the feat#116 branch September 24, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 상단 카드용 요약 조회 구현

3 participants