feat: 完善媒体维护、备份恢复与播放诊断

This commit is contained in:
jason jia
2026-10-20 14:01:26 +00:00
parent e34e81cce0
commit 1e8fe2396e
53 changed files with 2049 additions and 238 deletions
+27
View File
@@ -0,0 +1,27 @@
import { api } from './client'
export interface BackgroundTask {
id: string
kind: string
name: string
status: 'running' | 'completed' | 'failed' | 'interrupted' | string
stage?: string
source_path?: string
dest_path?: string
message?: string
error?: string
details?: string[]
metrics?: Record<string, number>
started_at: string
updated_at: string
finished_at?: string
}
export interface TaskSnapshot {
active: BackgroundTask[]
recent: BackgroundTask[]
}
export const tasksAPI = {
snapshot: () => api.get<TaskSnapshot>('/admin/tasks').then((r) => r.data),
}