update model

This commit is contained in:
Sinh 2021-12-03 16:56:48 +07:00
parent b1202dc4e3
commit 4c5d75dda6
1 changed files with 4 additions and 5 deletions

View File

@ -14,8 +14,8 @@ type PushRequest struct {
Body string `json:"body"` Body string `json:"body"`
Data string `json:"data"` Data string `json:"data"`
Users []string `json:"users"` Users []string `json:"users"`
Label string `json:"label"` Label string `json:"label,omitempty"`
Category string `json:"category"` Category string `json:"category,omitempty"`
} }
// PushResponse ... // PushResponse ...
@ -72,7 +72,6 @@ type ListNotificationResponse struct {
// Read ... // Read ...
type Read struct { type Read struct {
APIKey string `json:"apiKey"`
ID string `json:"id"` ID string `json:"id"`
} }
@ -89,7 +88,7 @@ type read struct {
// CountUnread ... // CountUnread ...
type CountUnread struct { type CountUnread struct {
User string `json:"user"` User string `json:"user"`
Category string `json:"category"` Category string `json:"category,omitempty"`
} }
// CountUnreadResponse ... // CountUnreadResponse ...