package com.njcn.event.common.service;

import com.njcn.device.pq.pojo.vo.AreaLineInfoVO;
import com.njcn.event.common.pojo.dto.LineDetailDataCommDTO;
import com.njcn.event.pojo.param.ExportParam;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * pqs
 *
 * @author cdf
 * @date 2026/1/17
 */
public interface CommMonitorEventReportService {

    void getLineExport(ExportParam exportParam, LineDetailDataCommDTO lineDetailDataCommDTO, HttpServletResponse response);


    /**
     * 暂态事件报告
     * @param index
     */
    void createEventReport(List<String> index, HttpServletResponse response) throws IOException, InvalidFormatException, ExecutionException, InterruptedException;

    /**
     * 暂态事件报告存储，返回文件路径
     * @param index
     * @return
     */
    String saveStableEventReport(List<String> index, Map<String, AreaLineInfoVO> map, String fileName);
}
