feat(ssulbox): 썰박스 생성 파이프라인 통합 및 콘텐츠 목록 UNION

This commit is contained in:
skkim committed 2026-08-11 11:03:03 +09:00
1 parent 8096837b13
commit 666c3bf6d1
77 files changed
+15912 -349

No files matched your search

+31 -1
View File
@@ -28,8 +28,9 @@ from app.social.api.routers.v1.internal import router as social_internal_router
from app.comment.api.routers.v1.comment import router as comment_router
from app.video.api.routers.internal.reactions import router as video_internal_router
from app.credit.api.routers.v1.credit import router as credit_router
from app.ssulbox.api.routers.v1.content import router as ssulbox_router
from app.utils.cors import CustomCORSMiddleware
from config import prj_settings
from config import prj_settings, ssulbox_settings
tags_metadata = [
{
@@ -290,6 +291,31 @@ tags_metadata = [
1. 사용자의 Instagram 계정이 연동되어 있어야 합니다 (Social Account API 참조)
2. task_id에 해당하는 비디오가 생성 완료 상태(result_movie_url 존재)여야 합니다
3. 업로드 성공 시 Instagram media_id와 permalink 반환
""",
},
{
"name": "Ssulbox",
"description": """
**썰박스** - 병맛 역사 썰툰 마케팅 쇼츠 생성
네이버 지도 링크나 업장명만 넣으면 4개 시나리오(조선왕·삼국지·그리스로마신화·오디세이)
중 하나로 대본 → 그림 → 목소리 → 영상을 자동 생성합니다.
**인증: 필요** - `Authorization: Bearer {access_token}` 헤더 필수
## 생성 흐름
1. `GET /ssul/search/place` - 업장 검색 (place_url 획득)
2. `POST /ssul/create` - 생성 요청. **이 시점에 크레딧 1이 선차감됩니다**
3. `GET /ssul/tasks/{id}` - 3초 간격 폴링 (step 0~4)
4. 완료 시 `video_url` 반환. 실패 시 크레딧 자동 환불
## ADO2 영상과의 차이
- ADO2: 크롤링 → 가사 → Suno 음악 → Creatomate 영상
- 썰박스: 크롤링 → 대본 → 그림·목소리(Gemini) → 로컬 렌더
크레딧 지갑과 계정은 **동일**합니다.
""",
},
]
@@ -423,6 +449,10 @@ app.include_router(sns_router) # SNS API 라우터 추가
app.include_router(dashboard_router) # Dashboard API 라우터 추가
app.include_router(credit_router, prefix="/user") # Credit API 라우터 추가
# 썰박스 — 설정으로 끌 수 있게 한다(생성 엔진 없이 배포하는 환경 대비)
if ssulbox_settings.SSULBOX_ENABLED:
app.include_router(ssulbox_router) # /ssul/* 라우터
# DEBUG 모드에서만 테스트 라우터 등록
if prj_settings.DEBUG:
app.include_router(auth_test_router, prefix="/user") # Test Auth API 라우터