Skip to content

Conversation

@wonslee
Copy link
Member

@wonslee wonslee commented Nov 10, 2023

📌 PR 요약

FCM 기능 구현했습니다..!
너무 늦었지만... 구현해둔게 아까워서 마무리했어요
조금 불안해서 졸업 전시 끝나고 머지하는게 좋을 것 같긴 합니다

🌱 작업한 내용

  • FCM 알림 설정
  • 댓글 대댓글 작성시 FCM 알림 기능
  • 알림 리스트 조회, 읽음 처리 API

🌱 PR 포인트

  • 로그인, 회원가입 요청 DTO에 fcm 토큰 필드 추가

📸 스크린샷

스크린샷
파일첨부바람
image
image

📮 관련 이슈

  • Resolved: #이슈번호

@wonslee wonslee added the 🌿 feature 새로운 기능 혹은 코드 label Nov 10, 2023
@wonslee wonslee requested a review from 0sunset0 November 10, 2023 22:42
@wonslee wonslee self-assigned this Nov 10, 2023
@0sunset0
Copy link
Collaborator

혹시 월요일에 리뷰해도 될까요,,,,,,,?🐸🐔🐰

@wonslee
Copy link
Member Author

wonslee commented Nov 13, 2023

넵 졸업전시 이후에 반영할거라 천천히 해주세유🦧

Copy link
Collaborator

@0sunset0 0sunset0 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 +61 to +62
@OneToMany(mappedBy = "receiver")
private List<Notification> notificationList = new ArrayList<>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

근데 '유저-알림' 관계를 양방향으로 하는 이유가 뭘까요??
확장성을 고려한 걸까요?


// 내 알림 리스트 조회
public List<NotificationResponse> getMyNotifications(Long userId) {
List<Notification> notificationList = notificationRepository.findAllByReceiverId(1L);
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기 1L인 이유가 있을까요~??

package com.shy_polarbear.server.domain.notification.model;

enum NotificationReceiverType {
COMMON, AUTHOR
Copy link
Collaborator

Choose a reason for hiding this comment

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

알림 받는 사람이 왜 받는지 쉽게 알게 하려고 enum 만드신거 맞죠!?

.post(RequestBody.create(message, MediaType.parse("application/json; charset=urf-8")))
.build();

try (Response response = okHttpClient.newCall(request).execute()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

FirebaseMessaging.getInstance().sendAsync(fcmMessage).get();
이걸 사용할 수는 없는 건가요?? - fcm 잘 모르는 노을😅

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.

3 participants