package com.securitycontrol.entity.background.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 10488
 * 班组VO
 */
@Data
public class TeamManageVo {

    @ApiModelProperty(value = "班组ID")
    private String teamId;

    @ApiModelProperty(value = "班组名称")
    @NotBlank(message = "班组名称不能为空", groups = {Query.class})
    @Length(max = 80, message = "班组名称字符长度不能超过80", groups = {Query.class})
    private String teamName;

    @ApiModelProperty(value = "班组长")
    @NotBlank(message = "班组长不能为空", groups = {Query.class})
    @Length(max = 50, message = "班组长字符长度不能超过50", groups = {Query.class})
    private String teamLeader;

    @ApiModelProperty(value = "身份证编号")
    @NotBlank(message = "身份证号码不能为空", groups = {Query.class})
    @Length(max = 30, message = "身份证号码字符长度不能超过30", groups = {Query.class})
    private String idNumber;

    @ApiModelProperty(value = "手机号码")
    @NotBlank(message = "手机号码不能为空", groups = {Query.class})
    @Length(max = 20, message = "手机号码字符长度不能超过20", groups = {Query.class})
    private String teamLeaderPhone;

    @ApiModelProperty(value = "班组状态")
    private String status;

    @ApiModelProperty(value = "班组人数")
    private String teamNum;

    @ApiModelProperty(value = "工程编码")
    @NotBlank(message = "工程编码能为空", groups = {Query.class})
    @Length(max = 80, message = "工程编码字符长度不能超过80", groups = {Query.class})
    private String bidCode;

    @ApiModelProperty(value = "工程名称")
    private String proName;

    @ApiModelProperty(value = "1.新增 2.修改")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer type;

    /**
     * 查询条件限制
     */
    public interface Query {
    }
}
