Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaskNamePushCommonMsg = "task_push_common_msg" TaskNamePushCommonMsgErr = "task_push_common_msg_err" TaskNamePushAppMsg = "task_push_app_msg" TaskNamePushAppMsgErr = "task_push_app_msg_err" TaskNamePushSms = "task_push_sms" TaskNamePushSmsErr = "task_push_sms_err" TaskNameAppCfgUpdate = "task_push_cfg_update" TaskNameAppCfgUpdateErr = "task_push_cfg_update_err" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageEntry ¶
type MessageEntry struct { BusinessId string `json:"business_id" form:"business_id"` // 业务ID Title string `json:"title" form:"title" ` // 标题,建议不超过10个汉字 SubTitle string `json:"sub_title" form:"sub_title" ` // 副标题,建议不超过10个汉字 Content string `json:"content" form:"content" ` // 内容,建议不超过20个汉字 Extra map[string]string `json:"extra" form:"extra" ` // 自定义消息。只支持一维 CallBack string `json:"call_back" form:"call_back"` // 送达回执地址,供推送厂商调用,最大128字节 CallbackParam string `json:"callback_param" form:"callback_param"` // 自定义回执参数 }
type PushMessageArgs ¶
type PushMessageArgs struct { AppPkgName string `json:"app_pkg_name" form:"app_pkg_name"` Platform string `json:"platform" form:"platform" ` DeviceTokens []string `json:"device_tokens"` DeviceToken string `json:"-" form:"device_token" ` MessageEntry ExpireTime string `json:"expire_time,omitempty" form:"expire_time" ` // 消息超时时间,必填 }
type QueryMsgStateArgs ¶
type QueryMsgStateArgs struct {
MsgId string `json:"msg_id" form:"msg_id" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.