From 4c5d75dda661380621301c8579d9d93bdbbe9268 Mon Sep 17 00:00:00 2001 From: Sinh Date: Fri, 3 Dec 2021 16:56:48 +0700 Subject: [PATCH] update model --- model.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/model.go b/model.go index 1f75361..7e80094 100644 --- a/model.go +++ b/model.go @@ -14,8 +14,8 @@ type PushRequest struct { Body string `json:"body"` Data string `json:"data"` Users []string `json:"users"` - Label string `json:"label"` - Category string `json:"category"` + Label string `json:"label,omitempty"` + Category string `json:"category,omitempty"` } // PushResponse ... @@ -72,8 +72,7 @@ type ListNotificationResponse struct { // Read ... type Read struct { - APIKey string `json:"apiKey"` - ID string `json:"id"` + ID string `json:"id"` } // ReadResponse ... @@ -89,7 +88,7 @@ type read struct { // CountUnread ... type CountUnread struct { User string `json:"user"` - Category string `json:"category"` + Category string `json:"category,omitempty"` } // CountUnreadResponse ...