package com.common.entity;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 微信通知实体类
 * 对应表: wecom_notification
 */
@Data
public class WecomNotification {
    
    /** 企微通知id */
    private Long wecomNotificationId;
    
    /** 用户信息 */
    private String userId;
    
    /** 通知名称 */
    private String wecomNotificationName;
    
    /** 通知IP */
    private String wecomNotificationIp;
    
    /** 通知类型 */
    private String wecomNotificationType;
    
    /** 通知等级 */
    private String wecomNotificationLevel;
    
    /** 通知内容 */
    private String wecomNotificationContent;
    
    /** 告警通知时间 */
    private LocalDateTime wecomNotificationTime;
    
    /** 租户编号 */
    private String tenantId;
    
    /** 创建部门 */
    private Long createDept;
    
    /** 创建者 */
    private Long createBy;
    
    /** 创建时间 */
    private LocalDateTime createTime;
    
    /** 更新者 */
    private Long updateBy;
    
    /** 更新时间 */
    private LocalDateTime updateTime;
    
    /** 备注 */
    private String remark;
    
    /** 通知状态（0:已发送, 1:未发送） */
    private String wecomNotificationStatus;
    
    public WecomNotification() {
    }
    
    public WecomNotification(String wecomNotificationName, String wecomNotificationType, 
                            String wecomNotificationLevel, String wecomNotificationContent) {
        this.wecomNotificationName = wecomNotificationName;
        this.wecomNotificationType = wecomNotificationType;
        this.wecomNotificationLevel = wecomNotificationLevel;
        this.wecomNotificationContent = wecomNotificationContent;
        this.wecomNotificationTime = LocalDateTime.now();
        this.wecomNotificationStatus = "1"; // 默认未发送
        this.createTime = LocalDateTime.now();
    }
}
