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.tool.validator.group.AddGroup;
import org.nest.springwrap.core.tool.validator.group.UpdateGroup;

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

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


    /**
     * 项目id
     */
    @ApiModelProperty(name = "projectId", value = "项目id")
    @NotNull(message = "项目id不能为空")
    private Long projectId;
    /**
     * 客户id
     */
    @ApiModelProperty(name = "customerId", value = "客户id")
    private Long customerId;
    /**
     * 名字
     */
    @ApiModelProperty(name = "userName", value = "名字")
    @NotBlank(message = "名字不能为空")
    private String userName;
    /**
     * 人脸图片路径
     */
    @ApiModelProperty(name = "faceImgSrc", value = "人脸图片路径")
    @NotBlank(message = "人脸图片路径不能为空")
    private String faceImgSrc;
    /**
     * 性别
     */
    @ApiModelProperty(name = "sex", value = "性别")
    @NotBlank(message = "性别不能为空")
    private String sex;
    /**
     * 身份ID
     */
    @ApiModelProperty(name = "idCard", value = "身份ID")
    @NotBlank(message = "身份ID不能为空")
    private String idCard;
    /**
     * 联系方式
     */
    @ApiModelProperty(name = "phone", value = "联系方式")
    @NotBlank(message = "联系方式不能为空")
    private String phone;
    /**
     * 身份类型（1.物业管理2.物业人员3.安保人员4.保洁人员5.维修人员业管理6.其他）
     */
    @ApiModelProperty(name = "identityType", value = "身份类型（1.物业管理2.物业人员3.安保人员4.保洁人员5.维修人员业管理6.其他）")
    @NotNull(message = "身份类型不能为空")
    private Integer identityType;

    /**
     * 身份证反面照片
     */
    @ApiModelProperty(name = "idCardBackImgSrc", value = "身份证反面照片")
    @NotBlank(message = "身份证反面照片不能为空")
    private String idCardBackImgSrc;

    /**
     * 身份证正面照片
     */
    @ApiModelProperty(name = "idCardFrontImgSrc", value = "身份证正面照片")
    @NotBlank(message = "身份证正面照片不能为空")
    private String idCardFrontImgSrc;

    /**
     * 登记用户的id
     */
    @ApiModelProperty(name = "registerUserId", value = "登记用户的id")
    @NotNull(message = "登记用户的id不能为空")
    private Long registerUserId;
}
