package com.sz.admin.monitor.service;

import com.mybatisflex.core.service.IService;
import com.sz.admin.monitor.pojo.po.Camera;
import com.sz.admin.monitor.pojo.po.CameraSnapshot;
import com.sz.admin.monitor.pojo.vo.camerasnapshot.CameraSnapshotVO;

import java.io.Serializable;
import java.util.List;

/**
 * ClassName: CameraSnapshotService
 * Package: com.sz.admin.monitor.service
 * Description:
 */
public interface CameraSnapshotService extends IService<CameraSnapshot> {

    // 抓图的接口
    CameraSnapshotVO captureAndSave(Long id, int triggerType);

    CameraSnapshotVO captureAndSave(Long id, int triggerType, int presetIndex);

    // 根据 摄像头id和预置位查询
    CameraSnapshotVO selectByCameraIdAndPresetIndex(Long id, int presetIndex);
    // 根据摄像头ID查询快照列表
    List<CameraSnapshotVO> getExistSnapshotList(Long id);

}
