package com.sptg.gateway.entity;

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

import java.util.Date;

/**
 * title: GuestAuthorizeApi
 * package: com.sptg.estate.biz.security
 * description: 授权密码
 *
 *               
 *                     
 */
@Setter
@Getter
public class GuestAuthorizeApi {

    private Long id;

    /**
     * 访客类型：0-朋友  1-外卖 2-快递 3-其他
     */
    private Integer guestType;

    private String roomName;

    private String unitName;

    private String residentialName;

    private String buildingName;

    private Integer password;

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

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

    private Integer validCount;

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