dto.go
943 Bytes
-
Fix temperature not being set to 0 due to json omitempty · 6e710f32
The issue was caused by the `omitempty` tag in the Go struct, which prevented the `temperature` field from being included in the JSON output when it was set to 0. Signed-off-by: Butui Hu <hot123tea123@gmail.com>
Butui Hu committed