package com.yuchen.saas.park.service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.dto.park.ImportantFaceMatchDTO;
import com.yuchen.saas.park.api.entity.park.PmgBatFaceCaptureEventData;
import com.yuchen.saas.park.api.request.PeopleCaptureQueryRequest;
import com.yuchen.saas.park.api.response.PeopleCaptureResponse;
import com.yuchen.saas.park.api.vo.park.FaceMatchVo;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.mp.support.Query;

import java.util.List;

/**
 * @author llc
 * @date 2022/6/16 16:18
 * @Description
 */
public interface FaceMatchService extends BaseService<PmgBatFaceCaptureEventData> {

    /**
     * 人脸信息上报
     * @param importantFaceMatchDTO
     * @return
     */
    boolean add(ImportantFaceMatchDTO importantFaceMatchDTO);

    /**
     * 人脸数据查询
     * @param parkId
     * @return
     */
    List<FaceMatchVo> latestDataQuery(Long parkId);

    List<FaceMatchVo> latestDataQuery2(Long parkId, String type, String limit);

    /**
     * 人脸数据分页查询
     * @param importantFaceMatchDTO
     * @param query
     * @return
     */
    IPage<FaceMatchVo> pageQuery(ImportantFaceMatchDTO importantFaceMatchDTO, Query query);

    /**
     * 抓拍数据分页查询
     * @param peopleCaptureQueryRequest
     * @param query
     * @return
     */
    IPage<PeopleCaptureResponse> listPage(PeopleCaptureQueryRequest peopleCaptureQueryRequest, Query query);
}
