package com.qmth.themis.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.themis.business.bean.exam.LivenessVerifyBean;
import com.qmth.themis.business.entity.TOeLivenessVerifyHistory;

import java.util.Map;

/**
 * @Description: 活体验证记录 服务类
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
public interface TOeLivenessVerifyHistoryService extends IService<TOeLivenessVerifyHistory> {

    LivenessVerifyBean verify(Long recordId, String type, String actions, Integer retry, Long startTime,
                              Long finishTime, String exception);


    void save(Long id, Long recordId, String type, String actions, Integer retry, Long startTime, Long finishTime,
              String exception, String batchNo);

    /**
     * 活检动作错误异常
     *
     * @param recordId
     * @param exception
     * @param type
     * @param batchNo
     * @return
     */
    public Map<String, Object> livenessActionError(Long recordId, String exception, String type, String batchNo);
}
