package com.ho.flow.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 发送短信配置表
 */
@Data
public class SendSmsConfig implements Serializable {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "电站id")
    private Integer stationId;

    @ApiModelProperty(value = "用户id(与sys_user表id保持一致)")
    private String userId;

    @ApiModelProperty(value = "账户名称")
    private String username;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "真实名称")
    private String realName;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "邮箱(唯一)")
    private String email;

    @ApiModelProperty(value = "通知类别")
    private Integer smsType;

    @ApiModelProperty(value = "告警等级")
    private String alarmLevel;

    @ApiModelProperty(value = "创建人")
    private String createId;

    @ApiModelProperty(value = "更新人")
    private String updateId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "是否立即发送:是1否2  默认是1")
    private Integer isSendNow;

    @ApiModelProperty(value = "延迟时间(例：30分钟)")
    private Integer delayData;

}
