From 4c320499447f5e08564052fd6bd758d800e7e61c Mon Sep 17 00:00:00 2001 From: jinsu Date: Thu, 4 Dec 2025 23:36:20 +0900 Subject: [PATCH] =?UTF-8?q?json=20tag=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/pkg/domain/weather_event.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/pkg/domain/weather_event.go b/internal/pkg/domain/weather_event.go index d1c2efe..cccc8d0 100644 --- a/internal/pkg/domain/weather_event.go +++ b/internal/pkg/domain/weather_event.go @@ -5,13 +5,13 @@ import "time" type Celsius float64 type Temperature struct { - Value Celsius + Value Celsius `json:"value"` } type WeatherEvent struct { - Date time.Time + Date time.Time `json:"date"` Condition WeatherCondition `json:"condition"` - Temperature *Temperature `json:"temperature"` + Temperature *Temperature `json:"temperature,omitempty"` High *Temperature `json:"high,omitempty"` Low *Temperature `json:"low,omitempty"` }