package com.sptg.gateway.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * title: UserApi
 * package: com.sptg.estate.biz.security
 * description: 住户
 *
 *
 *
 */
@Setter
@Getter
public class UserApi {

    private Long id;

    private String name;

    /**
     * 性别  0-未定义  1-男 2-女
     */
    private Integer sex;
    /**
     * 住户类型：0-业主 1-成员 2-租户 3-访客
     */
    private Integer type;

    private Integer nationality;

    private String idCard;

    private String passportImgUri;

    private String entryImgUri;

    private String tel;

    private Long roomId;

    private String roomName;

    private Long buildingId;

    private String buildingName;

    private String unitName;

    private Long residentialId;

    private String residentialName;

    private String imageUri;

    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date faceBeginDate;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date faceEndDate;

    private Boolean faceValid = true;
    private Integer faceEnable;
}
