/*
 *      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.estate.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;

import javax.validation.constraints.NotBlank;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2022-01-06
 */
@Data
@TableName("estate_authorize_records")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AuthorizeRecords对象", description = "AuthorizeRecords对象")
public class AuthorizeRecords extends BaseEntity {

	private static final long serialVersionUID = 1L;

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

	/**
	 * 用户类型
	 */
	@ApiModelProperty(value = "用户类型")
	private String userType;
	/**
	* 设备序列号
	*/
	@NotBlank
		@ApiModelProperty(value = "设备序列号")
		private String deviceSerialNum;
	/**
	* 设备名称
	*/
		@ApiModelProperty(value = "设备名称")
		private String deviceName;
	/**
	* 设备安装位置
	*/
		@ApiModelProperty(value = "设备安装位置")
		private String deviceAddress;
	/**
	* 授权指令名称
	*/
		@ApiModelProperty(value = "授权指令名称")
		private String authCmd;
	/**
	 * 授权指令请求号
	 */
	@ApiModelProperty(value = "授权指令请求号")
	private String authReqNo;
	/**
	* 授权状态，1-待处理，2-成功，3-失败
	*/
		@ApiModelProperty(value = "授权状态，1-待处理，2-成功，3-失败")
		private Integer authStatus;
	/**
	* 授权数据，json
	*/
		@ApiModelProperty(value = "授权数据，json")
		private String authReqData;
	/**
	* 授权响应数据
	*/
		@ApiModelProperty(value = "授权响应数据")
		private String authRespData;
	/**
	* 授权响应信息
	*/
		@ApiModelProperty(value = "授权响应信息")
		private String authRespMsg;
	/**
	* 园区ID
	*/
		@ApiModelProperty(value = "园区ID")
		private Long agencyId;
	/**
	* 区域ID
	*/
		@ApiModelProperty(value = "区域ID")
		private Long residentialId;
	/**
	* 楼栋ID
	*/
		@ApiModelProperty(value = "楼栋ID")
		private Long buildingId;
	/**
	* 单元ID
	*/
		@ApiModelProperty(value = "单元ID")
		private Long unitId;
	/**
	* 房间ID
	*/
		@ApiModelProperty(value = "房间ID")
		private Long roomId;
	/**
	* 企业ID
	*/
		@ApiModelProperty(value = "企业ID")
		private Long enterpriseId;
	/**
	* 园区名称
	*/
		@ApiModelProperty(value = "园区名称")
		private String agencyName;
	/**
	* 区域名称
	*/
		@ApiModelProperty(value = "区域名称")
		private String residentialName;
	/**
	* 楼栋名称
	*/
		@ApiModelProperty(value = "楼栋名称")
		private String buildingName;
	/**
	* 单元名称
	*/
		@ApiModelProperty(value = "单元名称")
		private String unitName;
	/**
	* 房间名称
	*/
		@ApiModelProperty(value = "房间名称")
		private String roomName;
	/**
	* 企业名称
	*/
		@ApiModelProperty(value = "企业名称")
		private String enterpriseName;

		@NotBlank
		private String tenantId;


}
