using Hotline.Share.Dtos.CallCenter; using Hotline.Share.Dtos.Order; using Hotline.Share.Enums.Article; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hotline.Application.ExportExcel { public interface IExportApplication { /// /// 导出数据 /// /// /// 数据集List /// 导出文件名(不传则生成yyyyMMddhhmmss) /// FileStreamResult ExportData(IList list, string? name); Stream GetExcelStream(ExportExcelDto dto, IList items, Func, T>? func = null); FileStreamResult GetExcelFile(ExportExcelDto dto, IList items,string fileName, Func, T>? func = null); /// /// 导入数据 /// /// 导出数据的类型 /// 导出请求入参类型 /// 请求入参 /// 被导出的数据 /// excel 文件名 /// 需要填写"统计"两字的字段名称, 字段名称必须是 T 中的字段 /// FileStreamResult GetExcelFile(ExportExcelDto dto, IList items, string fileName, string totalName) where T : new(); } }