@pickme/reminder
    Preparing search index...

    알림 저장소 인터페이스입니다. 알림 데이터를 생성, 조회, 삭제하는 메서드를 정의합니다.

    interface default {
        create(entity: default): Promise<default>;
        deleteById(event_id: string): Promise<boolean>;
        findById(event_id: string): Promise<default>;
        findByReservationTime(
            start_time: Date,
            end_time: Date,
            status: NotificationStatus,
        ): Promise<default[]>;
    }

    Implemented by

    Index

    Methods

    • 주어진 이벤트 ID를 기반으로 알림 엔티티를 삭제합니다.

      Parameters

      • event_id: string

        삭제할 알림의 이벤트 ID

      Returns Promise<boolean>

      삭제 성공 여부를 반환합니다.

    • 주어진 이벤트 ID를 기반으로 알림 엔티티를 조회합니다.

      Parameters

      • event_id: string

        조회할 알림의 이벤트 ID

      Returns Promise<default>

      조회된 알림 엔티티를 반환합니다.

    • 예약 시간 범위와 상태를 기준으로 알림 엔티티 목록을 조회합니다.

      Parameters

      • start_time: Date

        조회할 시작 시간

      • end_time: Date

        조회할 종료 시간

      • status: NotificationStatus

        조회할 알림 상태

      Returns Promise<default[]>

      조건에 맞는 알림 엔티티 배열을 반환합니다.