package cn.superdesk.uniorder.dto.param.operationCenter.business;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

@Data
public class BusinessSaveParam implements Serializable {
    private Long id;
    @NotBlank(message = "姓名不能为空")
    @Length(max = 20,message = "姓名长度不能超过20字符")
    private String userName;
    @Length(max = 50,message = "员工工号长度不能超过50字符")
    private String userNumber;
    @NotNull(message = "在职状态不能为空")
    private Integer jobStatus;
    @NotBlank(message = "所属公司不能为空")
    @Length(max = 100,message = "所属公司长度不能超过100字符")
    private String companyName;
    @NotBlank(message = "所属部门不能为空")
    @Length(max = 100,message = "所属部门长度不能超过100字符")
    private String deptName;
    @Length(max = 100,message = "所属区域长度不能超过100字符")
    private String areaName;
    @Length(max = 100,message = "岗位名称长度不能超过100字符")
    private String postName;
    @NotBlank(message = "联系电话不能为空")
    @Length(max = 100,message = "联系电话长度不能超过100字符")
    private String phone;
    @NotBlank(message = "邮箱不能为空")
    @Length(max = 100,message = "邮箱长度不能超过100字符")
    private String email;
    @Length(max = 200,message = "备注长度不能超过200字符")
    private String remark;
    private Integer enabled;

    private Long operatorId;
    private String operator;
}
