db-data-export

This commit is contained in:
zgq
2024-03-28 13:13:09 +08:00
parent fc9ce84773
commit f425604b15
27 changed files with 520 additions and 20 deletions

View File

@ -19,7 +19,15 @@ public enum ExportFileSuffix {
//html
HTML(".html"),
//pdf
PDF(".pdf");
PDF(".pdf"),
SQL(".sql"),
JSON(".json"),
CSV(".csv"),
ZIP(".zip");
private String suffix;

View File

@ -45,7 +45,11 @@ public enum ExportTypeEnum implements BaseEnum<String> {
/**
* PDF
*/
PDF("PDF");
PDF("PDF"),
JSON("JSON"),
SQL("SQL");
final String description;

View File

@ -0,0 +1,18 @@
package ai.chat2db.server.domain.api.param.datasource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author: zgq
* @date: 2024年03月24日 13:17
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DatabaseExportDataParam {
private String databaseName;
private String schemaName;
private String exportType;
}