package
Version:
v0.0.0-...-665d44b
Opens a new window with list of versions in this module.
Published: Apr 14, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Card struct {
Title string `json:"title"`
PagePath string `json:"pagepath"`
ThumbMediaID string `json:"thumb_media_id"`
}
Card 卡片消息
func (msg Card) SendTo(openID, token string) (wres weapp.Response, err error)
SendTo 发送卡片消息
@openID 用户openID
@token 微信 access_token
type Image struct {
MediaID string `json:"media_id"`
}
Image 图片消息
SendTo 发送图片消息
@openID 用户openID
@token 微信 access_token
type Link struct {
Title string `json:"title"`
Description string `json:"description"`
URL string `json:"url"`
ThumbURL string `json:"thumb_url"`
}
Link 图文链接消息
func (msg Link) SendTo(openID, token string) (wres weapp.Response, err error)
SendTo 发送图文链接消息
@openID 用户openID
@token 微信 access_token
type Text struct {
Content string `json:"content"`
}
Text 文本消息
支持添加可跳转小程序的文字链
func (msg Text) SendTo(openID, token string) (wres weapp.Response, err error)
SendTo 发送文本消息
@openID 用户openID
@token 微信 access_token
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.