✨ feat: alert Api - 알림 읽음 처리 함수 구현 #121
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 변경 사항 개요
알림 읽음 처리를 담당하는 함수 putAlerts를 구현했습니다.
📝 상세 내용
alertApi.ts 파일에 PUT /users/{user_id}/alerts/{alert_id} 요청을 담당하는 함수 putAlerts를 구현했습니다.
이 함수는 prop으로 userId와 alertId를 받습니다.
🔗 관련 이슈
🖼️ 스크린샷(선택사항)
💡 참고 사항
🐸discussion🐸
다음 작업으로 알림 모달에서 알림 읽음 처리를 구현할 계획입니다. 다만, 논의하고 싶은 점이 있습니다.
알림창을 키면 나와있는 알림을 그냥 모두 읽음 처리를 할까요?
아니면 다른 방식으로 구현할까요? (ex. 마우스를 갖다대면 읽음처리 / 클릭 시 읽음 처리)
생각나는 방식이 있으시거나 원하는 방식에 대해 댓글 부탁드립니다~!