Skip to content

알림 읽음/안읽음 분기처리 구현 #448

Description

@leejh08

개요

NotificationsAPI.fetchNotificationListis_new 쿼리 파라미터가 현재 빈 문자열("")로 하드코딩되어 있어, 읽음/안읽음 필터링이 동작하지 않습니다.

위치: Projects/Data/Sources/DataSource/API/NotificationsAPI.swift:57

// 현재
["is_new": ""]

// 목표
["is_new": true]  // 안읽음만
["is_new": false] // 읽음만
// 또는 파라미터 없이 전체 조회

작업 범위

Data Layer

  • NotificationsAPIfetchNotificationList(isNew: Bool?) 케이스로 변경, is_new 파라미터 조건부 전달
  • RemoteNotificationsDataSourceisNew 파라미터 수신 및 전달
  • NotificationsRepositoryImplisNew 파라미터 전달

Domain Layer

  • NotificationsRepository 프로토콜 — fetchNotificationsList(isNew: Bool?) 시그니처 업데이트
  • FetchNotificationListUseCaseexecute(isNew: Bool?) 파라미터 추가

Presentation Layer

  • AlarmReactorisNew 필터 상태 관리, fetchNotificationList 액션에 파라미터 추가
  • AlarmViewController — 읽음/안읽음 탭(세그먼트 or 필터 버튼) UI 추가

참고

  • NotificationEntity.new: Bool 필드가 이미 존재함
  • 현재 AlarmReactor에서 readNotification 액션으로 개별 읽음 처리는 구현되어 있음

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨feat새로운 기능을 추가 할 경우

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions