Documentation ¶
Index ¶
- type BTN
- type ContentItem
- type InteractiveTaskCard
- type MiniProgramNotice
- type RequestFile
- type RequestImage
- type RequestMPNews
- type RequestMPNewsArticle
- type RequestMarkdown
- type RequestMessageSend
- type RequestMessageSendFile
- type RequestMessageSendImage
- type RequestMessageSendInteractiveTaskCard
- type RequestMessageSendInterface
- type RequestMessageSendMPNews
- type RequestMessageSendMarkdown
- type RequestMessageSendMiniProgramNotice
- type RequestMessageSendNews
- type RequestMessageSendTemplateCard
- type RequestMessageSendText
- type RequestMessageSendTextCard
- type RequestMessageSendVideo
- type RequestMessageSendVoice
- type RequestNews
- type RequestNewsArticle
- type RequestTemplateCard
- type RequestText
- type RequestTextCard
- type RequestVideo
- type RequestVoice
- type TemplateCardAction
- type TemplateCardActionListItem
- type TemplateCardActionMenu
- type TemplateCardButtonListItem
- type TemplateCardButtonSelection
- type TemplateCardCheckbox
- type TemplateCardCheckboxOptionListItem
- type TemplateCardEmphasisContent
- type TemplateCardHorizontalContentListItem
- type TemplateCardImage
- type TemplateCardImageTextArea
- type TemplateCardJumpListItem
- type TemplateCardMainTitle
- type TemplateCardOptionListItem
- type TemplateCardQuoteArea
- type TemplateCardSelectList
- type TemplateCardSource
- type TemplateCardSubmitButton
- type TemplateCardVerticalContentListItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentItem ¶
type InteractiveTaskCard ¶
type MiniProgramNotice ¶
type MiniProgramNotice struct { Appid string `json:"appid"` // "wx123123123123123", Page string `json:"page"` // "pages/index?userid=zhangsan&orderid=123123123", Title string `json:"title"` // "会议室预订成功通知", Description string `json:"description"` // "4月27日 16:16", EmphasisFirstItem bool `json:"emphasis_first_item"` // true, ContentItem []*ContentItem `json:"content_item"` }
type RequestFile ¶
type RequestFile struct {
MediaID string `json:"media_id"` // {"你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看<a href=\"http://work.weixin.qq.com\">邮件中心视频实况</a>,聪明避开排队。"},
}
type RequestImage ¶
type RequestImage struct {
MediaID string `json:"media_id"` // "MEDIA_ID"
}
type RequestMPNews ¶
type RequestMPNews struct {
Article []*RequestMPNewsArticle `json:"articles"`
}
type RequestMPNewsArticle ¶
type RequestMPNewsArticle struct { Title string `json:"title"` // "Title", ThumbMediaID string `json:"thumb_media_id"` // "MEDIA_ID", Author string `json:"author"` // "Author", ContentSourceURL string `json:"content_source_url"` // "URL", Content string `json:"content"` // "Content", Digest string `json:"digest"` // "Digest description" }
type RequestMarkdown ¶
type RequestMarkdown struct {
Content string `json:"content"` // {"您的会议室已经预定,稍后会同步到`邮箱`
}
type RequestMessageSend ¶
type RequestMessageSend struct { // touser、toparty、totag不能同时为空 ToUser string `json:"touser"` // "UserID1|UserID2|UserID3", ToParty string `json:"toparty"` // "PartyID1|PartyID2", ToTag string `json:"totag"` // "TagID1 | TagID2", MsgType string `json:"msgtype"` // "text", AgentID int `json:"agentid"` // 1, Safe int `json:"safe"` // 0, EnableIDTrans int `json:"enable_id_trans"` // 0, EnableDuplicateCheck int `json:"enable_duplicate_check"` // 0, DuplicateCheckInterval int `json:"duplicate_check_interval"` // 1800 }
func (*RequestMessageSend) GetAgentID ¶
func (request *RequestMessageSend) GetAgentID() int
func (*RequestMessageSend) SetAgentID ¶
func (request *RequestMessageSend) SetAgentID(agentID int) RequestMessageSendInterface
type RequestMessageSendFile ¶
type RequestMessageSendFile struct { RequestMessageSend File *RequestFile `json:"file"` }
type RequestMessageSendImage ¶
type RequestMessageSendImage struct { RequestMessageSend Image *RequestImage `json:"image"` }
type RequestMessageSendInteractiveTaskCard ¶
type RequestMessageSendInteractiveTaskCard struct { RequestMessageSend InteractiveTaskCard *InteractiveTaskCard `json:"interactive_taskcard"` }
type RequestMessageSendInterface ¶
type RequestMessageSendInterface interface { GetAgentID() int SetAgentID(agentID int) RequestMessageSendInterface }
https://developer.work.weixin.qq.com/document/path/90236#文件消息
type RequestMessageSendMPNews ¶
type RequestMessageSendMPNews struct { RequestMessageSend MPNews *RequestMPNews `json:"mpnews"` }
type RequestMessageSendMarkdown ¶
type RequestMessageSendMarkdown struct { RequestMessageSend Markdown *RequestMarkdown `json:"markdown"` }
type RequestMessageSendMiniProgramNotice ¶
type RequestMessageSendMiniProgramNotice struct { RequestMessageSend MiniProgramNotice *MiniProgramNotice `json:"miniprogram_notice"` }
type RequestMessageSendNews ¶
type RequestMessageSendNews struct { RequestMessageSend News *RequestNews `json:"news"` }
type RequestMessageSendTemplateCard ¶
type RequestMessageSendTemplateCard struct { RequestMessageSend TemplateCard *RequestTemplateCard `json:"template_card"` }
type RequestMessageSendText ¶
type RequestMessageSendText struct { RequestMessageSend Text *RequestText `json:"text"` }
type RequestMessageSendTextCard ¶
type RequestMessageSendTextCard struct { RequestMessageSend TextCard *RequestTextCard `json:"textcard"` }
type RequestMessageSendVideo ¶
type RequestMessageSendVideo struct { RequestMessageSend Video *RequestVideo `json:"video"` }
type RequestMessageSendVoice ¶
type RequestMessageSendVoice struct { RequestMessageSend Voice *RequestVoice `json:"voice"` }
type RequestNews ¶
type RequestNews struct {
Article []*RequestNewsArticle `json:"articles"`
}
type RequestNewsArticle ¶
type RequestNewsArticle struct { Title string `json:"title"` // "领奖通知", Description string `json:"description"` // "<div class=\"gray\">2016年9月26日</div> <div class=\"normal\">恭喜你抽中iPhone 7一台,领奖码:xxxx</div><div class=\"highlight\">请于2016年10月10日前联系行政同事领取</div>", URL string `json:"url"` // "URL", PicURL string `json:"picurl"` // 多" AppID string `json:"appid"` PagePath string `json:"pagepath"` }
type RequestTemplateCard ¶
type RequestTemplateCard struct { CardType string `json:"card_type"` Source *TemplateCardSource `json:"source"` ActionMenu *TemplateCardActionMenu `json:"action_menu"` TaskID string `json:"task_id"` MainTitle *TemplateCardMainTitle `json:"main_title"` QuoteArea *TemplateCardQuoteArea `json:"quote_area"` EmphasisContent *TemplateCardEmphasisContent `json:"emphasis_content"` SubTitleText string `json:"sub_title_text"` HorizontalContentList []*TemplateCardHorizontalContentListItem `json:"horizontal_content_list"` JumpList []*TemplateCardJumpListItem `json:"jump_list"` CardAction *TemplateCardAction `json:"card_action"` ImageTextArea *TemplateCardImageTextArea `json:"image_text_area"` CardImage *TemplateCardImage `json:"card_image"` VerticalContentList []*TemplateCardVerticalContentListItem `json:"vertical_content_list"` ButtonSelection *TemplateCardButtonSelection `json:"button_selection"` ButtonList []*TemplateCardButtonListItem `json:"button_list"` Checkbox *TemplateCardCheckbox `json:"checkbox"` SubmitButton *TemplateCardSubmitButton `json:"submit_button"` SelectList []*TemplateCardSelectList `json:"select_list"` }
type RequestText ¶
type RequestText struct {
Content string `json:"content"` // {"你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看<a href=\"http://work.weixin.qq.com\">邮件中心视频实况</a>,聪明避开排队。"},
}
type RequestTextCard ¶
type RequestTextCard struct { Title string `json:"title"` // "领奖通知", Description string `json:"description"` // "<div class=\"gray\">2016年9月26日</div> <div class=\"normal\">恭喜你抽中iPhone 7一台,领奖码:xxxx</div><div class=\"highlight\">请于2016年10月10日前联系行政同事领取</div>", Url string `json:"url"` // "URL", BtnTXT string `json:"btntxt"` // 多" }
type RequestVideo ¶
type RequestVoice ¶
type RequestVoice struct {
MediaID string `json:"media_id"` // {"你的快递已到,请携带工卡前往邮件中心领取。\n出发前可查看<a href=\"http://work.weixin.qq.com\">邮件中心视频实况</a>,聪明避开排队。"},
}
type TemplateCardAction ¶
type TemplateCardActionMenu ¶
type TemplateCardActionMenu struct { Desc string `json:"desc"` ActionList []*TemplateCardActionListItem `json:"action_list"` }
type TemplateCardButtonSelection ¶
type TemplateCardButtonSelection struct { QuestionKey string `json:"question_key"` Title string `json:"title"` OptionList []*TemplateCardOptionListItem `json:"option_list"` SelectedID string `json:"selected_id"` }
type TemplateCardCheckbox ¶
type TemplateCardCheckbox struct { QuestionKey string `json:"question_key"` OptionList []*TemplateCardCheckboxOptionListItem `json:"option_list"` Mode int `json:"mode"` }
type TemplateCardImage ¶
type TemplateCardMainTitle ¶
type TemplateCardQuoteArea ¶
type TemplateCardSelectList ¶
type TemplateCardSelectList struct { QuestionKey string `json:"question_key"` Title string `json:"title"` SelectedID string `json:"selected_id"` OptionList []*TemplateCardOptionListItem `json:"option_list"` }
type TemplateCardSource ¶
Source Files ¶
- requestMessageSend.go
- requestMessageSendFile.go
- requestMessageSendImage.go
- requestMessageSendInteractiveTaskCard.go
- requestMessageSendMPNews.go
- requestMessageSendMarkdown.go
- requestMessageSendMiniProgramNotice.go
- requestMessageSendNews.go
- requestMessageSendTemplateCard.go
- requestMessageSendText.go
- requestMessageSendTextCard.go
- requestMessageSendVideo.go
- requestMessageSendVoice.go
Click to show internal directories.
Click to hide internal directories.