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:
1 parent
bb1ea12958
commit
b16d4a8f1b
126 files changed
+6921
-62
No files matched your search
@@ -0,0 +1,22 @@
|
||||
"""P2V 공개 상세 응답 — 공유 링크로 들어온 비로그인 사용자도 본다."""
|
||||
from datetime import datetime
|
||||
from typing import Literal
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class P2vDetailResponse(BaseModel):
|
||||
"""`GET /p2v/f1/{id}` · `GET /p2v/playreel/{id}` 응답.
|
||||
|
||||
썰박스 공개 상세와 같은 필드 구성이다. `is_liked_by_me` 는 비로그인이면 항상 False.
|
||||
댓글은 `GET /comment/video/{id}?type=...` 로 따로 조회한다.
|
||||
"""
|
||||
|
||||
type: Literal["p2v_video", "p2v_playreel"] = Field(..., description="콘텐츠 종류")
|
||||
content_id: int = Field(..., description="콘텐츠 고유 ID (type 안에서만 유일)")
|
||||
video_url: str = Field(..., description="완성 영상 재생 URL")
|
||||
poster_url: str | None = Field(None, description="썸네일 이미지 URL")
|
||||
title: str | None = Field(None, description="콘텐츠 이름")
|
||||
created_at: datetime = Field(..., description="생성 일시")
|
||||
like_count: int = Field(..., description="좋아요 수")
|
||||
is_liked_by_me: bool = Field(..., description="현재 로그인 사용자가 좋아요를 눌렀는지")
|
||||
Reference in new issue
Block a user