package com.softwarebr.nunu.json.api.train;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @date 2020/03/11 15:30:46
 * @author lilin
 */

@Data
@ApiModel
public class ActivityLogParam {

	@ApiModelProperty(value = "活动Id", required = true, example = "1")
	@NotNull(message = "活动Id不能为空")
	private Long activityId;

	@ApiModelProperty(value = "姓名", required = true, example = "木木")
	@NotEmpty(message = "姓名不能为空")
	private String name;

	@ApiModelProperty(value = "联系方式", required = true, example = "15220276660")
	@Length(min = 11, max = 11, message = "联系方式输入不正确")
	private String contact;

	@ApiModelProperty(value = "公司名称", required = true, example = "贝如科技")
	@NotEmpty(message = "公司名称不能为空")
	private String companyName;

	@ApiModelProperty(value = "职位", required = true, example = "行政总监")
	@NotEmpty(message = "职位不能为空")
	private String position;

	@ApiModelProperty(value = "报名人数", required = true, example = "22")
	@NotNull(message = "报名人数不能为空")
	private Integer enrolment;

}