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

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author 蔡文强
 * @Date 2023/12/25 10:56
 * @Description 业主添加住户Dto
 */
@Data
@ApiModel(value = "PropertyOwnerResidentDto对象", description = "业主添加住户Dto")
public class PropertyOwnerResidentDto {
    /**
     * 主键ID
     */
    @ApiModelProperty(name = "id", value = "主键ID")
    private Long id;
    /**
     * 园区ID
     */
    @ApiModelProperty(name = "parkId", value = "园区ID")
    @NotNull(message = "园区ID不能为空")
    private Long parkId;
    /**
     * 房源ID
     */
    @ApiModelProperty(name = "houseId", value = "房源ID")
    @NotNull(message = "房源ID不能为空")
    private Long houseId;
    /**
     * 身份(1:业主 2:成员 3:租客)
     */
    @ApiModelProperty(name = "identity", value = "身份(1:业主 2:成员 3:租客)")
    @NotNull(message = "身份不能为空")
    private Integer identity;
    /**
     * 用户手机号
     */
    @ApiModelProperty(name = "userPhone", value = "用户手机号")
    @NotBlank(message = "用户手机号不能为空")
    private String userPhone;
    /**
     * 用户姓名
     */
    @ApiModelProperty(name = "userName", value = "用户姓名")
    @NotBlank(message = "用户姓名不能为空")
    private String userName;
    /**
     * 用户性别(1:男 2:女)
     */
    @ApiModelProperty(name = "sex", value = "用户性别(1:男 2:女)")
    private Integer sex;
    /**
     * 与业主关系
     */
    @ApiModelProperty(name = "relation", value = "与业主关系")
    @NotBlank(message = "与业主关系不能为空")
    private String relation;
    /**
     * 人员照片
     */
    @ApiModelProperty(name = "photo", value = "人员照片")
    private String photo;

}
