feat: 인스타 릴스 — 릴스 mp4 저장·공개 주소(/v1/reel)·REELS 게시 API, 관리자 relay, 소개 릴스 HyperFrames 프로젝트·배경 5장, 인스타 올리기 nginx 타임아웃 600s
This commit is contained in:
1 parent
70fe14ae39
commit
7469e58a89
64 files changed
+928
-11
No files matched your search
@@ -0,0 +1,34 @@
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import Field
|
||||
|
||||
from common.models.gmodel import Res_WebPacketProtocol, WebPacketProtocol
|
||||
|
||||
|
||||
class Req_ReelCreate(WebPacketProtocol):
|
||||
title: str = Field(max_length=80, description="인스타 캡션 첫 줄")
|
||||
caption: str = Field(default="", max_length=2000)
|
||||
hashtags: str = Field(default="", max_length=600, description="인스타 캡션 뒤에 붙는 해시태그")
|
||||
video: str = Field(description="mp4(H.264, 9:16), base64, 30MB 이하")
|
||||
cover: Optional[str] = Field(default=None, description="표지 JPEG, base64 (없으면 인스타가 첫 장면을 쓴다)")
|
||||
|
||||
|
||||
class Res_Reel(Res_WebPacketProtocol):
|
||||
reel_id: Optional[int] = None
|
||||
video_url: Optional[str] = None
|
||||
cover_url: Optional[str] = None
|
||||
ig_media_id: Optional[str] = None
|
||||
|
||||
|
||||
class ReelItem(WebPacketProtocol):
|
||||
reel_id: int
|
||||
title: str
|
||||
created_at: datetime
|
||||
video_url: str
|
||||
cover_url: Optional[str] = None
|
||||
ig_media_id: Optional[str] = None
|
||||
|
||||
|
||||
class Res_ReelList(Res_WebPacketProtocol):
|
||||
items: list[ReelItem] = []
|
||||
Reference in new issue
Block a user