package com.skr.mdm.bean.qo.content;

import com.skr.mdm.bean.qo.BaseStrategyQO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 通知管理添加/编辑
 * @author niefuqiang
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "通知新增/编辑对象")
public class ContentInformQO extends BaseStrategyQO {

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

    @ApiModelProperty(value = "通知标题")
    @NotBlank(message = "通知标题不能为空")
    private String informTitle;

    @ApiModelProperty(value = "通知内容")
    @NotBlank(message = "通知内容不能为空")
    private String informContent;

    @ApiModelProperty(value = "消息类型（1:非强制 2:强制）")
    @NotNull(message = "查看类型不能为空")
    private Integer informType;

    @ApiModelProperty(value = "执行时间")
    private Date executeTime;

    @ApiModelProperty(value = "阅后延时")
    private Integer readDelay;
}
