From 1455d3a3dd317f94229f7314506c1c49a844c8e0 Mon Sep 17 00:00:00 2001 From: wsppt Date: Thu, 19 May 2022 15:34:46 +0800 Subject: [PATCH 1/3] Update notice.go --- notice.go | 1 + 1 file changed, 1 insertion(+) diff --git a/notice.go b/notice.go index 640d35d..613cf49 100644 --- a/notice.go +++ b/notice.go @@ -11,6 +11,7 @@ type AndroidNotice struct { Alert string `json:"alert"` Title string `json:"title,omitempty"` BuilderId int `json:"builder_id,omitempty"` + Intent map[string]string `json:"intent,omitempty"` Extras map[string]interface{} `json:"extras,omitempty"` } From 378df67d393901c43449b06add5833684b560c1c Mon Sep 17 00:00:00 2001 From: wsppt Date: Wed, 25 May 2022 15:17:37 +0800 Subject: [PATCH 2/3] add large_icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加large_icon字段 --- notice.go | 1 + 1 file changed, 1 insertion(+) diff --git a/notice.go b/notice.go index 613cf49..b7ad716 100644 --- a/notice.go +++ b/notice.go @@ -11,6 +11,7 @@ type AndroidNotice struct { Alert string `json:"alert"` Title string `json:"title,omitempty"` BuilderId int `json:"builder_id,omitempty"` + LargeIcon string `json:"large_icon,omitempty"` Intent map[string]string `json:"intent,omitempty"` Extras map[string]interface{} `json:"extras,omitempty"` } From 8c6ffc7c77340991ff0d4580107d61e71c93150b Mon Sep 17 00:00:00 2001 From: wsppt Date: Wed, 25 May 2022 17:49:33 +0800 Subject: [PATCH 3/3] add SmallIconUri MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加SmallIconUri --- notice.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/notice.go b/notice.go index b7ad716..2c81f9f 100644 --- a/notice.go +++ b/notice.go @@ -8,12 +8,13 @@ type Notice struct { } type AndroidNotice struct { - Alert string `json:"alert"` - Title string `json:"title,omitempty"` - BuilderId int `json:"builder_id,omitempty"` - LargeIcon string `json:"large_icon,omitempty"` - Intent map[string]string `json:"intent,omitempty"` - Extras map[string]interface{} `json:"extras,omitempty"` + Alert string `json:"alert"` + Title string `json:"title,omitempty"` + BuilderId int `json:"builder_id,omitempty"` + LargeIcon string `json:"large_icon,omitempty"` + SmallIconUri string `json:"small_icon_uri,omitempty"` + Intent map[string]string `json:"intent,omitempty"` + Extras map[string]interface{} `json:"extras,omitempty"` } type IOSNotice struct {