Files
seven-skies/internal/pkg/domain/weather_event.go
2025-12-04 22:58:57 +09:00

18 lines
356 B
Go

package domain
import "time"
type Celsius float64
type Temperature struct {
Value Celsius
}
type WeatherEvent struct {
Date time.Time
Condition WeatherCondition `json:"condition"`
Temperature *Temperature `json:"temperature"`
High *Temperature `json:"high,omitempty"`
Low *Temperature `json:"low,omitempty"`
}