Added wind route and started forecast endpoint

This commit is contained in:
2025-06-17 17:38:31 +02:00
parent cbafd785b9
commit 9e419ec7bf
9 changed files with 378 additions and 18 deletions

19
types/forecast.go Normal file
View File

@@ -0,0 +1,19 @@
package types
// The ForecastEntity data type, representing the weather forecast
// of a single day
type ForecastEntity struct {
Date *ZephyrDate `json:"date"`
Min string `json:"min"`
Max string `json:"max"`
Condition string `json:"condition"`
Emoji string `json:"emoji"`
FeelsLike string `json:"feelsLike"`
Wind Wind `json:"wind"`
}
// The Forecast data type, representing the an set
// of ForecastEntity
type Forecast struct {
Forecast []ForecastEntity
}