feat: 작업 중이던 변경 반영 — 글 주제(동네 이야기·하늘·비·단풍·옷차림)와 주제별 묶음을 피드 사이사이에, 이야기 페이지(/talk), 애드센스 코드·ads.txt·개인정보처리방침, 사진 검증을 Blob 주소까지
This commit is contained in:
1 parent
1393fc465c
commit
3cb58b9f0f
22 files changed
+718
-60
No files matched your search
@@ -3,7 +3,7 @@ from typing import Optional
|
||||
|
||||
from pydantic import Field
|
||||
|
||||
from common.enums import TalkReport
|
||||
from common.enums import TalkReport, TalkTopic
|
||||
from common.models.gmodel import Req_WebPacketProtocol, Res_WebPacketProtocol, WebPacketProtocol
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ class TalkData(WebPacketProtocol):
|
||||
weather: Optional[str] = Field(None, description="쓸 때 그 동네 날씨 (18° 맑음)")
|
||||
body: str
|
||||
image: Optional[str] = Field(None, description="올린 사진 주소")
|
||||
topic: TalkTopic = TalkTopic.LOCAL
|
||||
like_count: int
|
||||
liked: bool
|
||||
mine: bool
|
||||
@@ -27,6 +28,7 @@ class Req_Talk(Req_WebPacketProtocol):
|
||||
region_code: str = Field(min_length=10, max_length=10)
|
||||
body: str = Field(min_length=1, max_length=200, description="공백을 줄인 뒤 100자까지")
|
||||
image: Optional[str] = Field(None, max_length=200, description="먼저 올린 사진 주소 (POST /v1/talk/image 결과)")
|
||||
topic: TalkTopic = Field(TalkTopic.LOCAL, description="글 주제. 안 고르면 동네 이야기")
|
||||
|
||||
|
||||
class Req_TalkReport(Req_WebPacketProtocol):
|
||||
@@ -38,6 +40,15 @@ class Res_TalkList(Res_WebPacketProtocol):
|
||||
next_cursor: Optional[str] = Field(None, description="다음 페이지를 받을 때 그대로 cursor 로 보낸다")
|
||||
|
||||
|
||||
class TalkGroup(WebPacketProtocol):
|
||||
topic: int = Field(description="0 이면 '동네 사람들'(모든 주제), 아니면 TalkTopic")
|
||||
talks: list[TalkData] = []
|
||||
|
||||
|
||||
class Res_TalkGroups(Res_WebPacketProtocol):
|
||||
groups: list[TalkGroup] = Field([], description="동네 사람들 묶음은 늘 있고(비어 있을 수 있음), 주제 묶음은 3장 이상일 때만")
|
||||
|
||||
|
||||
class Res_Talk(Res_WebPacketProtocol):
|
||||
talk: Optional[TalkData] = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user