From 13990d8d8f9d32cf223a8d0a745e971378d68431 Mon Sep 17 00:00:00 2001 From: jinsu Date: Thu, 4 Dec 2025 22:53:18 +0900 Subject: [PATCH] define WeatherEvent --- internal/pkg/domain/weather_event.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 internal/pkg/domain/weather_event.go diff --git a/internal/pkg/domain/weather_event.go b/internal/pkg/domain/weather_event.go new file mode 100644 index 0000000..d1c2efe --- /dev/null +++ b/internal/pkg/domain/weather_event.go @@ -0,0 +1,17 @@ +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"` +}