노래 생성까지 완료
This commit is contained in:
1 parent
dd855ff11a
commit
caf7b1ab60
4 files changed
+287
-7
No files matched your search
@@ -122,6 +122,29 @@ class PollingSongResponse(BaseModel):
|
||||
error_message: Optional[str] = Field(None, description="에러 메시지 (실패 시)")
|
||||
|
||||
|
||||
class DownloadSongResponse(BaseModel):
|
||||
"""노래 다운로드 응답 스키마
|
||||
|
||||
Usage:
|
||||
GET /song/download/{task_id}
|
||||
Downloads the generated song and returns the local file path.
|
||||
|
||||
Example Response:
|
||||
{
|
||||
"success": true,
|
||||
"message": "노래 다운로드가 완료되었습니다.",
|
||||
"file_path": "/media/2025-01-15/01234567-89ab-7def-0123-456789abcdef/song.mp3",
|
||||
"file_url": "http://localhost:8000/media/2025-01-15/01234567-89ab-7def-0123-456789abcdef/song.mp3"
|
||||
}
|
||||
"""
|
||||
|
||||
success: bool = Field(..., description="다운로드 성공 여부")
|
||||
message: str = Field(..., description="응답 메시지")
|
||||
file_path: Optional[str] = Field(None, description="저장된 파일 경로 (상대 경로)")
|
||||
file_url: Optional[str] = Field(None, description="파일 접근 URL")
|
||||
error_message: Optional[str] = Field(None, description="에러 메시지 (실패 시)")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# Dataclass Schemas (Legacy)
|
||||
# =============================================================================
|
||||
|
||||
Reference in new issue
Block a user