remove endpoint at the video of get_videos
This commit is contained in:
1 parent
c89e510c98
commit
7f0ae81351
9 files changed
+3
-420
No files matched your search
@@ -4,7 +4,7 @@ SNS API Schemas
|
||||
Instagram 업로드 관련 Pydantic 스키마를 정의합니다.
|
||||
"""
|
||||
from datetime import datetime
|
||||
from typing import Any, Optional
|
||||
from typing import Optional
|
||||
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
@@ -98,20 +98,6 @@ class Media(BaseModel):
|
||||
children: Optional[list["Media"]] = None
|
||||
|
||||
|
||||
class MediaList(BaseModel):
|
||||
"""미디어 목록 응답"""
|
||||
|
||||
data: list[Media] = Field(default_factory=list)
|
||||
paging: Optional[dict[str, Any]] = None
|
||||
|
||||
@property
|
||||
def next_cursor(self) -> Optional[str]:
|
||||
"""다음 페이지 커서"""
|
||||
if self.paging and "cursors" in self.paging:
|
||||
return self.paging["cursors"].get("after")
|
||||
return None
|
||||
|
||||
|
||||
class MediaContainer(BaseModel):
|
||||
"""미디어 컨테이너 상태"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user