package com.lesingle.edu.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 通知响应
 * 用于返回通知信息给前端
 */
@Data
@Builder
@Schema(description = "通知响应")
public class NotificationResponse {

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

    @Schema(description = "租户 ID")
    private Long tenantId;

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

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

    @Schema(description = "类型")
    private String type;

    @Schema(description = "发送人 ID")
    private Long senderId;

    @Schema(description = "发送人角色")
    private String senderRole;

    @Schema(description = "接收者类型")
    private String recipientType;

    @Schema(description = "接收者 ID")
    private Long recipientId;

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

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

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