Browse Source

update

tags/v1.0.4
DengBiao 1 year ago
parent
commit
386b317bba
2 changed files with 3 additions and 2 deletions
  1. +0
    -1
      hdl/jg_push.go
  2. +3
    -1
      md/jg_push.go

+ 0
- 1
hdl/jg_push.go View File

@@ -11,7 +11,6 @@ import (
)

func Send(appKey, appSecret string, param md.PushParam) (string, string, error) {

if appKey == "" || appSecret == "" {
return "", "", errors.New("配置未设置")
}


+ 3
- 1
md/jg_push.go View File

@@ -4,7 +4,8 @@ type PushAndroid struct {
Alert string `json:"alert"` //通知内容
//BuilderID int64 `json:"builder_id"` 通知栏样式 ID
Extras interface{} `json:"extras"`
Title string `json:"title"` //通知标题
Intent interface{} `json:"intent"` //指定跳转页面
Title string `json:"title"` //通知标题
}
type PushIos struct {
Alert interface{} `json:"alert"`
@@ -41,6 +42,7 @@ type PushParam struct {
Title string `json:"title"`
Content string `json:"content"`
Extras interface{} `json:"extras"`
Intent interface{} `json:"intent"`
}

type SkipData struct {


Loading…
Cancel
Save