From e20af53b1304ec47067b81ce69ca512768324ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hila=CC=81rio=20Coelho?= Date: Thu, 25 Nov 2021 12:41:17 +0000 Subject: [PATCH] removed omitempty json tag from ForegroundShow field --- push/model/message_hm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/push/model/message_hm.go b/push/model/message_hm.go index bf56d4e..85d6a41 100644 --- a/push/model/message_hm.go +++ b/push/model/message_hm.go @@ -65,11 +65,11 @@ type AndroidNotification struct { VibrateConfig []string `json:"vibrate_config,omitempty"` Visibility string `json:"visibility,omitempty"` LightSettings *LightSettings `json:"light_settings,omitempty"` - ForegroundShow bool `json:"foreground_show,omitempty"` + ForegroundShow bool `json:"foreground_show"` } type ClickAction struct { - Type int `json:"type"` //when the type equals to 1, At least one of intent and action is not empty + Type int `json:"type"` // when the type equals to 1, At least one of intent and action is not empty Intent string `json:"intent,omitempty"` Action string `json:"action,omitempty"` Url string `json:"url,omitempty"`