package com.zksy.dispatch.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.dispatch.domain.DisEventTrack;
import com.zksy.dispatch.domain.DisEventTrackLog;
import com.zksy.dispatch.dto.EventTrackPageInDTO;

import java.util.List;

/**
 * 跟踪解除服务接口
 */
public interface DisEventTrackService extends IService<DisEventTrack> {

    /**
     * 分页查询跟踪记录
     */
    Page<DisEventTrack> findByPage(EventTrackPageInDTO dto);

    /**
     * 添加跟踪日志
     */
    boolean addTrackLog(DisEventTrackLog log);

    /**
     * 解除跟踪
     */
    boolean release(Long id);

    /**
     * 关闭跟踪
     */
    boolean close(Long id);

    /**
     * 查询跟踪日志列表
     */
    List<DisEventTrackLog> getTrackLogs(Long trackId);
}
