Documentation ¶
Index ¶
- Constants
- func Request(url string, key string, secret string, data any) error
- func UserAlipayLife(instance string, data string) *userType
- func UserApp(instance string, data ...string) *userType
- func UserDingtalkCC(data string) *userType
- func UserEmail(channelKey string, data ...string) *userType
- func UserPhone(channelKey string, data ...string) *userType
- func UserTag(channelKey string, data ...string) *userType
- func UserWechatMp(instance string, data string) *userType
- func UserWechatOa(instance string, data string) *userType
- func UserWechatWk(data string) *userType
- type AlipayData
- type Config
- type Jums
- type Message
- type MsgData
- func MsgAlipayLife(tempId int, headColor string, url string, desc string, ...) *MsgData
- func MsgApp(msg string, url string) *MsgData
- func MsgDingtalkCC(content string) *MsgData
- func MsgEmail(title string, content string, files ...[]string) *MsgData
- func MsgSms(signId string, tempId int, params map[string]any) *MsgData
- func MsgWechatmp(tplId string, data map[string]WechatmpData, pages ...string) *MsgData
- func MsgWechatoa(types uint, tplId string, data map[string]WechatoaData, url string, ...) *MsgData
- func MsgWechatwk(config any) *MsgData
- type ToData
- func ToAlipayLife(instance string, aud []string) *ToData
- func ToApp(instance string, aud []string) *ToData
- func ToDingtalkCC(instance string, aud []string) *ToData
- func ToEmail(instance string, aud []string) *ToData
- func ToSegment(aud []string) *ToData
- func ToSms(instance string, aud []string) *ToData
- func ToTag(aud []string) *ToData
- func ToUser(aud []string) *ToData
- func ToWechatmp(instance string, aud []string) *ToData
- func ToWechatoa(instance string, aud []string) *ToData
- func ToWechatwk(instance string, aud []string) *ToData
- type Users
- type WechatMiniprogram
- type WechatWkConfigFile
- type WechatWkConfigImage
- type WechatWkConfigMpnews
- type WechatWkConfigNews
- type WechatWkConfigText
- type WechatmpData
- type WechatoaData
Constants ¶
View Source
const ( WechatWkText wechatWkType = "text" WechatWkImage wechatWkType = "image" WechatWkFile wechatWkType = "file" WechatWkNews wechatWkType = "news" WechatWkMpews wechatWkType = "mpnews" )
View Source
const (
BaseAPI = "https://api.ums.jiguang.cn/"
)
Variables ¶
This section is empty.
Functions ¶
func UserAlipayLife ¶
UserAlipayLife 支付宝生活号
Types ¶
type AlipayData ¶
type MsgData ¶
func MsgAlipayLife ¶
func MsgAlipayLife(tempId int, headColor string, url string, desc string, data map[string]AlipayData) *MsgData
MsgAlipayLife 阿里生活号
func MsgWechatmp ¶
func MsgWechatmp(tplId string, data map[string]WechatmpData, pages ...string) *MsgData
MsgWechatmp 小程序消息
func MsgWechatoa ¶
func MsgWechatoa(types uint, tplId string, data map[string]WechatoaData, url string, minis ...WechatMiniprogram) *MsgData
MsgWechatoa 公众号消息
type Users ¶
type WechatMiniprogram ¶
type WechatWkConfigFile ¶
type WechatWkConfigFile struct {
MediaId string `json:"media_id"`
}
type WechatWkConfigImage ¶
type WechatWkConfigImage struct {
MediaId string `json:"media_id"`
}
type WechatWkConfigMpnews ¶
type WechatWkConfigNews ¶
type WechatWkConfigText ¶
type WechatWkConfigText struct {
Content string `json:"content"`
}
type WechatmpData ¶
type WechatmpData struct {
Value string `json:"value"`
}
type WechatoaData ¶
Click to show internal directories.
Click to hide internal directories.