Skip to content

알림 API 연동 #202

Closed
Closed

Description

@xeoxxn

어떤 기능인가요?

알림 화면을 서버 알림함 API와 연동하고, 관리자에게만 [내 알림 | 관리자 알림] 토글을 보여 관리자 알림에서 빌릴게 대여·반납 신청을 바로 처리할 수 있게 합니다.

📝 작업 상세 내용

  • 관리자 알림 탭 디자인 — WDS Segmented Control 토글, 반려·승인 → 대여·반납 완료 버튼, 반려 확인 모달, 대여·반납 신청 아이콘
  • 관리자 판별 — 로그인 토큰 roles에 ADMIN이 있을 때만 토글을 보여 준다(실제 권한은 서버가 막는다)
  • 내 알림 연동 — GET /v1/app/notifications(커서), PATCH /v1/app/notifications/{id}/read, 상대 시간 표시
  • 관리자 알림 연동 — GET /v1/admin/notifications의 rental 요약으로 문구·버튼 단계·숨김을 정하고, PATCH /v1/admin/notifications/{id}/read로 읽음 처리
  • 대여 상태 변경 — PATCH /v1/admin/billilge/histories/{id}에 expectedStatus를 같이 보내고, RENTAL_STATUS_CHANGED(409)면 토스트 후 목록을 다시 받는다

📁 참고 자료 (선택)

Activity

  1. self-assigned this
    on Nov 5, 2026
  2. added a commit that references this issue on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions