feat: P2V 파이프라인 연동 및 좋아요·댓글·공유 지원

- 무빙 포스터(p2v_video)·롱컷(p2v_playreel) 파이프라인과 워커, 갤러리·내 콘텐츠 노출
- 좋아요·댓글: comment/video_reaction에 p2v_playreel_id 추가, 종류별 CHECK 확장
- P2V 소프트 삭제(is_deleted), queued/running 삭제 차단
- 공개 상세·공유 OG 페이지 추가
- 삭제된 부모 댓글이 목록에서 사라지던 has_live_reply 서브쿼리 버그 수정
- 마이그레이션: migration_2026-10-15_p2v_reactions.sql
This commit is contained in:
skkim committed 2026-10-15 10:42:30 +09:00
1 parent bb1ea12958
commit b16d4a8f1b
126 files changed
+6921 -62

No files matched your search

+16 -7
View File
@@ -9,8 +9,6 @@ Comment API Router
- DELETE /comment/{comment_id}: 본인 댓글 소프트 삭제 (로그인 필수)
"""
from typing import Literal
from fastapi import APIRouter, Depends, Query
from sqlalchemy.ext.asyncio import AsyncSession
@@ -20,7 +18,12 @@ from app.comment.schemas.comment_schema import (
CommentItem,
DeleteCommentResponse,
)
from app.comment.services.comment import create_comment, delete_comment, list_comments
from app.comment.services.comment import (
ContentType,
create_comment,
delete_comment,
list_comments,
)
from app.database.session import get_session
from app.dependencies.pagination import PaginationParams, get_pagination_params
from app.user.dependencies.auth import get_current_user, get_current_user_optional
@@ -62,9 +65,12 @@ router = APIRouter(prefix="/comment", tags=["Comment"])
async def post_comment(
video_id: int,
body: CommentCreateRequest,
type: Literal["video", "ssul"] = Query(
type: ContentType = Query(
default="video",
description="콘텐츠 종류. video.id 와 ssul_content.id 가 겹치므로 반드시 함께 보낼 것",
description=(
"콘텐츠 종류 (video: ADO2 영상, ssul: 썰박스, p2v_video: 무빙 포스터, "
"p2v_playreel: 롱컷). id 가 종류별로 겹치므로 반드시 함께 보낼 것"
),
),
current_user: User = Depends(get_current_user),
session: AsyncSession = Depends(get_session),
@@ -120,9 +126,12 @@ async def post_comment(
)
async def get_comments(
video_id: int,
type: Literal["video", "ssul"] = Query(
type: ContentType = Query(
default="video",
description="콘텐츠 종류. video.id 와 ssul_content.id 가 겹치므로 반드시 함께 보낼 것",
description=(
"콘텐츠 종류 (video: ADO2 영상, ssul: 썰박스, p2v_video: 무빙 포스터, "
"p2v_playreel: 롱컷). id 가 종류별로 겹치므로 반드시 함께 보낼 것"
),
),
current_user: User | None = Depends(get_current_user_optional),
session: AsyncSession = Depends(get_session),