Documentation ¶
Index ¶
- func CreateAppchat(params *ParamsAppchatCreate, result *ResultAppchartCreate) wx.Action
- func GetAppchat(chatID string, result *ResultAppchatGet) wx.Action
- func Recall(msgid string) wx.Action
- func ReplyImage(mediaID string) event.Reply
- func ReplyNews(articles ...*XMLNewsArticle) event.Reply
- func ReplyText(content string) event.Reply
- func ReplyUpdateButtonInteractionCard(card *XMLButtonInteractionCard) event.Reply
- func ReplyUpdateCardButton(replaceName string) event.Reply
- func ReplyUpdateMultipleInteractionCard(card *XMLMultipleInteractionCard) event.Reply
- func ReplyUpdateNewsNoticeCard(card *XMLNewsNoticeCard) event.Reply
- func ReplyUpdateTextNoticeCard(card *XMLTextNoticeCard) event.Reply
- func ReplyUpdateVoteInteractionCard(card *XMLVoteInteractionCard) event.Reply
- func ReplyVideo(mediaID, title, description string) event.Reply
- func ReplyVoice(mediaID string) event.Reply
- func SendAppchatFile(chatID string, mediaID string, safe int) wx.Action
- func SendAppchatImage(chatID string, mediaID string, safe int) wx.Action
- func SendAppchatMPNews(chatID string, articles []*MPNewsArticle, safe int) wx.Action
- func SendAppchatMarkdown(chatID string, content string, safe int) wx.Action
- func SendAppchatNews(chatID string, articles []*NewsArticle, safe int) wx.Action
- func SendAppchatText(chatID string, content string, safe int) wx.Action
- func SendAppchatTextCard(chatID string, card *TextCard, safe int) wx.Action
- func SendAppchatVideo(chatID string, video *Video, safe int) wx.Action
- func SendAppchatVoice(chatID string, mediaID string, safe int) wx.Action
- func SendButtonInteractionCard(agentidID int64, taskID string, card *ButtonInteractionCard, extra *MsgExtra, ...) wx.Action
- func SendExternalContactFile(agentID int64, mediaID string, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactImage(agentID int64, mediaID string, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactMPNews(agentID int64, articles []*MPNewsArticle, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactMiniprogram(agentID int64, minip *Miniprogram, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactNews(agentID int64, articles []*NewsArticle, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactText(agentID int64, content string, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactVideo(agentID int64, video *Video, extra *ExternalContactExtra, ...) wx.Action
- func SendExternalContactVoice(agentID int64, mediaID string, extra *ExternalContactExtra, ...) wx.Action
- func SendFile(agentidID int64, mediaID string, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendImage(agentidID int64, mediaID string, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendLinkedcorpFile(agentID int64, mediaID string, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpImage(agentID int64, mediaID string, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpMPNews(agentID int64, articles []*MPNewsArticle, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpMarkdown(agentID int64, content string, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpMinipNotice(notice *MinipNotice, extra *LinkedcorpExtra, result *ResultLinkedcorpSend) wx.Action
- func SendLinkedcorpNews(agentID int64, articles []*NewsArticle, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpText(agentID int64, content string, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpTextCard(agentID int64, card *TextCard, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpVideo(agentID int64, video *Video, extra *LinkedcorpExtra, ...) wx.Action
- func SendLinkedcorpVoice(agentID int64, mediaID string, extra *LinkedcorpExtra, ...) wx.Action
- func SendMPNews(agentidID int64, articles []*MPNewsArticle, extra *MsgExtra, ...) wx.Action
- func SendMarkdown(agentidID int64, content string, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendMinipNotice(notice *MinipNotice, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendMultipleInteractionCard(agentidID int64, taskID string, card *MultipleInteractionCard, extra *MsgExtra, ...) wx.Action
- func SendNews(agentidID int64, articles []*NewsArticle, extra *MsgExtra, ...) wx.Action
- func SendNewsNoticeCard(agentidID int64, taskID string, card *NewsNoticeCard, extra *MsgExtra, ...) wx.Action
- func SendText(agentidID int64, content string, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendTextCard(agentidID int64, card *TextCard, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendTextNoticeCard(agentidID int64, taskID string, card *TextNoticeCard, extra *MsgExtra, ...) wx.Action
- func SendVideo(agentidID int64, video *Video, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendVoice(agentidID int64, mediaID string, extra *MsgExtra, result *ResultMsgSend) wx.Action
- func SendVoteInteractionCard(agentidID int64, taskID string, card *VoteInteractionCard, extra *MsgExtra, ...) wx.Action
- func UpdateAppchat(params *ParamsAppchatUpdate) wx.Action
- func UpdateCardButtonDisable(agentID int64, respCode, replaceName string, extra *CardExtra, ...) wx.Action
- func UpdateToButtonInteractionCard(agentID int64, respCode string, card *ButtonInteractionCard, extra *CardExtra, ...) wx.Action
- func UpdateToMultipleInteractionCard(agentID int64, respCode string, card *MultipleInteractionCard, ...) wx.Action
- func UpdateToNewsNoticeCard(agentID int64, respCode string, card *NewsNoticeCard, extra *CardExtra, ...) wx.Action
- func UpdateToTextNoticeCard(agentID int64, respCode string, card *TextNoticeCard, extra *CardExtra, ...) wx.Action
- func UpdateToVoteInteractionCard(agentID int64, respCode string, card *VoteInteractionCard, extra *CardExtra, ...) wx.Action
- type ActionMenu
- type AppchatInfo
- type AppchatMsg
- type ButtonInteractionCard
- type ButtonSelection
- type CardAction
- type CardButton
- type CardExtra
- type CardImage
- type CardJump
- type CardSource
- type CardType
- type CardUpdateButton
- type CheckBox
- type CheckOption
- type EmphasisContent
- type ExternalContactExtra
- type ExternalContactMsg
- type HorizontalContent
- type ImageTextArea
- type LinkedcorpExtra
- type LinkedcorpMsg
- type MPNews
- type MPNewsArticle
- type MainTitle
- type Media
- type MenuAction
- type Messasge
- type MinipNotice
- type Miniprogram
- type MsgExtra
- type MsgKV
- type MultipleInteractionCard
- type News
- type NewsArticle
- type NewsNoticeCard
- type ParamsAppchatCreate
- type ParamsAppchatUpdate
- type ParamsCardUpdate
- type ParamsMsgRecall
- type QuoteArea
- type Reply
- type ResultAppchartCreate
- type ResultAppchatGet
- type ResultCardUpdate
- type ResultExternalContactSend
- type ResultLinkedcorpSend
- type ResultMsgSend
- type SelectOption
- type SubmitButton
- type TemplateCard
- type Text
- type TextCard
- type TextNoticeCard
- type VerticalContent
- type Video
- type VoteInteractionCard
- type XMLActionMenu
- type XMLButtonInteractionCard
- type XMLButtonSelection
- type XMLCardAction
- type XMLCardButton
- type XMLCardImage
- type XMLCardJump
- type XMLCardSource
- type XMLCheckBox
- type XMLCheckOption
- type XMLEmphasisContent
- type XMLHorizontalContent
- type XMLImageTextArea
- type XMLMainTitle
- type XMLMedia
- type XMLMenuAction
- type XMLMultipleInteractionCard
- type XMLNews
- type XMLNewsArticle
- type XMLNewsNoticeCard
- type XMLQuoteArea
- type XMLSelectOption
- type XMLSubmitButton
- type XMLTemplateCard
- type XMLText
- type XMLTextNoticeCard
- type XMLUpdateButton
- type XMLVerticalContent
- type XMLVideo
- type XMLVoteInteractionCard
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 ReplyUpdateButtonInteractionCard ¶
func ReplyUpdateButtonInteractionCard(card *XMLButtonInteractionCard) event.Reply
ReplyUpdateButtonInteractionCard 被动回复消息(更新点击用户的整张卡片 - 按钮交互型)
func ReplyUpdateCardButton ¶
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 ¶
ReplyVideo 被动回复消息(视频消息)
func SendAppchatFile ¶
SendAppchatFile 发送消息到群聊会话(文件消息)
func SendAppchatImage ¶
SendAppchatImage 发送消息到群聊会话(图片消息)
func SendAppchatMPNews ¶
func SendAppchatMPNews(chatID string, articles []*MPNewsArticle, safe int) wx.Action
SendAppchatMPNews 发送消息到群聊会话(图文消息 - mpnews)
func SendAppchatMarkdown ¶
SendAppchatMarkdown 发送消息到群聊会话(markdown消息)
func SendAppchatNews ¶
func SendAppchatNews(chatID string, articles []*NewsArticle, safe int) wx.Action
SendAppchatNews 应用推送消息(图文消息)
func SendAppchatText ¶
SendAppchatText 发送消息到群聊会话(文本消息)
func SendAppchatTextCard ¶
SendAppchatTextCard 发送消息到群聊会话(文本卡片消息)
func SendAppchatVideo ¶
SendAppchatVideo 发送消息到群聊会话(视频消息)
func SendAppchatVoice ¶
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 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 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 SendVoteInteractionCard ¶
func SendVoteInteractionCard(agentidID int64, taskID string, card *VoteInteractionCard, extra *MsgExtra, result *ResultMsgSend) wx.Action
SendVoteInteractionCard 发送应用消息(模板卡片消息 - 投票选择型)
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 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 CardButton ¶
type CardSource ¶
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 EmphasisContent ¶
type ExternalContactExtra ¶
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 ImageTextArea ¶
type LinkedcorpExtra ¶
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 MenuAction ¶
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 Miniprogram ¶
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 ParamsAppchatUpdate ¶
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 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 消息回复
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 ResultLinkedcorpSend ¶
type ResultMsgSend ¶
type SelectOption ¶
type SubmitButton ¶
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 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 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 XMLCardAction ¶
type XMLCardButton ¶
type XMLCardImage ¶
type XMLCardJump ¶
type XMLCardSource ¶
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 XMLEmphasisContent ¶
type XMLHorizontalContent ¶
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 XMLMenuAction ¶
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 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 XMLSelectOption ¶
type XMLSubmitButton ¶
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 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 XMLVerticalContent ¶
type XMLVoteInteractionCard ¶
type XMLVoteInteractionCard struct { Source *XMLCardSource MainTitle *XMLMainTitle CheckBox *XMLCheckBox SubmitButton *XMLSubmitButton ReplaceText wx.CDATA }