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 javax.validation.constraints.NotNull;

/**
 * <p>
 * 人员登记子表
 * </p>
 *
 * @author miaoqs
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pl_door_user_point_set_item")
@ApiModel(value="PlDoorUserPointSetItem对象", description="人员登记子表")
public class PlDoorUserPointSetItem extends TenantEntity {

    /**
     * 人员登记主表id
     */
    @ApiModelProperty(name = "userPointSetId", value = "人员登记主表id")
    private Long userPointSetId;
    /**
     * 门禁点id
     */
    @NotNull(message = "门禁点id不能为空")
    @ApiModelProperty(name = "doorPointId", value = "门禁点id")
    private Long doorPointId;
    /**
     * 门禁点名称
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "doorPointNameStr", value = "门禁点名称")
    private String doorPointNameStr;
    /**
     * 门禁点所属门禁组id
     */
    @NotNull(message = "门禁点所属门禁组id不能为空")
    @ApiModelProperty(name = "doorGroupId", value = "门禁点所属门禁组id")
    private Long doorGroupId;
    /**
     * 门禁组名称
     */
    @TableField(exist = false)
    @ApiModelProperty(name = "doorGroupNameStr", value = "门禁组名称")
    private String doorGroupNameStr;
    /**
     * 设备名称
     */
    @NotNull(message = "设备名称")
    @ApiModelProperty(name = "deviceName", value = "设备名称")
    private String deviceName;
    /**
     * 人脸是否支持下发 1:支持;2:不支持;
     */
    @NotNull(message = "人脸是否支持下发 1:支持;2:不支持;")
    @ApiModelProperty(name = "izFaceSupportSend", value = "人脸是否支持下发 1:支持;2:不支持;")
    private String izFaceSupportSend;
    /**
     * 人脸下发状态:0:未下发;1:已下发;2:无需下发;3:下发失败;
     */
    @NotNull(message = "人脸下发状态:0:未下发;1:已下发;2:下发失败;")
    @ApiModelProperty(name = "faceSendState", value = "人脸下发状态:0:未下发;1:已下发;2:下发失败;")
    private String faceSendState;
    /**
     * 人脸下发失败消息
     */
    @NotNull(message = "人脸下发失败消息")
    @ApiModelProperty(name = "faceErrorMsg", value = "人脸下发失败消息")
    private String faceErrorMsg;

    /**
     * 二维码是否支持下发 1:支持;2:不支持;
     */
    @NotNull(message = "二维码是否支持下发 1:支持;2:不支持;")
    @ApiModelProperty(name = "izQrcodeSupportSend", value = "二维码是否支持下发 1:支持;2:不支持;")
    private String izQrcodeSupportSend;
    /**
     * 二维码下发状态:0:未下发;1:已下发;2:无需下发;3:下发失败;
     */
    @NotNull(message = "二维码下发状态:0:未下发;1:已下发;2:下发失败;")
    @ApiModelProperty(name = "qrcodeSendState", value = "二维码下发状态:0:未下发;1:已下发;2:下发失败;")
    private String qrcodeSendState;
    /**
     * 二维码下发失败消息
     */
    @NotNull(message = "二维码下发失败消息")
    @ApiModelProperty(name = "qrcodeErrorMsg", value = "二维码下发失败消息")
    private String qrcodeErrorMsg;

}
