package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 notification_records
 * 
 * @author ruoyi
 * @date 2025-08-23
 */
public class NotificationRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 关联通知内容ID */
    @Excel(name = "关联通知内容ID")
    private Long notificationId;

    /** 接收用户ID（关联您现有用户表） */
    @Excel(name = "接收用户ID", readConverterExp = "关=联您现有用户表")
    private Long userId;

    /** 发送渠道 'push', 'sms', 'email', 'in-app' */
    @Excel(name = "发送渠道 'push', 'sms', 'email', 'in-app'")
    private String channel;

    /** 发送状态 'pending', 'sent', 'delivered', 'read', 'failed' */
    @Excel(name = "发送状态 'pending', 'sent', 'delivered', 'read', 'failed'")
    private String status;

    /** 实际发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sentTime;

    /** 用户阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readTime;

    /** 失败原因 */
    @Excel(name = "失败原因")
    private String failureReason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNotificationId(Long notificationId) 
    {
        this.notificationId = notificationId;
    }

    public Long getNotificationId() 
    {
        return notificationId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setChannel(String channel) 
    {
        this.channel = channel;
    }

    public String getChannel() 
    {
        return channel;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setSentTime(Date sentTime) 
    {
        this.sentTime = sentTime;
    }

    public Date getSentTime() 
    {
        return sentTime;
    }

    public void setReadTime(Date readTime) 
    {
        this.readTime = readTime;
    }

    public Date getReadTime() 
    {
        return readTime;
    }

    public void setFailureReason(String failureReason) 
    {
        this.failureReason = failureReason;
    }

    public String getFailureReason() 
    {
        return failureReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("notificationId", getNotificationId())
            .append("userId", getUserId())
            .append("channel", getChannel())
            .append("status", getStatus())
            .append("sentTime", getSentTime())
            .append("readTime", getReadTime())
            .append("failureReason", getFailureReason())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
