package cn.meowrain.aioj.backend.blogservice.dto.resp;

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

import java.util.Date;

/**
 * 通知响应DTO
 *
 * @author AIOJ
 */
@Data
@Schema(description = "通知响应")
public class NotificationResponseDTO {

    @Schema(description = "通知ID", example = "1")
    private Long id;

    @Schema(description = "接收用户ID", example = "1")
    private Long userId;

    @Schema(description = "通知类型：1=评论，2=点赞，3=收藏，4=关注，5=回复，6=系统通知", example = "1")
    private Integer type;

    @Schema(description = "通知标题", example = "新评论提醒")
    private String title;

    @Schema(description = "通知内容", example = "用户admin评论了你的文章")
    private String content;

    @Schema(description = "跳转链接", example = "/article/1")
    private String linkUrl;

    @Schema(description = "发送者ID", example = "2")
    private Long senderId;

    @Schema(description = "发送者用户名", example = "admin")
    private String senderName;

    @Schema(description = "关联目标ID", example = "1")
    private Long targetId;

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

    @Schema(description = "创建时间")
    private Date createTime;
}
