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

[Feat] 클라이밍 채널 권한 위임 / 참여자 독서 현황 조회 / 메모 수정 API #45

Merged
merged 13 commits into from
Nov 7, 2024

Conversation

gkdudans
Copy link
Contributor

@gkdudans gkdudans commented Nov 2, 2024

🛠️ 구현 기능

  • 참여자 메모 수정 API
  • 참여자 독서 현황 조회 API
  • 클라이밍 채널 권한 위임 API
  • 클라이밍 채널 참여 취소 시 Role이 OWNER인 경우 에러 처리
  • 클라이밍 채널 상태 업데이트 메서드 수정

📝 구현 방법

  • 참여자 독서 현황 조회 시 읽지 않은 멤버의 ReadingStatus를 처리하기 위해 UNREAD 추가
  • ClimbingMember에 memo 필드가 존재하므로 수정 API만 구현 (메모가 없는 경우 / 삭제 시에는 null)

🎯 Resolve

@gkdudans gkdudans self-assigned this Nov 2, 2024
Copy link
Member

@crHwang0822 crHwang0822 left a comment

Choose a reason for hiding this comment

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

👍 수고하셨습니다! 코멘트 남겨뒀으니 확인 부탁드립니당
커밋은 가능한 API 단위로 해주시면 감사하겠습니닷 🙇 🙇‍♀️

@Component
@RequiredArgsConstructor
@Transactional
public class ClimbingMemberFacade {
Copy link
Member

Choose a reason for hiding this comment

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

💊 ClimbingMemberFacade를 따로 두지 않고 ClimbingFacade 하나로 처리해도 되지 않을까요? Server 도메인에서는 따로 구분하지 않았어서 말해봅니당

Copy link
Contributor Author

@gkdudans gkdudans Nov 5, 2024

Choose a reason for hiding this comment

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

ClimbingFacade가 너무 길어지기도 하고 Climbing 자체에 관련된 부분 / ClimbingMember 관련된 부분으로 나누어도 괜찮을 거 같아서 그렇게 만들었는데 하나로 합치는 게 좋을까욤

@gkdudans gkdudans merged commit 2817d36 into develop Nov 7, 2024
@@ -32,11 +32,10 @@ public Member getCurrentMember() throws CustomException {
return member;
}

@Transactional(readOnly = true)
public void getMemberStatus(Long kakaoId){
public void getMemberStatus(Long kakaoId) {
Copy link
Member

Choose a reason for hiding this comment

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

❓ 이거 계정 삭제 API랑 상관 있는 메소드인가요??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OAuth2SuccessHandler에서 토큰 발급 시 삭제한 멤버 예외 처리를 위해 사용하고 있습니단

Copy link
Member

Choose a reason for hiding this comment

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

아 커밋명이 계정삭제 API 오류 수정 이라 여쭤봤습니당
그리고 다음 PR 때 MeController랑 MeFacade 클래스 이름도 Member~. 로 수정해주시면 감사하겠습니닷 🙇‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants