feat: 내일 날씨 페이지(/tomorrow/...) 히어로 아래를 내일 것으로 — 내일의 각 5개·내일 3시간 예보·내일 열리는 행사·오늘 소식 버튼(GA tomorrow_to_today), 오늘 피드는 빼서 같은 지역 오늘 페이지와 본문이 97% 겹쳐 구글이 하나만 색인하던 것을 줄임
This commit is contained in:
1 parent
3c58552852
commit
9431dc31c2
11 files changed
+274
-73
No files matched your search
@@ -183,12 +183,23 @@ class WeatherWhy(WebPacketProtocol):
|
||||
note: str = Field(description="지금 값 (예: 체감 19°, 편한 범위 18~24° 안)")
|
||||
|
||||
|
||||
class TomorrowEvent(WebPacketProtocol):
|
||||
event_id: int
|
||||
name: str
|
||||
place: str
|
||||
icon: str
|
||||
start_date: date
|
||||
end_date: date
|
||||
|
||||
|
||||
class HeroTomorrow(WebPacketProtocol):
|
||||
"""히어로 '내일' 스위치. 3시간 칸 날씨는 /v1/weather/today?day=tomorrow 로 따로 받는다."""
|
||||
"""히어로 '내일' 스위치와 내일 페이지(/tomorrow/...). 3시간 칸 날씨는 /v1/weather/today?day=tomorrow 로 따로 받는다."""
|
||||
day: date
|
||||
weather_slots: dict[str, int] = Field(default_factory=dict, description="내일 구간별 날씨 점수 {morning·day·evening·night: 점수}")
|
||||
weather_why: dict[str, list[WeatherWhy]] = Field(default_factory=dict, description="내일 구간별 날씨 점수 근거")
|
||||
top1: Optional[TopIndex] = Field(default=None, description="내일 하루 점수로 1위인 각. score·summary 는 내일 값")
|
||||
ranked: list[TopIndex] = Field(default_factory=list, description="내일 하루 점수 순위 5개 (내일 페이지 '내일의 각'). top1 이 첫째")
|
||||
events: list[TomorrowEvent] = Field(default_factory=list, description="내일 열리는 같은 시도 근처 행사 최대 3개 (내일 페이지)")
|
||||
|
||||
|
||||
class Hero(WebPacketProtocol):
|
||||
|
||||
Reference in new issue
Block a user