mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-28 01:15:43 +02:00
change icon from object to string
This commit is contained in:
parent
04f2535e92
commit
99886d7f66
8 changed files with 23 additions and 77 deletions
server
|
@ -31,7 +31,7 @@ type message struct {
|
|||
Click string `json:"click,omitempty"`
|
||||
Actions []*action `json:"actions,omitempty"`
|
||||
Attachment *attachment `json:"attachment,omitempty"`
|
||||
Icon *icon `json:"icon,omitempty"`
|
||||
Icon string `json:"icon,omitempty"`
|
||||
PollID string `json:"poll_id,omitempty"`
|
||||
Sender string `json:"-"` // IP address of uploader, used for rate limiting
|
||||
Encoding string `json:"encoding,omitempty"` // empty for raw UTF-8, or "base64" for encoded bytes
|
||||
|
@ -45,12 +45,6 @@ type attachment struct {
|
|||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
type icon struct {
|
||||
URL string `json:"url"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Size int64 `json:"size,omitempty"`
|
||||
}
|
||||
|
||||
type action struct {
|
||||
ID string `json:"id"`
|
||||
Action string `json:"action"` // "view", "broadcast", or "http"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue