package com.nantian.cloud.jljc.dto;





import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 培训活动
 * @date 2020-09-03 13:23:34
 */
@Data
@TableName("t_training")
@ApiModel(value = "培训活动")
public class TTrainingDto implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
	@JsonSerialize(using = ToStringSerializer.class)
	private Integer id;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	private String name;
	/**
	 * 内容
	 */
	@ApiModelProperty(value = "内容")
	private String content;
	/**
	 * 开始时间
	 */
	@ApiModelProperty(value = "开始时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
	private Date startTime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty(value = "结束时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
	private Date endTime;
	/**
	 * 主题
	 */
	@ApiModelProperty(value = "主题")
	private String topic;
	/**
	 * 操作人id
	 */
	@ApiModelProperty(value = "操作人id")
	private Integer userid;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
	private Date updateTime;
	/**
	 * 类型
	 */
	@ApiModelProperty(value = "类型")
	private String type;
	/**
	 * 注销状态（1：未删除，4：已删除）
	 */
	@ApiModelProperty(value = "注销状态（1：未删除，4：已删除）")
	private String delFlag;
	/**
	 * 是否可报名
	 */
	@ApiModelProperty(value = "是否可报名")
	private String state;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remarks;
	/**
	 * 地址
	 */
	@ApiModelProperty(value = "地址")
	private String address;
	/**
	 * 海报
	 */
	@ApiModelProperty(value = "海报base64")
	@TableField(exist = false)
	private String placardSting;

	/**
	 * 海报
	 */
	@ApiModelProperty(value = "海报")
	//private byte[] placard;
	private String placard;


	/**
	 * 部门id
	 */
	@ApiModelProperty(value = "部门id")
	private Integer deptId;

	/**
	 * 报名开始时间
	 */
	@ApiModelProperty(value = "报名开始时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	//@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date startSignUpTime;

	/**
	 * 报名截止时间
	 */
	@ApiModelProperty(value = "报名截止时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	//@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date endSignUpTime;

	@ApiModelProperty(value = "报名人数")
	private Integer count;

	@ApiModelProperty(value = "链接跳转")
	private String urlLink;

	@ApiModelProperty(value = "是否可跳转（0：否，1：是）")
	private String urlState;

	@ApiModelProperty(value = "是否在线学习（0：否，1：是）")
	private String lineState;

	@ApiModelProperty(value = "视频地址")
	private String videoLink;


	@ApiModelProperty(value = "培训学习资料")
	private String trainingFile;

	@ApiModelProperty(value = "设置是否显示住宿（0：显示，1：隐藏）")
	private String setupAccommodation;

	@ApiModelProperty(value = "设置是否显示培训场次（0：显示，1：隐藏）")
	private String setupSession;

	@ApiModelProperty(value = "设置是否显示用餐（0：显示，1：隐藏）")
	private String setupDining;

	@ApiModelProperty(value = "设置是否显示性别（0：显示，1：隐藏）")
	private String setupSex;

	@ApiModelProperty(value = "设置是否显示民族（0：显示，1：隐藏）")
	private String setupClans;
}
