This commit is contained in:
2026-08-04 09:05:28 +08:00
parent fdb1e8af1c
commit 3afcff320a
116 changed files with 6749 additions and 749 deletions
@@ -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 }
}