package com.yuchen.saas.park.api.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.nest.springwrap.core.mp.support.Query;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 分页查询人员信息参数
 */
@Data
public class PmgBatParkPeoplePageParam extends Query {

    @ApiModelProperty(value = "园区ID")
    private Long parkId;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "公司ID")
    private Long company;

    @NotNull
    @ApiModelProperty(value = "访客权限组id->id")
    private Long privilegeId;

    @NotNull
    @Range(min =1 , max =2 )
    @ApiModelProperty(value = "查询类型 1添加人员 2关联人员",required=true)
    private Integer type;
}