2024-05-12 00:18:53 +08:00
|
|
|
from liteyuki.internal.base.data import LiteModel
|
2024-03-29 17:44:48 +08:00
|
|
|
|
2024-04-01 11:37:29 +08:00
|
|
|
|
|
|
|
class Location(LiteModel):
|
|
|
|
name: str = ""
|
|
|
|
id: str = ""
|
2024-04-10 23:47:10 +08:00
|
|
|
lat: str = ""
|
|
|
|
lon: str = ""
|
|
|
|
adm2: str = ""
|
|
|
|
adm1: str = ""
|
2024-04-01 11:37:29 +08:00
|
|
|
country: str = ""
|
2024-04-10 23:47:10 +08:00
|
|
|
tz: str = ""
|
|
|
|
utcOffset: str = ""
|
|
|
|
isDst: str = ""
|
|
|
|
type: str = ""
|
|
|
|
rank: str = ""
|
|
|
|
fxLink: str = ""
|
|
|
|
sources: str = ""
|
|
|
|
license: str = ""
|
2024-04-01 11:37:29 +08:00
|
|
|
|
2024-04-05 07:02:18 +08:00
|
|
|
|
2024-04-15 18:04:19 +08:00
|
|
|
class CityLookup(LiteModel):
|
2024-04-10 23:47:10 +08:00
|
|
|
code: str = ""
|
2024-04-15 18:04:19 +08:00
|
|
|
location: list[Location] = [Location()]
|
2024-04-05 07:02:18 +08:00
|
|
|
|
|
|
|
|
2024-04-15 18:04:19 +08:00
|
|
|
class Now(LiteModel):
|
2024-04-10 23:47:10 +08:00
|
|
|
obsTime: str = ""
|
|
|
|
temp: str = ""
|
|
|
|
feelsLike: str = ""
|
|
|
|
icon: str = ""
|
|
|
|
text: str = ""
|
|
|
|
wind360: str = ""
|
|
|
|
windDir: str = ""
|
|
|
|
windScale: str = ""
|
|
|
|
windSpeed: str = ""
|
|
|
|
humidity: str = ""
|
|
|
|
precip: str = ""
|
|
|
|
pressure: str = ""
|
|
|
|
vis: str = ""
|
|
|
|
cloud: str = ""
|
|
|
|
dew: str = ""
|
|
|
|
sources: str = ""
|
|
|
|
license: str = ""
|
|
|
|
|
|
|
|
|
2024-04-15 18:04:19 +08:00
|
|
|
class WeatherNow(LiteModel):
|
|
|
|
code: str = ""
|
|
|
|
updateTime: str = ""
|
|
|
|
fxLink: str = ""
|
|
|
|
now: Now = Now()
|
|
|
|
|
|
|
|
|
|
|
|
class Daily(LiteModel):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class WeatherDaily(LiteModel):
|
2024-04-10 23:47:10 +08:00
|
|
|
code: str = ""
|
|
|
|
updateTime: str = ""
|
|
|
|
fxLink: str = ""
|
2024-04-15 18:04:19 +08:00
|
|
|
daily: list[str] = []
|