站点同步

This commit is contained in:
tianmo committed 2026-10-17 14:41:32 +08:00
1 parent a64be50b73
commit 9cb8552a99
28 files changed
+1683 -18

No files matched your search

+10 -1
View File
@@ -1,5 +1,6 @@
export type BackupJobType = 'full_export' | 'full_restore' | 'backend_sync'
export type BackupJobType = 'full_export' | 'full_restore' | 'backend_sync' | 'site_sync'
export type BackupJobStatus = 'pending' | 'running' | 'done' | 'failed'
export type SiteSyncDirection = 'push' | 'pull'
export interface BackupJobItem {
id: string
@@ -51,3 +52,11 @@ export interface SyncDraft {
fromBackendId: string
toBackendId: string
}
export interface SiteSyncRequest {
targetBaseUrl: string
token: string
conflictMode: 'skip' | 'overwrite'
direction: SiteSyncDirection
resumeJobId?: string
}