Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { BusinessId string `json:"businessId"` // 业务ID Title string `json:"title"` // 标题,建议不超过10个汉字 SubTitle string `json:"subTitle"` // 副标题,建议不超过10个汉字 Content string `json:"content"` // 内容,建议不超过20个汉字 Extra map[string]string `json:"extra"` // 自定义消息。只支持一维 CallBack string `json:"callback"` // 送达回执地址,供推送厂商调用,最大128字节 CallbackParam string `json:"callbackParam"` // 自定义回执参数 }
type PlatformType ¶ added in v1.0.1
type PlatformType string
const ( HUAWEI_PLATFORM PlatformType = "huawei" XIAOMI_PLATFORM PlatformType = "xiaomi" MEIZU_PLATFORM PlatformType = "meizu" VIVO_PLATFORM PlatformType = "vivo" OPPO_PLATFORM PlatformType = "oppo" IOS_CERT_PLATFORM PlatformType = "ios" IOS_TOKEN_PLATFORM PlatformType = "ios-token" )
type PushClientInterface ¶
type PushConfig ¶
type PushMessageRequest ¶
type PushMessageResponse ¶
type PushMessageResponse struct { }
Click to show internal directories.
Click to hide internal directories.