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

Auth, Notification 도메인 리팩토링 #538

Merged
merged 15 commits into from
Sep 24, 2024
Merged

Conversation

ksk0605
Copy link
Contributor

@ksk0605 ksk0605 commented Sep 9, 2024

PR의 목적이 무엇인가요?

Auth, Notification 서비스의 복잡성을 개선하기 위해 Implement layer 를 도입하여 리팩토링

이슈 ID는 무엇인가요?

설명

  • Auth
    • implement 레이어 추가
  • Notification
    • implement 레이어 추가
    • 불필요 함수 제거

질문 혹은 공유 사항 (Optional)

Copy link
Contributor

@ay-eonii ay-eonii left a comment

Choose a reason for hiding this comment

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

테바짱굿~ 깔끔하네요 👍👍👍👍

Comment on lines +16 to +22
public List<String> findAllByRecipientId(long recipientId) {
return fcmTokenRepository.findAllTokenByMemberId(recipientId);
}

public List<String> findAllByRecipients(List<Long> recipients) {
return fcmTokenRepository.findAllTokenByMemberIds(recipients);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분은 일급컬렉션으로 만들지 않아도 될까요??

memberNotifications
.stream()
.map(MemberNotification::getMoudaNotification)
.map(NotificationFindAllResponse::from)
Copy link
Contributor

Choose a reason for hiding this comment

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

얘는 왜 from 이져/??

Member newMember = Member.builder()
.kakaoId(kakaoId)
.build();
memberWriter.append(newMember);
Copy link
Contributor

Choose a reason for hiding this comment

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

save 대신에 append 라는 메서드명을 사용한 이유가 뭘까요?


private final KakaoOauthClient kakaoOauthClient;

// TODO : 단위 테스트 작성 -> 외부 API는 어떻게 테스트하는 것이 좋은가? 해야하는가?
Copy link
Contributor

Choose a reason for hiding this comment

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

투두투두투두투두투두투두투두투두투두투두

Copy link
Contributor

@hoyeonyy hoyeonyy left a comment

Choose a reason for hiding this comment

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

테바오,,테바오,,,오바테,,테오바,,,오바,,

@Mingyum-Kim Mingyum-Kim merged commit 93c869a into develop-backend Sep 24, 2024
1 check passed
@Mingyum-Kim Mingyum-Kim deleted the refactor/#526 branch September 24, 2024 07:59
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.

4 participants