优化
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.baiyue.common.core.export;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/** Versioned contracts shared by File Service and business export providers. */
|
||||
public final class ExportContracts {
|
||||
private ExportContracts() { }
|
||||
|
||||
public record ExportCommand(
|
||||
int schemaVersion, String eventId, String taskId, String exportType,
|
||||
int dispatchVersion, OffsetDateTime occurredAt, String traceId) { }
|
||||
|
||||
public record ExportBatchRequest(
|
||||
String taskId, String tenantId, String appCode, String requestedBy,
|
||||
int dispatchVersion, Map<String, Object> parameters, String cursor,
|
||||
String snapshotToken, int limit) { }
|
||||
|
||||
public record ExportBatchResponse(
|
||||
int schemaVersion, String schemaHash, String snapshotToken,
|
||||
List<ExportColumn> columns, List<Map<String, Object>> rows,
|
||||
String nextCursor, boolean hasMore, Long totalRows) { }
|
||||
|
||||
public record ExportColumn(String key, String title, ExportColumnType type, Integer width) { }
|
||||
|
||||
public enum ExportColumnType { STRING, INTEGER, DECIMAL, BOOLEAN, DATE, DATETIME }
|
||||
}
|
||||
Reference in New Issue
Block a user