package com.yuchen.saas.park.api.dto.people;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.mp.support.Query;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zhouhanwei
 * @create 2023/3/20 15:21
 */
@EqualsAndHashCode
@ApiModel()
@Data
public class SpecialPeopleInfoPageDTO extends Query {


    /**
     * 项目id
     */
    @ApiModelProperty(name = "projectId", value = "项目id")
    @NotNull(message = "项目id不能为空")
    private Long projectId;
    /**
     * 人员类型（17白名单人员，18：黑名单人员)
     */
    @ApiModelProperty(name = "peopleType", value = "人员类型（17白名单人员，18：黑名单人员)")
    @NotNull(message = "人员类型不能为空")
    @Min(value = 17,message = "人员类型错误")
    @Max(value = 18,message = "人员类型错误")
    private Integer peopleType;
    /**
     * 名字
     */
    @ApiModelProperty(name = "userName", value = "人员名字")
    private String userName;

    /**
     * 性别
     */
    @ApiModelProperty(name = "sex", value = "性别")
    private String sex;
    /**
     * 联系方式
     */
    @ApiModelProperty(name = "phone", value = "联系方式")
    private String phone;
    /**
     * 身份ID
     */
    @ApiModelProperty(name = "idCard", value = "身份ID")
    private String idCard;
    /**
     * 证件类型
     */
    @ApiModelProperty(name = "idType", value = "证件类型")
    private String idType;

    /**
     * 登记开始时间
     */
    @ApiModelProperty(name = "registerStartTime", value = "登记开始时间")
    private String registerStartTime;


    /**
     * 登记结束时间
     */
    @ApiModelProperty(name = "registerEndTime", value = "登记结束时间")
    private String registerEndTime;

    /**
     * 开启状态(1：开启，2：关闭)
     */
    @ApiModelProperty(name = "enableStatus", value = "开启状态(1：开启，0：关闭)")
    private Integer enableStatus;
}
