video_id 추가
This commit is contained in:
1 parent
05dc2e1cc2
commit
1569ead56c
3 files changed
+19
-2
No files matched your search
@@ -301,6 +301,17 @@ export async function getVideosList(page: number = 1, pageSize: number = 10): Pr
|
||||
return response.json();
|
||||
}
|
||||
|
||||
// task_id로 video_id 조회 (소셜 업로드용)
|
||||
export async function getVideoIdByTaskId(taskId: string): Promise<number | null> {
|
||||
try {
|
||||
const response = await getVideosList(1, 50);
|
||||
const found = response.items.find(v => v.task_id === taskId);
|
||||
return found?.video_id ?? null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// 비디오 삭제 API (개별 비디오 삭제)
|
||||
export async function deleteVideo(videoId: number): Promise<void> {
|
||||
const response = await authenticatedFetch(`${API_URL}/archive/videos/${videoId}`, {
|
||||
|
||||
Reference in new issue
Block a user