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_talk_back_recode")
@ApiModel(value="PlDoorTalkBackRecode对象", description="呼叫对讲记录")
public class PlDoorTalkBackRecode extends TenantEntity {

    /**
     * 用户id
     */
    @ApiModelProperty(name = "userId", value = "用户id")
    private Long userId;
    /**
     * 用户姓名
     */
    @ApiModelProperty(name = "userName", value = "用户姓名")
    private String userName;
    /**
     * 项目
     */
    @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;
    /**
     * 门禁名称
     */
    @ApiModelProperty(name = "doorPointId", value = "门禁名称")
    private Long doorPointId;
    /**
     * 呼叫类型1:呼叫;2:通话;3:开锁;4:结束;
     */
    @ApiModelProperty(name = "callBackType", value = "呼叫类型1:呼叫;2:通话;3:开锁;4:结束;")
    private String callBackType;
    /**
     * 呼叫时间
     */
    @ApiModelProperty(name = "callBackTime", value = "呼叫时间")
    private Date callBackTime;
    /**
     * 电话
     */
    @ApiModelProperty(name = "tellphone", value = "电话")
    private String tellphone;
    /**
     * 开始时间
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "startTime", value = "开始时间")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "endTime", value = "结束时间")
    private Date endTime;


}
