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"`
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,7 +72,6 @@ type ListNotificationResponse struct {
// Read ...
type Read struct {
APIKey string `json:"apiKey"`
ID string `json:"id"`
}
@ -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 ...