新增文件导出功能

This commit is contained in:
menghaiwen@fusen.cn
2024-03-07 18:23:19 +08:00
parent 0c9ae44379
commit 33a489ab93

View File

@@ -59,13 +59,6 @@ message ExportData {
repeated string child = 1; repeated string child = 1;
} }
message ExportFile {
string file_type = 1;// 文件类型
string file_name = 2;// 文件名称
bytes file_bytes = 3;// 文件流
repeated ExportFile child =4; // 如果是zip类型递归
}
message ExportCsvReq { message ExportCsvReq {
repeated ExportData file_data = 1; // 文件数据 repeated ExportData file_data = 1; // 文件数据
string file_name = 2;// 文件名称 string file_name = 2;// 文件名称
@@ -84,8 +77,9 @@ message ExportExcelRes {
} }
message ExportZipReq { message ExportZipReq {
repeated ExportFile file_data = 1; // 文件数据 string file_type = 1;// 文件类型
string file_name = 2;// 文件名称 string file_name = 2;// 文件名称
bytes file_bytes = 3;// 文件流
} }
message ExportZipRes { message ExportZipRes {
string export_file_path = 1; // 下载链接 string export_file_path = 1; // 下载链接