Add comments.

This commit is contained in:
Владислав Весельский 2025-01-29 14:28:24 +03:00
parent f0a01461fa
commit 7462961556
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package fcm package fcm
// Message to send by Firebase Cloud Messaging Service.
// https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#resource:-message
type Message struct { type Message struct {
// Union field target can be only one of the following: // Union field target can be only one of the following:
Token string `json:"token,omitempty"` Token string `json:"token,omitempty"`
@ -16,6 +18,7 @@ type Message struct {
} }
// Basic notification template to use across all platforms. // Basic notification template to use across all platforms.
// https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification
type Notification struct { type Notification struct {
Title string `json:"title,omitempty"` Title string `json:"title,omitempty"`
Body string `json:"body,omitempty"` Body string `json:"body,omitempty"`