message

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppchat

func CreateAppchat(params *ParamsAppchatCreate, result *ResultAppchartCreate) wx.Action

CreateAppchat 创建群聊会话

func GetAppchat

func GetAppchat(chatID string, result *ResultAppchatGet) wx.Action

GetAppchat 获取群聊会话

func Recall

func Recall(msgid string) wx.Action

Recall 撤回应用消息

func ReplyImage

func ReplyImage(mediaID string) event.Reply

ReplyImage 被动回复消息(图片消息)

func ReplyNews

func ReplyNews(articles ...*XMLNewsArticle) event.Reply

ReplyNews 被动回复消息(图文消息)

func ReplyText

func ReplyText(content string) event.Reply

ReplyText 被动回复消息(文本消息)

func ReplyUpdateButtonInteractionCard

func ReplyUpdateButtonInteractionCard(card *XMLButtonInteractionCard) event.Reply

ReplyUpdateButtonInteractionCard 被动回复消息(更新点击用户的整张卡片 - 按钮交互型)

func ReplyUpdateCardButton

func ReplyUpdateCardButton(replaceName string) event.Reply

ReplyUpdateCardButton 被动回复消息(更新点击用户的按钮文案)

func ReplyUpdateMultipleInteractionCard

func ReplyUpdateMultipleInteractionCard(card *XMLMultipleInteractionCard) event.Reply

ReplyUpdateMultipleInteractionCard 被动回复消息(更新点击用户的整张卡片 - 多项选择型)

func ReplyUpdateNewsNoticeCard

func ReplyUpdateNewsNoticeCard(card *XMLNewsNoticeCard) event.Reply

ReplyUpdateNewsNoticeCard 被动回复消息(更新点击用户的整张卡片 - 图文展示型)

func ReplyUpdateTextNoticeCard

func ReplyUpdateTextNoticeCard(card *XMLTextNoticeCard) event.Reply

ReplyUpdateTextNoticeCard 被动回复消息(更新点击用户的整张卡片 - 文本通知型)

func ReplyUpdateVoteInteractionCard

func ReplyUpdateVoteInteractionCard(card *XMLVoteInteractionCard) event.Reply

ReplyUpdateVoteInteractionCard 被动回复消息(更新点击用户的整张卡片 - 投票选择型)

func ReplyVideo

func ReplyVideo(mediaID, title, description string) event.Reply

ReplyVideo 被动回复消息(视频消息)

func ReplyVoice

func ReplyVoice(mediaID string) event.Reply

ReplyVoice 被动回复消息(语音消息)

func SendAppchatFile

func SendAppchatFile(chatID string, mediaID string, safe int) wx.Action

SendAppchatFile 发送消息到群聊会话(文件消息)

func SendAppchatImage

func SendAppchatImage(chatID string, mediaID string, safe int) wx.Action

SendAppchatImage 发送消息到群聊会话(图片消息)

func SendAppchatMPNews

func SendAppchatMPNews(chatID string, articles []*MPNewsArticle, safe int) wx.Action

SendAppchatMPNews 发送消息到群聊会话(图文消息 - mpnews)

func SendAppchatMarkdown

func SendAppchatMarkdown(chatID string, content string, safe int) wx.Action

SendAppchatMarkdown 发送消息到群聊会话(markdown消息)

func SendAppchatNews

func SendAppchatNews(chatID string, articles []*NewsArticle, safe int) wx.Action

SendAppchatNews 应用推送消息(图文消息)

func SendAppchatText

func SendAppchatText(chatID string, content string, safe int) wx.Action

SendAppchatText 发送消息到群聊会话(文本消息)

func SendAppchatTextCard

func SendAppchatTextCard(chatID string, card *TextCard, safe int) wx.Action

SendAppchatTextCard 发送消息到群聊会话(文本卡片消息)

func SendAppchatVideo

func SendAppchatVideo(chatID string, video *Video, safe int) wx.Action

SendAppchatVideo 发送消息到群聊会话(视频消息)

func SendAppchatVoice

func SendAppchatVoice(chatID string, mediaID string, safe int) wx.Action

SendAppchatVoice 发送消息到群聊会话(语音消息)

func SendButtonInteractionCard

func SendButtonInteractionCard(agentidID int64, taskID string, card *ButtonInteractionCard, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendButtonInteractionCard 发送应用消息(模板卡片消息 - 按钮交互型)

func SendExternalContactFile

func SendExternalContactFile(agentID int64, mediaID string, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactFile 发送「学校通知」(文件消息)

func SendExternalContactImage

func SendExternalContactImage(agentID int64, mediaID string, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactImage 发送「学校通知」(图片消息)

func SendExternalContactMPNews

func SendExternalContactMPNews(agentID int64, articles []*MPNewsArticle, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactMPNews 发送「学校通知」(图文消息 - mpnews)

func SendExternalContactMiniprogram

func SendExternalContactMiniprogram(agentID int64, minip *Miniprogram, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactMiniprogram 发送「学校通知」(小程序消息)

func SendExternalContactNews

func SendExternalContactNews(agentID int64, articles []*NewsArticle, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactNews 发送「学校通知」(图文消息)

func SendExternalContactText

func SendExternalContactText(agentID int64, content string, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactText 发送「学校通知」(文本消息)

func SendExternalContactVideo

func SendExternalContactVideo(agentID int64, video *Video, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactVideo 发送「学校通知」(视频消息)

func SendExternalContactVoice

func SendExternalContactVoice(agentID int64, mediaID string, extra *ExternalContactExtra, result *ResultExternalContactSend) wx.Action

SendExternalContactVoice 发送「学校通知」(语音消息)

func SendFile

func SendFile(agentidID int64, mediaID string, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendFile 发送应用消息(文件消息)

func SendImage

func SendImage(agentidID int64, mediaID string, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendImage 发送应用消息(图片消息)

func SendLinkedcorpFile

func SendLinkedcorpFile(agentID int64, mediaID string, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpFile 发送企业互联消息(文件消息)

func SendLinkedcorpImage

func SendLinkedcorpImage(agentID int64, mediaID string, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpImage 发送企业互联消息(图片消息)

func SendLinkedcorpMPNews

func SendLinkedcorpMPNews(agentID int64, articles []*MPNewsArticle, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpMPNews 发送企业互联消息(图文消息 - mpnews)

func SendLinkedcorpMarkdown

func SendLinkedcorpMarkdown(agentID int64, content string, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpMarkdown 发送企业互联消息(markdown消息)

func SendLinkedcorpMinipNotice

func SendLinkedcorpMinipNotice(notice *MinipNotice, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpMinipNotice 发送企业互联消息(小程序通知消息)

func SendLinkedcorpNews

func SendLinkedcorpNews(agentID int64, articles []*NewsArticle, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpNews 发送企业互联消息(图文消息)

func SendLinkedcorpText

func SendLinkedcorpText(agentID int64, content string, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpText 发送企业互联消息(文本消息)

func SendLinkedcorpTextCard

func SendLinkedcorpTextCard(agentID int64, card *TextCard, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpTextCard 发送企业互联消息(文本卡片消息)

func SendLinkedcorpVideo

func SendLinkedcorpVideo(agentID int64, video *Video, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpVideo 发送企业互联消息(视频消息)

func SendLinkedcorpVoice

func SendLinkedcorpVoice(agentID int64, mediaID string, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action

SendLinkedcorpVoice 发送企业互联消息(语音消息)

func SendMPNews

func SendMPNews(agentidID int64, articles []*MPNewsArticle, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendMPNews 发送应用消息(图文消息 - mpnews)

func SendMarkdown

func SendMarkdown(agentidID int64, content string, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendMarkdown 发送应用消息(markdown消息)

func SendMinipNotice

func SendMinipNotice(notice *MinipNotice, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendMinipNotice 发送应用消息(小程序通知消息)

func SendMultipleInteractionCard

func SendMultipleInteractionCard(agentidID int64, taskID string, card *MultipleInteractionCard, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendMultipleInteractionCard 发送应用消息(模板卡片消息 - 多项选择型)

func SendNews

func SendNews(agentidID int64, articles []*NewsArticle, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendNews 发送应用消息(图文消息)

func SendNewsNoticeCard

func SendNewsNoticeCard(agentidID int64, taskID string, card *NewsNoticeCard, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendNewsNoticeCard 发送应用消息(模板卡片消息 - 图文展示型)

func SendText

func SendText(agentidID int64, content string, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendText 发送应用消息(文本消息)

func SendTextCard

func SendTextCard(agentidID int64, card *TextCard, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendTextCard 发送应用消息(文本卡片消息)

func SendTextNoticeCard

func SendTextNoticeCard(agentidID int64, taskID string, card *TextNoticeCard, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendTextNoticeCard 发送应用消息(模板卡片消息 - 文本通知型)

func SendVideo

func SendVideo(agentidID int64, video *Video, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendVideo 发送应用消息(视频消息)

func SendVoice

func SendVoice(agentidID int64, mediaID string, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendVoice 发送应用消息(语音消息)

func SendVoteInteractionCard

func SendVoteInteractionCard(agentidID int64, taskID string, card *VoteInteractionCard, extra *MsgExtra, result *ResultMsgSend) wx.Action

SendVoteInteractionCard 发送应用消息(模板卡片消息 - 投票选择型)

func UpdateAppchat

func UpdateAppchat(params *ParamsAppchatUpdate) wx.Action

UpdateAppchat 修改群聊会话

func UpdateCardButtonDisable

func UpdateCardButtonDisable(agentID int64, respCode, replaceName string, extra *CardExtra, result *ResultCardUpdate) wx.Action

UpdateCardButtonDisable 更新模版卡片消息(更新按钮为不可点击状态)

func UpdateToButtonInteractionCard

func UpdateToButtonInteractionCard(agentID int64, respCode string, card *ButtonInteractionCard, extra *CardExtra, result *ResultCardUpdate) wx.Action

UpdateToButtonInteractionCard 更新模版卡片消息(更新为新的卡片 - 按钮交互型)

func UpdateToMultipleInteractionCard

func UpdateToMultipleInteractionCard(agentID int64, respCode string, card *MultipleInteractionCard, extra *CardExtra, result *ResultCardUpdate) wx.Action

UpdateToMultipleInteractionCard 更新模版卡片消息(更新为新的卡片 - 多项选择型)

func UpdateToNewsNoticeCard

func UpdateToNewsNoticeCard(agentID int64, respCode string, card *NewsNoticeCard, extra *CardExtra, result *ResultCardUpdate) wx.Action

UpdateToNewsNoticeCard 更新模版卡片消息(更新为新的卡片 - 图文展示型)

func UpdateToTextNoticeCard

func UpdateToTextNoticeCard(agentID int64, respCode string, card *TextNoticeCard, extra *CardExtra, result *ResultCardUpdate) wx.Action

UpdateToTextNoticeCard 更新模版卡片消息(更新为新的卡片 - 文本通知型)

func UpdateToVoteInteractionCard

func UpdateToVoteInteractionCard(agentID int64, respCode string, card *VoteInteractionCard, extra *CardExtra, result *ResultCardUpdate) wx.Action

UpdateToVoteInteractionCard 更新模版卡片消息(更新为新的卡片 - 投票选择型)

Types

type ActionMenu

type ActionMenu struct {
	Desc       string        `json:"desc"`
	ActionList []*MenuAction `json:"action_list"`
}

type AppchatInfo

type AppchatInfo struct {
	ChatID   string   `json:"chatid"`
	Name     string   `json:"name"`
	Owner    string   `json:"owner"`
	UserList []string `json:"userlist"`
}

type AppchatMsg

type AppchatMsg struct {
	ChatID   string        `json:"chatid"`
	MsgType  event.MsgType `json:"msgtype"`
	Text     *Text         `json:"text,omitempty"`
	Image    *Media        `json:"image,omitempty"`
	Voice    *Media        `json:"voice,omitempty"`
	Video    *Video        `json:"video,omitempty"`
	File     *Media        `json:"file,omitempty"`
	TextCard *TextCard     `json:"textcard,omitempty"`
	News     *News         `json:"news,omitempty"`
	MPNews   *MPNews       `json:"mpnews,omitempty"`
	Markdown *Text         `json:"markdown,omitempty"`
	Safe     int           `json:"safe,omitempty"`
}

type ButtonInteractionCard

type ButtonInteractionCard struct {
	Source                *CardSource
	ActionMenu            *ActionMenu
	MainTitle             *MainTitle
	QuoteArea             *QuoteArea
	SubTitleText          string
	HorizontalContentList []*HorizontalContent
	CardAction            *CardAction
	ButtonSelection       *ButtonSelection
	ButtonList            []*CardButton
	ReplaceText           string
}

type ButtonSelection

type ButtonSelection struct {
	QuestionKey string          `json:"question_key"`
	Title       string          `json:"title,omitempty"`
	OptionList  []*SelectOption `json:"option_list"`
	SelectedID  string          `json:"selected_id,omitempty"`
	Disable     bool            `json:"disable,omitempty"`
}

type CardAction

type CardAction struct {
	Type     int    `json:"type"`
	URL      string `json:"url,omitempty"`
	AppID    string `json:"appid,omitempty"`
	PagePath string `json:"pagepath,omitempty"`
}

type CardButton

type CardButton struct {
	Text  string `json:"text"`
	Style int    `json:"style"`
	Key   string `json:"key"`
}

type CardExtra

type CardExtra struct {
	UserIDs  []string
	PartyIDs []int64
	TagIDs   []int64
	AtAll    int
}

type CardImage

type CardImage struct {
	URL         string  `json:"url"`
	AspectRatio float64 `json:"aspect_ratio,omitempty"`
}

type CardJump

type CardJump struct {
	Type     int    `json:"type,omitempty"`
	Title    string `json:"title"`
	URL      string `json:"url,omitempty"`
	AppID    string `json:"appid,omitempty"`
	PagePath string `json:"pagepath,omitempty"`
}

type CardSource

type CardSource struct {
	IconURL   string `json:"icon_url,omitempty"`
	Desc      string `json:"desc,omitempty"`
	DescColor int    `json:"desc_color,omitempty"`
}

type CardType

type CardType string
const (
	CardTextNotice          CardType = "text_notice"
	CardNewsNotice          CardType = "news_notice"
	CardButtonInteraction   CardType = "button_interaction"
	CardVoteInteraction     CardType = "vote_interaction"
	CardMultipleInteraction CardType = "multiple_interaction"
)

type CardUpdateButton

type CardUpdateButton struct {
	ReplaceName string `json:"replace_name"`
}

type CheckBox

type CheckBox struct {
	QuestionKey string         `json:"question_key"`
	OptionList  []*CheckOption `json:"option_list"`
	Disable     bool           `json:"disable,omitempty"`
	Mode        int            `json:"mode,omitempty"`
}

type CheckOption

type CheckOption struct {
	ID        string `json:"id"`
	Text      string `json:"text"`
	IsChecked bool   `json:"is_checked"`
}

type EmphasisContent

type EmphasisContent struct {
	Title string `json:"title"`
	Desc  string `json:"desc,omitempty"`
}

type ExternalContactExtra

type ExternalContactExtra struct {
	ToExternalUser         []string
	ToParentUserID         []string
	ToStudentUserID        []string
	ToParty                []string
	ToAll                  int
	EnableIDTrans          int
	EnableDuplicateCheck   int
	DuplicateCheckInterval int
}

type ExternalContactMsg

type ExternalContactMsg struct {
	ToExternalUser         []string      `json:"to_external_user,omitempty"`
	ToParentUserID         []string      `json:"to_parent_userid,omitempty"`
	ToStudentUserID        []string      `json:"to_student_userid,omitempty"`
	ToParty                []string      `json:"to_party,omitempty"`
	ToAll                  int           `json:"toall,omitempty"`
	MsgType                event.MsgType `json:"msgtype"`
	AgentID                int64         `json:"agentid,omitempty"`
	Text                   *Text         `json:"text,omitempty"`
	Image                  *Media        `json:"image,omitempty"`
	Voice                  *Media        `json:"voice,omitempty"`
	Video                  *Video        `json:"video,omitempty"`
	File                   *Media        `json:"file,omitempty"`
	TextCard               *TextCard     `json:"textcard,omitempty"`
	News                   *News         `json:"news,omitempty"`
	MPNews                 *MPNews       `json:"mpnews,omitempty"`
	Miniprogram            *Miniprogram  `json:"miniprogram,omitempty"`
	EnableIDTrans          int           `json:"enable_id_trans,omitempty"`
	EnableDuplicateCheck   int           `json:"enable_duplicate_check,omitempty"`
	DuplicateCheckInterval int           `json:"duplicate_check_interval,omitempty"`
}

type HorizontalContent

type HorizontalContent struct {
	Type    int    `json:"type,omitempty"`
	KeyName string `json:"keyname"`
	Value   string `json:"value"`
	UserID  string `json:"userid,omitempty"`
	MediaID string `json:"media_id,omitempty"`
	URL     string `json:"url,omitempty"`
}

type ImageTextArea

type ImageTextArea struct {
	Type     int    `json:"type,omitempty"`
	URL      string `json:"url,omitempty"`
	AppID    string `json:"appid,omitempty"`
	PagePath string `json:"pagepath,omitempty"`
	Title    string `json:"title,omitempty"`
	Desc     string `json:"desc,omitempty"`
	ImageURL string `json:"image_url"`
}

type LinkedcorpExtra

type LinkedcorpExtra struct {
	ToUser  []string
	ToParty []string
	ToTag   []string
	ToAll   int
}

type LinkedcorpMsg

type LinkedcorpMsg struct {
	ToUser      []string      `json:"touser,omitempty"`
	ToParty     []string      `json:"toparty,omitempty"`
	ToTag       []string      `json:"totag,omitempty"`
	ToAll       int           `json:"toall,omitempty"`
	MsgType     event.MsgType `json:"msgtype"`
	AgentID     int64         `json:"agentid,omitempty"`
	Text        *Text         `json:"text,omitempty"`
	Image       *Media        `json:"image,omitempty"`
	Voice       *Media        `json:"voice,omitempty"`
	Video       *Video        `json:"video,omitempty"`
	File        *Media        `json:"file,omitempty"`
	TextCard    *TextCard     `json:"textcard,omitempty"`
	News        *News         `json:"news,omitempty"`
	MPNews      *MPNews       `json:"mpnews,omitempty"`
	Markdown    *Text         `json:"markdown,omitempty"`
	MinipNotice *MinipNotice  `json:"miniprogram_notice,omitempty"`
}

type MPNews

type MPNews struct {
	Articles []*MPNewsArticle `json:"articles"`
}

type MPNewsArticle

type MPNewsArticle struct {
	Title            string `json:"title"`
	ThumbMediaID     string `json:"thumb_media_id"`
	Author           string `json:"author,omitempty"`
	ContentSourceURL string `json:"content_source_url,omitempty"`
	Content          string `json:"content"`
	Digest           string `json:"digest,omitempty"`
}

type MainTitle

type MainTitle struct {
	Title string `json:"title"`
	Desc  string `json:"desc,omitempty"`
}

type Media

type Media struct {
	MediaID string `json:"media_id"`
}
type MenuAction struct {
	Text string `json:"text"`
	Key  string `json:"key"`
}

type Messasge

type Messasge struct {
	ToUser                 string        `json:"touser,omitempty"`
	ToParty                string        `json:"toparty,omitempty"`
	ToTag                  string        `json:"totag,omitempty"`
	MsgType                event.MsgType `json:"msgtype"`
	AgentID                int64         `json:"agentid,omitempty"`
	Text                   *Text         `json:"text,omitempty"`
	Image                  *Media        `json:"image,omitempty"`
	Voice                  *Media        `json:"voice,omitempty"`
	Video                  *Video        `json:"video,omitempty"`
	File                   *Media        `json:"file,omitempty"`
	TextCard               *TextCard     `json:"textcard,omitempty"`
	News                   *News         `json:"news,omitempty"`
	MPNews                 *MPNews       `json:"mpnews,omitempty"`
	Markdown               *Text         `json:"markdown,omitempty"`
	MinipNotice            *MinipNotice  `json:"miniprogram_notice,omitempty"`
	TemplateCard           *TemplateCard `json:"template_card,omitempty"`
	Safe                   int           `json:"safe,omitempty"`
	EnableIDTrans          int           `json:"enable_id_trans,omitempty"`
	EnableDuplicateCheck   int           `json:"enable_duplicate_check,omitempty"`
	DuplicateCheckInterval int           `json:"duplicate_check_interval,omitempty"`
}

type MinipNotice

type MinipNotice struct {
	AppID             string   `json:"appid"`
	Page              string   `json:"page,omitempty"`
	Title             string   `json:"title"`
	Description       string   `json:"description,omitempty"`
	EmphasisFirstItem bool     `json:"emphasis_first_item,omitempty"`
	ContentItem       []*MsgKV `json:"content_item"`
}

type Miniprogram

type Miniprogram struct {
	AppID        string `json:"appid"`
	Title        string `json:"title,omitempty"`
	ThumbMediaID string `json:"thumb_media_id"`
	PagePath     string `json:"pagepath"`
}

type MsgExtra

type MsgExtra struct {
	ToUser                 string
	ToParty                string
	ToTag                  string
	Safe                   int
	EnableIDTrans          int
	EnableDuplicateCheck   int
	DuplicateCheckInterval int
}

type MsgKV

type MsgKV struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type MultipleInteractionCard

type MultipleInteractionCard struct {
	Source       *CardSource
	MainTitle    *MainTitle
	SelectList   []*ButtonSelection
	SubmitButton *SubmitButton
	ReplaceText  string
}

type News

type News struct {
	Articles []*NewsArticle `json:"articles"`
}

type NewsArticle

type NewsArticle struct {
	Title       string `json:"title"`
	Description string `json:"description,omitempty"`
	URL         string `json:"url,omitempty"`
	PicURL      string `json:"picurl,omitempty"`
	AppID       string `json:"appid,omitempty"`
	PagePath    string `json:"pagepath,omitempty"`
	BtnTxt      string `json:"btntxt,omitempty"`
}

type NewsNoticeCard

type NewsNoticeCard struct {
	Source                *CardSource
	ActionMenu            *ActionMenu
	MainTitle             *MainTitle
	QuoteArea             *QuoteArea
	ImageTextArea         *ImageTextArea
	CardImage             *CardImage
	VerticalContentList   []*VerticalContent
	HorizontalContentList []*HorizontalContent
	JumpList              []*CardJump
	CardAction            *CardAction
}

type ParamsAppchatCreate

type ParamsAppchatCreate struct {
	Name     string   `json:"name,omitempty"`
	Owner    string   `json:"owner,omitempty"`
	UserList []string `json:"userlist"`
	ChatID   string   `json:"chatid,omitempty"`
}

type ParamsAppchatUpdate

type ParamsAppchatUpdate struct {
	ChatID      string   `json:"chatid"`
	Name        string   `json:"name,omitempty"`
	Owner       string   `json:"owner,omitempty"`
	AddUserList []string `json:"add_user_list,omitempty"`
	DelUserList []string `json:"del_user_list,omitempty"`
}

type ParamsCardUpdate

type ParamsCardUpdate struct {
	UserIDs      []string          `json:"userids,omitempty"`
	PartyIDs     []int64           `json:"partyids,omitempty"`
	TagIDs       []int64           `json:"tagids,omitempty"`
	AtAll        int               `json:"atall,omitempty"`
	AgentID      int64             `json:"agentid"`
	ResponseCode string            `json:"response_code"`
	Button       *CardUpdateButton `json:"button,omitempty"`
	TemplateCard *TemplateCard     `json:"template_card,omitempty"`
}

type ParamsMsgRecall

type ParamsMsgRecall struct {
	MsgID string `json:"msgid"`
}

type QuoteArea

type QuoteArea struct {
	Type      int    `json:"type,omitempty"`
	URL       string `json:"url,omitempty"`
	AppID     string `json:"appid,omitempty"`
	PagePath  string `json:"pagepath,omitempty"`
	Title     string `json:"title,omitempty"`
	QuoteText string `json:"quote_text,omitempty"`
}

type Reply

type Reply struct {
	XMLName      xml.Name         `xml:"xml"`
	FromUserName wx.CDATA         `xml:"FromUserName,omitempty"`
	ToUserName   wx.CDATA         `xml:"ToUserName,omitempty"`
	CreateTime   int64            `xml:"CreateTime,omitempty"`
	MsgType      wx.CDATA         `xml:"MsgType,omitempty"`
	Content      wx.CDATA         `xml:"Content,omitempty"`
	Image        *XMLMedia        `xml:"Image,omitempty"`
	Voice        *XMLMedia        `xml:"Voice,omitempty"`
	Video        *XMLVideo        `xml:"Video,omitempty"`
	ArticleCount int              `xml:"ArticleCount,omitempty"`
	Articles     *XMLNews         `xml:"Articles,omitempty"`
	Button       *XMLUpdateButton `xml:"Button,omitempty"`
	TemplateCard *XMLTemplateCard `xml:"TemplateCard,omitempty"`
}

Reply 消息回复

func (*Reply) Bytes

func (r *Reply) Bytes(from, to string) ([]byte, error)

type ResultAppchartCreate

type ResultAppchartCreate struct {
	ChatID string `json:"chatid"`
}

type ResultAppchatGet

type ResultAppchatGet struct {
	ChatInfo *AppchatInfo `json:"chat_info"`
}

type ResultCardUpdate

type ResultCardUpdate struct {
	InvalidUser []string `json:"invaliduser"`
}

type ResultExternalContactSend

type ResultExternalContactSend struct {
	InvalidExternalUser  []string `json:"invalid_external_user"`
	InvalidParentUserID  []string `json:"invalid_parent_userid"`
	InvalidStudentUserID []string `json:"invalid_student_userid"`
	InvalidParty         []string `json:"invalid_party"`
}

type ResultLinkedcorpSend

type ResultLinkedcorpSend struct {
	InvalidUser  []string `json:"invaliduser"`
	InvalidParty []string `json:"invalidparty"`
	InvalidTag   []string `json:"invalidtag"`
}

type ResultMsgSend

type ResultMsgSend struct {
	InvalidUser  string `json:"invaliduser"`
	InvalidParty string `json:"invalidparty"`
	InvalidTag   string `json:"invalidtag"`
	MsgID        string `json:"msgid"`
	ResponseCode string `json:"response_code"`
}

type SelectOption

type SelectOption struct {
	ID   string `json:"id"`
	Text string `json:"text"`
}

type SubmitButton

type SubmitButton struct {
	Text string `json:"text"`
	Key  string `json:"key"`
}

type TemplateCard

type TemplateCard struct {
	CardType              CardType             `json:"card_type"`
	TaskID                string               `json:"task_id,omitempty"`
	Source                *CardSource          `json:"source"`
	ActionMenu            *ActionMenu          `json:"action_menu,omitempty"`
	MainTitle             *MainTitle           `json:"main_title"`
	QuoteArea             *QuoteArea           `json:"quote_area,omitempty"`
	EmphasisContent       *EmphasisContent     `json:"emphasis_content,omitempty"`
	SubTitleText          string               `json:"sub_title_text,omitempty"`
	ImageTextArea         *ImageTextArea       `json:"image_text_area,omitempty"`
	CardImage             *CardImage           `json:"card_image,omitempty"`
	VerticalContentList   []*VerticalContent   `json:"vertical_content_list,omitempty"`
	HorizontalContentList []*HorizontalContent `json:"horizontal_content_list,omitempty"`
	JumpList              []*CardJump          `json:"jump_list,omitempty"`
	CardAction            *CardAction          `json:"card_action,omitempty"`
	ButtonSelection       *ButtonSelection     `json:"button_selection,omitempty"`
	ButtonList            []*CardButton        `json:"button_list,omitempty"`
	CheckBox              *CheckBox            `json:"checkbox,omitempty"`
	SelectList            []*ButtonSelection   `json:"select_list,omitempty"`
	SubmitButton          *SubmitButton        `json:"submit_button,omitempty"`
	ReplaceText           string               `json:"replace_text,omitempty"`
}

type Text

type Text struct {
	Content string `json:"content"`
}

type TextCard

type TextCard struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	URL         string `json:"url"`
	BtnTxt      string `json:"btntxt,omitempty"`
}

type TextNoticeCard

type TextNoticeCard struct {
	Source                *CardSource
	ActionMenu            *ActionMenu
	MainTitle             *MainTitle
	QuoteArea             *QuoteArea
	EmphasisContent       *EmphasisContent
	SubTitleText          string
	HorizontalContentList []*HorizontalContent
	JumpList              []*CardJump
	CardAction            *CardAction
}

type VerticalContent

type VerticalContent struct {
	Title string `json:"title"`
	Desc  string `json:"desc,omitempty"`
}

type Video

type Video struct {
	MediaID     string `json:"media_id"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
}

type VoteInteractionCard

type VoteInteractionCard struct {
	Source       *CardSource
	MainTitle    *MainTitle
	CheckBox     *CheckBox
	SubmitButton *SubmitButton
	ReplaceText  string
}

type XMLActionMenu

type XMLActionMenu struct {
	Desc       wx.CDATA         `xml:"Desc,omitempty"`
	ActionList []*XMLMenuAction `xml:"ActionList,omitempty"`
}

type XMLButtonInteractionCard

type XMLButtonInteractionCard struct {
	Source                *XMLCardSource
	ActionMenu            *XMLActionMenu
	MainTitle             *XMLMainTitle
	QuoteArea             *XMLQuoteArea
	SubTitleText          wx.CDATA
	HorizontalContentList []*XMLHorizontalContent
	CardAction            *XMLCardAction
	ButtonSelection       *XMLButtonSelection
	ButtonList            []*XMLCardButton
	ReplaceText           wx.CDATA
}

type XMLButtonSelection

type XMLButtonSelection struct {
	QuestionKey wx.CDATA           `xml:"QuestionKey,omitempty"`
	Title       wx.CDATA           `xml:"Title,omitempty"`
	OptionList  []*XMLSelectOption `xml:"OptionList,omitempty"`
	SelectedID  wx.CDATA           `xml:"SelectedId,omitempty"`
	Disable     bool               `xml:"Disable"`
}

type XMLCardAction

type XMLCardAction struct {
	Type     int      `xml:"Type,omitempty"`
	URL      wx.CDATA `xml:"Url,omitempty"`
	AppID    wx.CDATA `xml:"AppId,omitempty"`
	PagePath wx.CDATA `xml:"PagePath,omitempty"`
}

type XMLCardButton

type XMLCardButton struct {
	Text  wx.CDATA `xml:"Text,omitempty"`
	Style int      `xml:"Style,omitempty"`
	Key   wx.CDATA `xml:"Key,omitempty"`
}

type XMLCardImage

type XMLCardImage struct {
	URL         wx.CDATA `xml:"Url,omitempty"`
	AspectRatio float64  `xml:"AspectRatio,omitempty"`
}

type XMLCardJump

type XMLCardJump struct {
	Type     int      `xml:"Type,omitempty"`
	Title    wx.CDATA `xml:"Title,omitempty"`
	URL      wx.CDATA `xml:"Url,omitempty"`
	AppID    wx.CDATA `xml:"AppId,omitempty"`
	PagePath wx.CDATA `xml:"PagePath,omitempty"`
}

type XMLCardSource

type XMLCardSource struct {
	IconURL   wx.CDATA `xml:"IconUrl,omitempty"`
	Desc      wx.CDATA `xml:"Desc,omitempty"`
	DescColor int      `xml:"DescColor,omitempty"`
}

type XMLCheckBox

type XMLCheckBox struct {
	QuestionKey wx.CDATA          `xml:"QuestionKey,omitempty"`
	OptionList  []*XMLCheckOption `xml:"OptionList,omitempty"`
	Disable     bool              `xml:"Disable"`
	Mode        int               `xml:"Mode,omitempty"`
}

type XMLCheckOption

type XMLCheckOption struct {
	ID        wx.CDATA `xml:"Id,omitempty"`
	Text      wx.CDATA `xml:"Text,omitempty"`
	IsChecked bool     `xml:"IsChecked"`
}

type XMLEmphasisContent

type XMLEmphasisContent struct {
	Title wx.CDATA `xml:"Title,omitempty"`
	Desc  wx.CDATA `xml:"Desc,omitempty"`
}

type XMLHorizontalContent

type XMLHorizontalContent struct {
	Type    int      `xml:"Type,omitempty"`
	KeyName wx.CDATA `xml:"KeyName,omitempty"`
	Value   wx.CDATA `xml:"Value,omitempty"`
	UserID  wx.CDATA `xml:"UserId,omitempty"`
	MediaID wx.CDATA `xml:"MediaId,omitempty"`
	URL     wx.CDATA `xml:"Url,omitempty"`
}

type XMLImageTextArea

type XMLImageTextArea struct {
	Type     int      `xml:"Type,omitempty"`
	URL      wx.CDATA `xml:"Url,omitempty"`
	AppID    wx.CDATA `xml:"AppId,omitempty"`
	PagePath wx.CDATA `xml:"PagePath,omitempty"`
	Title    wx.CDATA `xml:"Title,omitempty"`
	Desc     wx.CDATA `xml:"Desc,omitempty"`
	ImageURL wx.CDATA `xml:"ImageUrl,omitempty"`
}

type XMLMainTitle

type XMLMainTitle struct {
	Title wx.CDATA `xml:"Title,omitempty"`
	Desc  wx.CDATA `xml:"Desc,omitempty"`
}

type XMLMedia

type XMLMedia struct {
	MediaID wx.CDATA `xml:"MediaId,omitempty"`
}

type XMLMenuAction

type XMLMenuAction struct {
	Text wx.CDATA `xml:"Text,omitempty"`
	Key  wx.CDATA `xml:"Key,omitempty"`
}

type XMLMultipleInteractionCard

type XMLMultipleInteractionCard struct {
	Source       *XMLCardSource
	MainTitle    *XMLMainTitle
	SelectList   []*XMLButtonSelection
	SubmitButton *XMLSubmitButton
	ReplaceText  wx.CDATA
}

type XMLNews

type XMLNews struct {
	Articles []*XMLNewsArticle `xml:"item,omitempty"`
}

type XMLNewsArticle

type XMLNewsArticle struct {
	Title       wx.CDATA `xml:"Title,omitempty"`
	Description wx.CDATA `xml:"Description,omitempty"`
	URL         wx.CDATA `xml:"Url,omitempty"`
	PicURL      wx.CDATA `xml:"PicUrl,omitempty"`
}

type XMLNewsNoticeCard

type XMLNewsNoticeCard struct {
	Source                *XMLCardSource
	ActionMenu            *XMLActionMenu
	MainTitle             *XMLMainTitle
	QuoteArea             *XMLQuoteArea
	ImageTextArea         *XMLImageTextArea
	CardImage             *XMLCardImage
	VerticalContentList   []*XMLVerticalContent
	HorizontalContentList []*XMLHorizontalContent
	JumpList              []*XMLCardJump
	CardAction            *XMLCardAction
}

type XMLQuoteArea

type XMLQuoteArea struct {
	Type      int      `xml:"Type,omitempty"`
	URL       wx.CDATA `xml:"Url,omitempty"`
	AppID     wx.CDATA `xml:"AppId,omitempty"`
	PagePath  wx.CDATA `xml:"PagePath,omitempty"`
	Title     wx.CDATA `xml:"Title,omitempty"`
	QuoteText wx.CDATA `xml:"QuoteText,omitempty"`
}

type XMLSelectOption

type XMLSelectOption struct {
	ID   wx.CDATA `xml:"Id,omitempty"`
	Text wx.CDATA `xml:"Text,omitempty"`
}

type XMLSubmitButton

type XMLSubmitButton struct {
	Text wx.CDATA `xml:"Text,omitempty"`
	Key  wx.CDATA `xml:"Key,omitempty"`
}

type XMLTemplateCard

type XMLTemplateCard struct {
	CardType              wx.CDATA                `xml:"CardType,omitempty"`
	Source                *XMLCardSource          `xml:"Source,omitempty"`
	ActionMenu            *XMLActionMenu          `xml:"ActionMenu,omitempty"`
	MainTitle             *XMLMainTitle           `xml:"MainTitle,omitempty"`
	QuoteArea             *XMLQuoteArea           `xml:"QuoteArea,omitempty"`
	EmphasisContent       *XMLEmphasisContent     `xml:"EmphasisContent,omitempty"`
	SubTitleText          wx.CDATA                `xml:"SubTitleText,omitempty"`
	ImageTextArea         *XMLImageTextArea       `xml:"ImageTextArea,omitempty"`
	CardImage             *XMLCardImage           `xml:"CardImage,omitempty"`
	VerticalContentList   []*XMLVerticalContent   `xml:"VerticalContentList,omitempty"`
	HorizontalContentList []*XMLHorizontalContent `xml:"HorizontalContentList,omitempty"`
	JumpList              []*XMLCardJump          `xml:"JumpList,omitempty"`
	CardAction            *XMLCardAction          `xml:"CardAction,omitempty"`
	ButtonSelection       *XMLButtonSelection     `xml:"ButtonSelection,omitempty"`
	ButtonList            []*XMLCardButton        `xml:"ButtonList,omitempty"`
	CheckBox              *XMLCheckBox            `xml:"CheckBox,omitempty"`
	SelectList            []*XMLButtonSelection   `xml:"SelectList,omitempty"`
	SubmitButton          *XMLSubmitButton        `xml:"SubmitButton,omitempty"`
	ReplaceText           wx.CDATA                `xml:"ReplaceText,omitempty"`
}

type XMLText

type XMLText struct {
	Content wx.CDATA `xml:"Content,omitempty"`
}

type XMLTextNoticeCard

type XMLTextNoticeCard struct {
	Source                *XMLCardSource
	ActionMenu            *XMLActionMenu
	MainTitle             *XMLMainTitle
	QuoteArea             *XMLQuoteArea
	EmphasisContent       *XMLEmphasisContent
	SubTitleText          wx.CDATA
	HorizontalContentList []*XMLHorizontalContent
	JumpList              []*XMLCardJump
	CardAction            *XMLCardAction
}

type XMLUpdateButton

type XMLUpdateButton struct {
	ReplaceName wx.CDATA `xml:"ReplaceName,omitempty"`
}

type XMLVerticalContent

type XMLVerticalContent struct {
	Title wx.CDATA `xml:"Title,omitempty"`
	Desc  wx.CDATA `xml:"Desc,omitempty"`
}

type XMLVideo

type XMLVideo struct {
	MediaID     wx.CDATA `xml:"MediaId,omitempty"`
	Title       wx.CDATA `xml:"Title,omitempty"`
	Description wx.CDATA `xml:"Description,omitempty"`
}

type XMLVoteInteractionCard

type XMLVoteInteractionCard struct {
	Source       *XMLCardSource
	MainTitle    *XMLMainTitle
	CheckBox     *XMLCheckBox
	SubmitButton *XMLSubmitButton
	ReplaceText  wx.CDATA
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL