package com.xueyi.system.api.pass.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.common.core.annotation.Excel;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

import static com.xueyi.common.core.constant.basic.EntityConstants.NAME;
import static com.xueyi.common.core.constant.basic.EntityConstants.REMARK;
import static com.xueyi.common.core.constant.basic.EntityConstants.SORT;
import static com.xueyi.common.core.constant.basic.EntityConstants.STATUS;

/**
 * 人员识别 持久化对象
 *
 * @author xueyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "dm_recognized_records", excludeProperty = { STATUS, SORT, REMARK, NAME })
public class DmRecognizedRecordsPo extends TBaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 人员名 */
    @Excel(name = "人员名")
    protected String userName;

    /** 资源id */
    @Excel(name = "资源url")
    protected String faceUrl;

    /** 岗位ID */
    @Excel(name = "岗位ID")
    protected Long postId;

    /** 人员ID */
    @Excel(name = "人员ID")
    protected Long userId;

    /** 数字人ID */
    @Excel(name = "设备ID")
    protected String devId;

    /** 1：人员，2：陌生人 */
    @Excel(name = "1：人员，2：陌生人")
    protected Integer type;

    /** 是否是第一次,1:是;2:不是 */
    @Excel(name = "是否是第一次,1:是;2:不是")
    protected Integer isFirst;

    /** 验证通过，1:通过；0:失败 */
    @Excel(name = "验证通过，1:通过；0:失败")
    protected Integer authOk;

    /** 面部匹配度（分数） */
    @Excel(name = "面部匹配度", readConverterExp = "分=数")
    protected Double faceScore;

    /** 识别时间 */
    @Excel(name = "识别时间")
    protected Date recognizedTime;

    /** 所属组织ID */
    @Excel(name = "所属组织ID")
    protected Long deptId;

    protected Long resourceId;

}