Skip to content

feat/#33 초대 알림 보내기/초대 알림 수락or 거절하기#34

Merged
fivedasol merged 5 commits intomainfrom
feat/#33-notification
Feb 8, 2025
Merged

feat/#33 초대 알림 보내기/초대 알림 수락or 거절하기#34
fivedasol merged 5 commits intomainfrom
feat/#33-notification

Conversation

@bmh7190
Copy link
Contributor

@bmh7190 bmh7190 commented Feb 7, 2025

Related issue 🚀

Work Description 💚

  • 일단 초대 방식이 두 가지 있죠! 하나는 코드를 복사해서 카톡이든 메세지든 다른 방식으로 코드를 전달해서 코드를 입력하면 그룹원이 되는거고! 다른 하나는 그냥 바로 유저로 초대하는거죠! 그걸 구현했습니다!
  • 일정에 초대하면 알림(notification) 객체가 생성되고, 그걸 통해서 초대 거절 수락하는 방식입니다!
  • 알림은 초대 목적으로 사용할 수도 있지만, 다른 방식으로도 사용할 수 있을거 같아서 알림의 타입을 지정하도록 되어있어요!
  • 일정/발신자/수신자/대기 상태인 초대만 필터링해서 찾고, 바디로 받은 수락/거절 여부에 따라 이 알림 객체의 상태 거절/수락으로 바뀌는 겁니다!

PR 참고 사항

  • 지금은 바디로 요청하는 유저의 아이디(이메일)을 받게 되어있는데.. 개발 끝나면 전체적으로 수정해야할 듯 합니당
  • 포스트맨으로 다 돌아가는거 확인했어요!

@bmh7190 bmh7190 requested a review from fivedasol February 7, 2025 16:09
@bmh7190 bmh7190 self-assigned this Feb 7, 2025

class NotificationListView(APIView):
# permission_classes = [IsAuthenticated] # 로그인한 사용자만 접근 가능

Copy link
Contributor Author

Choose a reason for hiding this comment

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

여기에 나중에 알림 삭제 기능 같은거 넣으면 될 듯!


# 알림
path("notifications", NotificationListView.as_view(), name="notification-list"),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

지금은 급한대로 알림을 account 앱에 넣었지만,, 나중에 앱을 분리하는게 좋을 듯 합니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

좋습니다 나중에 notice 앱 따로 만들면 될거같아요!

@fivedasol
Copy link
Contributor

전체적인 코드에 이상없어보입니다!! 포스트맨에서 돌아갔으면 바로 머지해도될거같아요!

@fivedasol fivedasol merged commit 62b4906 into main Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 알림 기능 구현

2 participants