mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-12-15 04:41:58 +09:00
Options based on enum values
This commit is contained in:
@@ -87,7 +87,7 @@ public class DataExportController {
|
||||
.header(HttpHeaders.CONTENT_DISPOSITION,
|
||||
"attachment; filename=\"export_" + schema.getJavaClass().getSimpleName() + ".xlsx\"")
|
||||
.body(toXlsx(sheetName, results, fields, raw));
|
||||
case JSON:
|
||||
case JSONL:
|
||||
throw new DbAdminException("JSON TODO");
|
||||
default:
|
||||
throw new DbAdminException("Unable to detect export format");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package tech.ailef.dbadmin.external.dto;
|
||||
|
||||
public enum DataExportFormat {
|
||||
CSV, XLSX, JSON;
|
||||
CSV, XLSX, JSONL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user