package com.lesingle.edu.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 家长端通知响应
 * 对齐前端 Notification：notificationType、isRead 为 boolean
 */
@Data
@Builder
@Schema(description = "家长端通知响应")
public class NotificationForParentResponse {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容")
    private String content;

    @JsonProperty("notificationType")
    @Schema(description = "通知类型")
    private String notificationType;

    @Schema(description = "是否已读")
    private Boolean isRead;

    @Schema(description = "阅读时间")
    private LocalDateTime readAt;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
}
