package com.gxwebsoft.love.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.love.entity.Certificate;
import com.gxwebsoft.love.param.CertificateParam;
import com.gxwebsoft.love.vo.idcheck.BackRecognitionResult;
import com.gxwebsoft.love.vo.idcheck.FrontRecognitionResult;
import com.gxwebsoft.love.vo.idcheck.Response;

import java.util.List;

/**
 * 证件管理记录表Service
 *
 * @author 科技小王子
 * @since 2023-06-24 11:18:52
 */
public interface CertificateService extends IService<Certificate> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<Certificate>
     */
    PageResult<Certificate> pageRel(CertificateParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<Certificate>
     */
    List<Certificate> listRel(CertificateParam param);

    /**
     * 根据id查询
     *
     * @param certificateId 证件id
     * @return Certificate
     */
    Certificate getByIdRel(Integer certificateId);

    boolean verifyIdcard(Certificate param, List<String> files);

    Response<FrontRecognitionResult> idcardfrontrecongnition(String imageUrl);

    Response<BackRecognitionResult> idcardbackrecongnition(String imageUrl);

}
