front 작업 중 .
This commit is contained in:
1 parent
ecbd81d091
commit
24d61f925a
8 files changed
+796
-124
No files matched your search
+91
-5
@@ -34,17 +34,39 @@ export interface LyricGenerateRequest {
|
||||
detail_region_info: string;
|
||||
language: string;
|
||||
region: string;
|
||||
task_id: string;
|
||||
}
|
||||
|
||||
// 가사 생성 응답
|
||||
export interface LyricGenerateResponse {
|
||||
success: boolean;
|
||||
lyric: string;
|
||||
language: string;
|
||||
prompt_used: string;
|
||||
task_id: string;
|
||||
lyric?: string;
|
||||
language?: string;
|
||||
prompt_used?: string;
|
||||
error_message: string | null;
|
||||
}
|
||||
|
||||
// 가사 상태 조회 응답
|
||||
export interface LyricStatusResponse {
|
||||
message: string;
|
||||
status: 'processing' | 'completed' | 'failed';
|
||||
task_id: string;
|
||||
lyric?: string;
|
||||
error_message?: string | null;
|
||||
}
|
||||
|
||||
// 가사 상세 조회 응답
|
||||
export interface LyricDetailResponse {
|
||||
id: number;
|
||||
task_id: string;
|
||||
project_id: number;
|
||||
status: string;
|
||||
lyric_prompt: string;
|
||||
lyric_result: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
// 노래 생성 요청
|
||||
export interface SongGenerateRequest {
|
||||
genre: string;
|
||||
@@ -56,6 +78,7 @@ export interface SongGenerateRequest {
|
||||
export interface SongGenerateResponse {
|
||||
success: boolean;
|
||||
task_id: string;
|
||||
suno_task_id: string;
|
||||
message: string;
|
||||
error_message: string | null;
|
||||
}
|
||||
@@ -79,12 +102,75 @@ export interface SongStatusResponse {
|
||||
// 노래 다운로드 응답
|
||||
export interface SongDownloadResponse {
|
||||
success: boolean;
|
||||
status: string;
|
||||
message: string;
|
||||
file_path: string;
|
||||
file_url: string;
|
||||
store_name: string;
|
||||
region: string;
|
||||
detail_region_info: string;
|
||||
task_id: string;
|
||||
language: string;
|
||||
song_result_url: string;
|
||||
created_at: string;
|
||||
error_message: string | null;
|
||||
}
|
||||
|
||||
// 영상 생성 응답
|
||||
export interface VideoGenerateResponse {
|
||||
success: boolean;
|
||||
task_id: string;
|
||||
creatomate_render_id: string
|
||||
message: string;
|
||||
error_message: string | null;
|
||||
}
|
||||
|
||||
// 영상 상태 확인 응답
|
||||
export interface VideoStatusResponse {
|
||||
success: boolean;
|
||||
status: string;
|
||||
message: string;
|
||||
render_data: {
|
||||
id: string;
|
||||
status: string;
|
||||
url: string | null;
|
||||
snapshot_url: string | null;
|
||||
} | null;
|
||||
raw_response?: Record<string, unknown>;
|
||||
error_message: string | null;
|
||||
}
|
||||
|
||||
// 영상 다운로드(결과 조회) 응답
|
||||
export interface VideoDownloadResponse {
|
||||
success: boolean;
|
||||
status: string;
|
||||
message: string;
|
||||
store_name: string;
|
||||
region: string;
|
||||
task_id: string;
|
||||
result_movie_url: string | null;
|
||||
created_at: string;
|
||||
error_message: string | null;
|
||||
}
|
||||
|
||||
// 이미지 업로드 요청용 URL 이미지 정보
|
||||
export interface ImageUrlItem {
|
||||
url: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
// 이미지 업로드 응답
|
||||
export interface ImageUploadResponse {
|
||||
task_id: string;
|
||||
file_count: number;
|
||||
image_urls: string[];
|
||||
images: Array<{
|
||||
id: number;
|
||||
img_name: string;
|
||||
img_order: number;
|
||||
img_url: string;
|
||||
source: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
// 언어 매핑
|
||||
export const LANGUAGE_MAP: Record<string, string> = {
|
||||
'한국어': 'Korean',
|
||||
|
||||
Reference in new issue
Block a user