Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#381 [feat] 관리자 페이지 멤버관련 수정 #382

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Conversation

sohyundoh
Copy link
Member

✒️ 관련 이슈번호

Key Changes 🔑

  1. 관리자 페이지 멤버 모임장 여부 추가하였습니다.
  2. 댓글 개수에서 대댓글 개수도 포함할 수 있게 변경하였습니다.

To Reviewers 📢

@sohyundoh sohyundoh self-assigned this Jun 7, 2024
Copy link
Contributor

@parkheeddong parkheeddong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!! 고생하셨습니닷 👍 👍


public int findCommentCountByWriterNameId(
final Long writerNameId
) {
return commentRepository.countByWriterNameId(writerNameId);
return commentRepository.countByWriterNameId(writerNameId) + commentReplyRetriever.countByWriterNameId(writerNameId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P5) 단순 궁금증인데 서비스명을 commentReplyRetreiver로 명명하신 이유가 있나유?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Component로 빈 등록을 했기 때문에 Service라는 명을 사용하지 않고자 했는데요! 그렇다고 Getter를 하기엔 기존에 getter 함수와 이름이 충돌했습니다! 그래서 찾는다는 의미에 Retriever로 명명했습니다!

@sohyundoh sohyundoh merged commit f1c7bf1 into develop Jun 11, 2024
1 check passed
@sohyundoh sohyundoh deleted the feat/#381 branch June 11, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 관리자 페이지 멤버 모임장 여부 추가
2 participants