package com.qmth.themis.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.themis.business.bean.exam.FaceVerifyBean;
import com.qmth.themis.business.entity.TOeFaceVerifyHistory;

import java.util.Map;

/**
 * @Description: 人脸验证记录 服务类
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
public interface TOeFaceVerifyHistoryService extends IService<TOeFaceVerifyHistory> {

    FaceVerifyBean verify(Long recordId, String type, String photoUrl, Integer faceCount, Double similarity, Double realness,
                          Long time, String exception);

    void save(Long id, Long recordId, String type, String photoUrl, Integer faceCount, Double similarity, Double realness,
              Long time, String exception, String batchNo);

    /**
     * count人脸数量异常
     *
     * @param recordId
     * @param exception
     * @param faceCount
     * @param multipleFace
     * @param type
     * @param batchNo
     * @return
     */
    public Map<String, Object> faceCountError(Long recordId, String exception, Integer faceCount, Boolean multipleFace, String type, String batchNo);

    /**
     * count人脸比对异常
     *
     * @param recordId
     * @param exception
     * @param type
     * @param batchNo
     * @return
     */
    public Map<String, Object> faceCompareError(Long recordId, String exception, String type, String batchNo);

    /**
     * 闭眼检测异常
     *
     * @param recordId
     * @param exception
     * @param type
     * @param batchNo
     * @return
     */
    public Map<String, Object> eyeCloseError(Long recordId, String exception, String type, String batchNo);

    /**
     * 真实性检测异常
     *
     * @param recordId
     * @param exception
     * @param type
     * @param batchNo
     * @return
     */
    public Map<String, Object> realnessError(Long recordId, String exception, String type, String batchNo);
}
