feat(results): add generated video management
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Production Browser E2E (push) Failing after 2024h53m37s
Deploy / Deploy Production (push) Failing after 2024h53m39s
Deploy / Build Production Runtime Images (push) Failing after 2025h2m41s

This commit is contained in:
Xiaoxia AI
2026-06-24 06:28:06 +08:00
parent e94541d793
commit 91df06b84d
11 changed files with 230 additions and 29 deletions
+8
View File
@@ -26,6 +26,9 @@ export interface GeneratedVideoItem {
width: number;
height: number;
fps: number;
status?: string;
review_status?: 'pending_review' | 'approved' | 'rejected';
generation_params?: Record<string, unknown>;
}
export const createGenerationTask = async (data: {
@@ -55,6 +58,11 @@ export const getGeneratedVideos = async (projectId: string): Promise<GeneratedVi
return response.data.items;
};
export const updateGeneratedVideoReviewStatus = async (videoId: string, reviewStatus: 'pending_review' | 'approved' | 'rejected'): Promise<GeneratedVideoItem> => {
const response = await apiClient.patch(`/generated-videos/${videoId}/review`, { review_status: reviewStatus });
return response.data;
};
export const getGeneratedVideoDownloadUrl = async (videoId: string): Promise<string> => {
const response = await apiClient.get(`/generated-videos/${videoId}/download-url`);
return response.data.download_url;