package com.yh.saas.plugin.news.command;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;

public class CircularManagementCommand {
	@ApiModelProperty(value = "主键id", name = "id")
	private String id;

	@ApiModelProperty(value = "公司ID", name = "compId")
	@NotNull(message = "公司compId不能为空")
	private String compId;

	@ApiModelProperty(value = "适用部门id", name = "deptId")
	@NotNull(message = "适用部门deptId不能为空")
	private String deptId;

	@ApiModelProperty(value = "适用部门名称", name = "deptName")
	@NotNull(message = "适用部门名称deptName不能为空")
	private String deptName;

	@ApiModelProperty(value = "通函类别ID", name = "typeId")
	@NotNull(message = "通函类别typeId不能为空")
	private String typeId;

	@ApiModelProperty(value = "通函类别名称", name = "circularTypeName")
	@NotNull(message = "通函类别名称circularTypeName不能为空")
	private String circularTypeName;

	@ApiModelProperty(value = "通函编码", name = "circularCode")
	@NotNull(message = "通函编码circularCode不能为空")
	private String circularCode;

	@ApiModelProperty(value = "发布日期", name = "dateOfIssue")
	@NotNull(message = "发布日期dateOfIssue不能为空")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date dateOfIssue;

	@ApiModelProperty(value = "主题", name = "theme")
	@NotNull(message = "主题theme不能为空")
	private String theme;

	@ApiModelProperty(value = "状态ID", name = "statusId")
	// @NotNull(message = "状态statusId不能为空")
	private String statusId;

	@ApiModelProperty(value = "状态", name = "status")
	// @NotNull(message = "状态status不能为空")
	private String status;

	@ApiModelProperty(value = "状态英文", name = "statusEn")
	// @NotNull(message = "状态英文statusEn不能为空")
	private String statusEn;

	@ApiModelProperty(value = "是否学习反馈", name = "learnFeedback")
	@NotNull(message = "是否学习反馈learnFeedback不能为空")
	private Boolean learnFeedback;

	@ApiModelProperty(value = "有效期", name = "validityPeriod")
	// @NotNull(message = "有效期validityPeriod不能为空")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date validityPeriod;

	@ApiModelProperty(value = "是否永久有效", name = "usefulLife")
	@NotNull(message = "是否永久有效usefulLife不能为空")
	private Boolean usefulLife;

	@ApiModelProperty(value = "通函通知", name = "attachmentPath")
	@NotNull(message = "通函通知attachmentPath不能为空")
	private String attachmentPath;

	@ApiModelProperty(value = "附件", name = "appendixPath")
	private String appendixPath;

	@ApiModelProperty(value = "接收船舶ID", name = "receiveVesselId")
	private String receiveVesselId;

	@ApiModelProperty(value = "接收船舶", name = "receiveVessel")
	private String receiveVessel;

	@ApiModelProperty(value = "接收部门ID", name = "receiveDeptId")
	private String receiveDeptId;

	@ApiModelProperty(value = "接收部门", name = "receiveDept")
	private String receiveDept;
}
