package com.yuchen.saas.park.api.entity.pldoor;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import java.util.Date;

/**
 * <p>
 * 门禁出入记录
 * </p>
 *
 * @author miaoqs
 * @since 2024-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pl_door_inout_recode")
@ApiModel(value="PlDoorInoutRecode对象", description="门禁出入记录")
public class PlDoorInoutRecode extends TenantEntity {

    /**
     * 用户id
     */
    @ApiModelProperty(name = "userId", value = "用户id")
    private Long userId;
    /**
     * 用户姓名
     */
    @ApiModelProperty(name = "userName", value = "用户姓名")
    private String userName;
    /**
     * 人脸Id
     */
    @ApiModelProperty(name = "userFaceId", value = "人脸Id")
    private Long userFaceId;
    /**
     * 人脸url
     */
    @ApiModelProperty(name = "userFaceUrl", value = "人脸url")
    private String userFaceUrl;
    /**
     * 用户类型 1:住户;2:访客
     */
    @ApiModelProperty(name = "userType", value = "用户类型 1:住户;2:访客")
    private String userType;
    /**
     * 项目
     */
    @ApiModelProperty(name = "parkId", value = "项目")
    private Long parkId;
    /**
     * 楼栋
     */
    @ApiModelProperty(name = "buildingId", value = "楼栋")
    private Long buildingId;
    /**
     * 单元
     */
    @ApiModelProperty(name = "elementId", value = "单元")
    private Long elementId;
    /**
     * 楼层
     */
    @ApiModelProperty(name = "floorId", value = "楼层")
    private Long floorId;
    /**
     * 房号
     */
    @ApiModelProperty(name = "roomId", value = "房号")
    private Long roomId;
    /**
     * 进出类型 1:出口;2:入口
     */
    @ApiModelProperty(name = "inOrOut", value = "进出类型 1:出口;2:入口")
    private String inOrOut;
    /**
     * 开门类型
     */
    @ApiModelProperty(name = "openDoorType", value = "开门类型 :0=密码开锁 1=扫码开锁 2=人脸开锁 " +
            "3=一键开锁4=蓝牙开锁5=IC卡开锁 6=ID卡开锁 7=身份证开锁 8=对讲开锁 10=指纹开锁 11=电脑开锁 /* 21=扫码开锁 22=人脸开锁 */")
    private String openDoorType;
    /**
     * 门禁id
     */
    @ApiModelProperty(name = "doorPointId", value = "门禁id")
    private Long doorPointId;
    /**
     * 住户卡号
     */
    @ApiModelProperty(name = "userCarNum", value = "住户卡号")
    private String userCarNum;
    /**
     * 出入时间
     */
    @ApiModelProperty(name = "inoutTime", value = "出入时间")
    private Date inoutTime;
    /**
     * 终端号
     */
    @ApiModelProperty(name = "terminalNumber", value = "终端号")
    private String terminalNumber;
    /**
     * 门禁名称
     */
    @ApiModelProperty(name = "doorName", value = "门禁名称")
    private String doorName;
    /**
     * 门禁编号
     */
    @ApiModelProperty(name = "doorNo", value = "门禁编号")
    private String doorNo;
    /**
     * 抓拍图片
     */
    @ApiModelProperty(name = "captureFaceUrl", value = "抓拍图片")
    private String captureFaceUrl;


    /**
     * 开始时间
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "startTime", value = "开始时间")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "endTime", value = "结束时间")
    private Date endTime;



}
