/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.community.accessrecord.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-01-14
 */
@Data
@TableName("yc_access_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AccessRecord对象", description = "AccessRecord对象")
public class AccessRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 用户id
	*/
		@ApiModelProperty(value = "用户id")
		private Long userId;
	/**
	* 用户姓名
	*/
		@ApiModelProperty(value = "用户姓名")
		private String userName;

	/**
	 * 机构类型，0社区机构，1园区机构
	 */
		@ApiModelProperty(value = "所属机构类型")
		private Integer agencyType;
	/**
	* 社区id
	*/
		@ApiModelProperty(value = "社区id/园区id")
		private Long agencyId;

	/**
	 * 社区id
	 */
	@ApiModelProperty(value = "社区名称/园区名称")
	private String agencyName;
	/**
	* 小区id
	*/
		@ApiModelProperty(value = "小区id")
		private Long residentialId;

	/**
	 * 小区名称
	 */
	@ApiModelProperty(value = "小区名字")
	private String residentialName;
	/**
	* 企业id
	*/
		@ApiModelProperty(value = "企业id")
		private Long enterpriseId;
	/**
	 * 企业名称
	 */
	@ApiModelProperty(value = "企业名称")
		private String enterpriseName;
	/**
	* 人脸
	*/
		@ApiModelProperty(value = "人脸")
		private String faceUrl;
	/**
	 * 人脸
	 */
	@ApiModelProperty(value = "底图")
	private String baseUrl;

	/**
	 * 设备id
	 */
	@ApiModelProperty(value = "设备ID")
	private Long deviceId;
	/**
	* 设备mac码
	*/
		@ApiModelProperty(value = "设备mac码")
		private String deviceMac;

	/**
	 * 抓拍设备安装位置
	 */
	@ApiModelProperty(value = "设备位置")
	private String deviceAddress;
	/**
	* 开门时间
	*/
		@ApiModelProperty(value = "开门时间")
		private String openTime;
	/**
	* 开门方式{1->人脸，2->远程}
	*/
		@ApiModelProperty(value = "开门方式{1->人脸，2->远程}")
		private String openType;
	/**
	* 体温
	*/
		@ApiModelProperty(value = "体温")
		private String temperature;

	/**
	 * 机构路径
	 */
	@ApiModelProperty(value = "机构路径")
		private String orgPosition;

	@ApiModelProperty(value = "tenantId")
	private String tenantId;

	@ApiModelProperty(value = "指令序号")
	private String commandSeq;

	@ApiModelProperty(value = "开门是否成功，1成功，-1失败")
	private Integer openSuccess;

	@ApiModelProperty(value = "失败原因")
	private String failReason;


}
