package incheon.ags.cms.download.service;


import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;

import java.util.List;
import java.util.Map;

public interface ExcelDownloadService {

    /**
     * Excel 파일 다운로드
     * @param fileName  파일명
     * @param data      데이터
     * @param columnMap 컬럼 영문명-한글명 맵
     * @return
     * @throws Exception
     */
    ResponseEntity<Resource> downloadExcel(String fileName, List<Map<String, Object>> data, Map<String, String> columnMap) throws Exception;

}


