브랜드 분석 페이지 수정중 .
This commit is contained in:
1 parent
5b2450ed60
commit
3774221202
9 files changed
+717
-6
No files matched your search
@@ -11,6 +11,7 @@ import {
|
||||
VideoGenerateResponse,
|
||||
VideoStatusResponse,
|
||||
VideoDownloadResponse,
|
||||
VideosListResponse,
|
||||
ImageUrlItem,
|
||||
ImageUploadResponse,
|
||||
KakaoLoginUrlResponse,
|
||||
@@ -268,6 +269,19 @@ export async function downloadVideo(taskId: string): Promise<VideoDownloadRespon
|
||||
return response.json();
|
||||
}
|
||||
|
||||
// 비디오 목록 조회 API
|
||||
export async function getVideosList(page: number = 1, pageSize: number = 10): Promise<VideosListResponse> {
|
||||
const response = await fetch(`${API_URL}/videos/?page=${page}&page_size=${pageSize}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
}
|
||||
|
||||
// 이미지 업로드 API (multipart/form-data)
|
||||
// 타임아웃: 5분 (많은 이미지 업로드 시 시간이 오래 걸릴 수 있음)
|
||||
const IMAGE_UPLOAD_TIMEOUT = 5 * 60 * 1000;
|
||||
|
||||
Reference in new issue
Block a user