package com.ho.user.vo.req;

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

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @ClassName: DeptAddReqVO
 * TODO:类文件简单描述
 * @Author:
 * @CreateDate: 2019/9/19 13:30
 * @UpdateUser:
 * @UpdateDate: 2019/9/19 13:30
 * @Version: 0.0.1
 */
@Data
public class DeptAddReqVO {
    @ApiModelProperty(value = "机构名称")
    @NotBlank(message = "机构名称不能为空")
    @Length(min = 1, max = 50,message = "名称不能超过50个字符")
    private String name;

    @ApiModelProperty(value = "父级id 一级为 0")
    private Integer pid;

    @ApiModelProperty(value = "部门经理id")
    private String deptManagerId;

    @ApiModelProperty(value = "部门经理名称 ---负责人")
    private String managerName;

    @ApiModelProperty(value = "部门经理电话 ---联系电话")
    //@Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;

    @ApiModelProperty(value = "机构状态(1:正常；0:弃用)")
    private Integer status;

    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱格式有误")
    private String email;

    @ApiModelProperty(value = "排序码")
    //  @NotNull(message = "排序码不能为空")
    private Integer orderNum;

}
