chengf
2025-08-25 4fafe2304ab5e3df321808f5120b29baf27c7eab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.java110.job.export;
 
import com.java110.dto.data.ExportDataDto;
 
import java.text.ParseException;
 
/**
 * 导出数据适配器
 */
public interface IExportDataAdapt {
 
    /**
     * 导出数据 excel
     * @param exportDataDto
     */
    Object exportData(ExportDataDto exportDataDto) throws ParseException;
 
    /**
     * 获取导出文件类型(如 "xlsx", "docx" )
     * 用于后续生成文件名和处理流
     */
    default String getFileType() {
        return "xlsx";
    }
}