package com.yushu.system.domain;

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.yushu.common.annotation.Excel;
import com.yushu.common.core.domain.BaseEntity;

/**
 * 系统通知对象 sys_notification
 * 
 * @author yushu
 * @date 2025-11-12
 */
public class SysNotification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    private Long notificationId;

    /** 通知标题 */
    @Excel(name = "通知标题")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 通知类型 */
    @Excel(name = "通知类型")
    private String notificationType;

    /** 优先级 */
    @Excel(name = "优先级")
    private String priority;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long senderId;

    /** 发送者名称 */
    @Excel(name = "发送者名称")
    private String senderName;

    /** 目标类型 */
    @Excel(name = "目标类型")
    private String targetType;

    /** 目标用户ID列表 */
    private String targetUsers;

    /** 目标角色ID列表 */
    private String targetRoles;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

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

    public Long getNotificationId() 
    {
        return notificationId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setNotificationType(String notificationType) 
    {
        this.notificationType = notificationType;
    }

    public String getNotificationType() 
    {
        return notificationType;
    }
    public void setPriority(String priority) 
    {
        this.priority = priority;
    }

    public String getPriority() 
    {
        return priority;
    }
    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }
    public void setSenderName(String senderName) 
    {
        this.senderName = senderName;
    }

    public String getSenderName() 
    {
        return senderName;
    }
    public void setTargetType(String targetType) 
    {
        this.targetType = targetType;
    }

    public String getTargetType() 
    {
        return targetType;
    }
    public void setTargetUsers(String targetUsers) 
    {
        this.targetUsers = targetUsers;
    }

    public String getTargetUsers() 
    {
        return targetUsers;
    }
    public void setTargetRoles(String targetRoles) 
    {
        this.targetRoles = targetRoles;
    }

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

    public String getStatus() 
    {
        return status;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notificationId", getNotificationId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("notificationType", getNotificationType())
            .append("priority", getPriority())
            .append("senderId", getSenderId())
            .append("senderName", getSenderName())
            .append("targetType", getTargetType())
            .append("targetUsers", getTargetUsers())
            .append("targetRoles", getTargetRoles())
            .append("status", getStatus())
            .append("publishTime", getPublishTime())
            .append("expireTime", getExpireTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}