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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

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

    /**
     * id
     */
    @ApiModelProperty(name = "id", value = "id")
    @NotNull(message = "id不能为空")
    private Long id;
    /**
     * 项目id
     */
    @ApiModelProperty(name = "projectId", value = "项目id")
    @NotNull(message = "项目id不能为空")
    private Long projectId;

    /**
     * 楼栋id
     */
    @ApiModelProperty(name = "buildingId", value = "楼栋id")
    @NotNull(message = "楼栋id不能为空")
    private Long buildingId;
    /**
     * 单元id
     */
    @ApiModelProperty(name = "unitId", value = "单元id")
    private Long unitId;
    /**
     * 房源id
     */
    @ApiModelProperty(name = "houseId", value = "房源id")
    @NotNull(message = "房源id不能为空")
    private Long houseId;


    /**
     * 人员类型（13.外卖/快递14.家政人员15.装修人员16.临时人员)
     */
    @ApiModelProperty(name = "peopleType", value = "人员类型（13.外卖/快递14.家政人员15.装修人员16.临时人员)")
    @NotNull(message = "人员类型不能为空")
    private Integer peopleType;

    /**
     * 名字
     */
    @ApiModelProperty(name = "userName", value = "名字")
    @NotBlank(message = "名字不能为空")
    private String userName;


    /**
     * 性别
     */
    @ApiModelProperty(name = "sex", value = "性别")
    private String sex;

    /**
     * 身份ID
     */
    @ApiModelProperty(name = "idCard", value = "身份ID")
    @NotBlank(message = "身份ID不能为空")
    private String idCard;
    /**
     * 联系方式
     */
    @ApiModelProperty(name = "phone", value = "联系方式")
    @NotBlank(message = "联系方式不能为空")
    private String phone;

    /**
     * 证件类型
     */
    @ApiModelProperty(name = "idType", value = "证件类型")
    @NotBlank(message = "证件类型不能为空")
    private String idType;

    /**
     * 车牌号
     */
    @ApiModelProperty(name = "plateNo", value = "车牌号")
    private String plateNo;
    /**
     * 登记开始日期
     */
    @ApiModelProperty(name = "registerStartTime", value = "登记开始日期")
    private Date registerStartTime;
    /**
     * 登记结束日期
     */
    @ApiModelProperty(name = "registerEndTime", value = "登记结束日期")
    private Date registerEndTime;

    /**
     * 业主人员id
     */
    @ApiModelProperty(name = "ownerPeopleId", value = "业主人员id")
    @NotNull(message = "业主人员id不能为空")
    private Long ownerPeopleId;
    /**
     * 业主姓名
     */
    @ApiModelProperty(name = "ownerName", value = "业主姓名")
    @NotBlank(message = "业主姓名不能为空")
    private String ownerName;
    /**
     * 人脸图片路径
     */
    @ApiModelProperty(name = "faceImgSrc", value = "人脸图片路径")
    @NotBlank(message = "人脸图片路径不能为空")
    private String faceImgSrc;

    /**
     * 证件照片
     */
    @ApiModelProperty(name = "idPhoto", value = "证件照片")
    @NotBlank(message = "人证件照片路径不能为空")
    private String idPhoto;
}
