package com.softwarebr.nunu.json.admin.res;

import com.alibaba.fastjson.annotation.JSONField;
import com.softwarebr.nunu.domain.InviteJob;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @date 2020-02-21 11:48:30
 * @author lilin
 */

@Data
@ApiModel
public class InviteParam {

	@ApiModelProperty(value = "招聘会名称", required = true, example = "")
	@NotEmpty(message = "招聘会名称不能为空")
	private String inviteName;

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

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "招聘开始时间", required = true, example = "")
	@NotNull(message = "请选择招聘开始时间")
	private LocalDateTime startDate;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "招聘结束时间", required = true, example = "")
	@NotNull(message = "请选择招聘结束时间")
	private LocalDateTime endDate;

	@ApiModelProperty(value = "招聘封面图", required = true, example = "")
	@NotEmpty(message = "请上传招聘封面图")
	private String coverUri;

	@ApiModelProperty(value = "招聘省份", required = true, example = "")
	@NotNull(message = "请选择招聘省份")
	private Long provinceId;

	@ApiModelProperty(value = "招聘城市", required = true, example = "")
	@NotNull(message = "请选择招聘城市")
	private Long cityId;

	@ApiModelProperty(value = "招聘区县", required = true, example = "")
	@NotNull(message = "请选择招聘区县")
	private Long areaId;

	@ApiModelProperty(value = "招聘岗位", required = true, example = "")
	@NotNull(message = "请填写招聘岗位信息")
	private List<InviteJob> job;

	@ApiModelProperty(value = "招聘详情", required = true, example = "")
	private String detail;

	@ApiModelProperty(value = "项目联系人", required = true, example = "")
	@NotEmpty(message = "项目联系人不能为空")
	private String contact;

	@ApiModelProperty(value = "手机号码", required = true, example = "")
	@NotEmpty(message = "手机号码不能为空")
	private String contactPhone;

	@ApiModelProperty(value = "电子邮箱", required = true, example = "")
	@NotEmpty(message = "电子邮箱不能为空")
	private String email;

	@ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
	@NotNull
	private Integer publicity;

}