package kr.co.accura.wbx.spring.notification;

import lombok.Builder;

@Builder
public record NotificationDto(
        String type,
        String title,
        String message,
        String link
) {
    public static NotificationDto approvalRequest(String title, String message) {
        return NotificationDto.builder().type("APPROVAL_REQUEST").title(title).message(message).build();
    }

    public static NotificationDto approvalComplete(String title, String message) {
        return NotificationDto.builder().type("APPROVAL_COMPLETE").title(title).message(message).build();
    }

    public static NotificationDto reminder(String message) {
        return NotificationDto.builder().type("REMINDER").title("리마인더").message(message).build();
    }
}
