추가 기능 - 알림 기능 명세서 #19
Chiman2937
announced in
Announcements
Replies: 1 comment 1 reply
-
|
문서로 잘 정리해주셔서 감사합니다~
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
기능 명세서는 하기의 조건 기준으로 작성되었습니다.
isRead=false)가 증가한다./notifications페이지로 접속해야 알림 내용을 확인할 수 있다.읽지 않은 알림갯수는 사용자가알림 내용을 직접 확인하거나모두 읽음 처리버튼을 클릭해야 변경된다.내용 요약
1. 초기 로드 동작(클라이언트)
1.1 A가 웹페이지에 처음 접속했을 때/페이지가 새로고침 될 때
1. 사용자 인증 상태 확인
2. 로그인 상태인 경우
(1) CowBell에 읽지 않은 알림 갯수를 표시하기 위해 API를 호출합니다.
/notifications/unread-countisRead=false인 알림의 갯수를 Header에 표시(2) SSE 구독을 시작합니다.
/notifications/subscribe2. 기본 시나리오
상황: B가 A를 팔로우 할 때
2.1 A가 웹페이지에 접속 중일 때(SSE Subscribe 상태)
isRead: false)2.2 A가 웹페이지에 접속 중이 아닐 때
isRead: false)3. 알림 페이지 이용 시나리오
3.1 A가 알림페이지(
/notifications)에 접속한 경우(1) 알림 목록을 불러옵니다.
GET
/notifications/list프론트엔드
isRead=false인 알람은 BackGround 색상이 존재합니다.isRead=false인 알림 데이터를 클릭하면 알림이 읽음 처리 됩니다. (POSTnotifications/read)결론
/notifications/unread-count)/notifications/list)/notifications/readall)/notifications/read)Beta Was this translation helpful? Give feedback.
All reactions