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.DisEventTransfer;
import com.zksy.dispatch.domain.DisEventTransferLog;
import com.zksy.dispatch.dto.EventReportDTO;
import com.zksy.dispatch.dto.EventTransferPageInDTO;

import java.util.List;

/**
 * 转接报送服务接口
 */
public interface DisEventTransferService extends IService<DisEventTransfer> {

    /**
     * 分页查询转接报送记录
     */
    Page<DisEventTransfer> findByPage(EventTransferPageInDTO dto);

    /**
     * 执行转接
     */
    boolean doTransfer(DisEventTransfer entity);

    /**
     * 执行报送
     */
    boolean doReport(EventReportDTO dto);

    /**
     * 查询转接日志
     */
    List<DisEventTransferLog> getTransferLogs(Long transferId);
}
