Documentation ¶
Index ¶
- Constants
- type Event
- type EventApproval
- type EventBatchJobResult
- type EventChangeContact
- type EventChangeContactCreateParty
- type EventChangeContactCreateUser
- type EventChangeContactDeleteParty
- type EventChangeContactDeleteUser
- type EventChangeContactUpdateParty
- type EventChangeContactUpdateTag
- type EventChangeContactUpdateUser
- type EventChangeExternalContact
- type EventChangeExternalContactAddExternalContact
- type EventChangeExternalContactAddHalfExternalContact
- type EventChangeExternalContactChangeExternalChat
- type EventChangeExternalContactDelExternalContact
- type EventChangeExternalContactDelFollowUser
- type EventChangeExternalContactEditExternalContact
- type EventMenuClick
- type EventMenuLocationSelect
- type EventMenuPicSysPhoto
- type EventMenuPicSysPhotoOrAlbum
- type EventMenuPicWeixin
- type EventMenuScanCodePush
- type EventMenuScanCodeWaitMsg
- type EventMenuView
- type EventTaskCardClick
Constants ¶
const ( EventTypeChangeContact = "change_contact" // 通讯录变更 EventTypeChangeContactCreateUser = "create_user" // 新增成员事件 EventTypeChangeContactUpdateUser = "update_user" // 更新成员事件 EventTypeChangeContactDeleteUser = "delete_user" // 删除成员事件 EventTypeChangeContactCreateParty = "create_party" // 新增部门事件 EventTypeChangeContactUpdateParty = "update_party" // 更新部门事件 EventTypeChangeContactDeleteParty = "delete_party" // 删除部门事件 EventTypeChangeContactUpdateTag = "update_tag" // 标签成员变更事件 EventTypeBatchJobResult = "batch_job_result" // 异步任务完成通知 )
const ( EventTypeChangeExternalContact = "change_external_contact" //企业客户变更 EventTypeChangeExternalContactAddExternalContact = "add_external_contact" // 添加企业客户事件 EventTypeChangeExternalContactEditExternalContact = "edit_external_contact" //编辑企业客户事件 EventTypeChangeExternalContactAddHalfExternalContact = "add_half_external_contact" //外部联系人免验证添加成员事件 EventTypeChangeExternalContactDelExternalContact = "del_external_contact" //删除企业客户事件 EventTypeChangeExternalContactDelFollowUser = "del_follow_user" // 删除跟进成员事件 EventTypeChangeExternalContactChangeExternalChat = "change_external_chat" //客户群变更事件 )
const ( EventTypeMenuClick = "click" // 点击菜单拉取消息时的事件推送 EventTypeMenuView = "view" // 点击菜单跳转链接时的事件推送 EventTypeMenuScanCodePush = "scancode_push" // 扫码推事件的事件推送 EventTypeMenuScanCodeWaitMsg = "scancode_waitmsg" // 扫码推事件且弹出“消息接收中”提示框的事件推送 EventTypeMenuPicSysPhoto = "pic_sysphoto" // 弹出系统拍照发图的事件推送 EventTypeMenuPicSysPhotoOrAlbum = "pic_photo_or_album" // 弹出拍照或者相册发图的事件推送 EventTypeMenuPicWeixin = "pic_weixin" // 弹出微信相册发图器的事件推送 EventTypeMenuLocationSelect = "location_select" // 弹出地理位置选择器的事件推送 )
const (
EventTypeApproval = "open_approval_change" // 审批状态事件
)
const (
EventTypeTaskCardClick = "taskcard_click" // 任务卡片事件
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventApproval ¶
type EventApproval struct { Event AgentID string `xml:"AgentID"` ApprovalInfo struct { Text string `xml:",chardata"` ThirdNo string `xml:"ThirdNo"` OpenSpName string `xml:"OpenSpName"` OpenTemplateId string `xml:"OpenTemplateId"` OpenSpStatus string `xml:"OpenSpStatus"` ApplyTime string `xml:"ApplyTime"` ApplyUserName string `xml:"ApplyUserName"` ApplyUserId string `xml:"ApplyUserId"` ApplyUserParty string `xml:"ApplyUserParty"` ApplyUserImage string `xml:"ApplyUserImage"` ApprovalNodes struct { Text string `xml:",chardata"` ApprovalNode struct { Text string `xml:",chardata"` NodeStatus string `xml:"NodeStatus"` NodeAttr string `xml:"NodeAttr"` NodeType string `xml:"NodeType"` Items struct { Text string `xml:",chardata"` Item []struct { Text string `xml:",chardata"` ItemName string `xml:"ItemName"` ItemUserId string `xml:"ItemUserId"` ItemImage string `xml:"ItemImage"` ItemStatus string `xml:"ItemStatus"` ItemSpeech string `xml:"ItemSpeech"` ItemOpTime string `xml:"ItemOpTime"` } `xml:"Item"` } `xml:"Items"` } `xml:"ApprovalNode"` } `xml:"ApprovalNodes"` NotifyNodes struct { Text string `xml:",chardata"` NotifyNode struct { Text string `xml:",chardata"` ItemName string `xml:"ItemName"` ItemUserId string `xml:"ItemUserId"` ItemImage string `xml:"ItemImage"` } `xml:"NotifyNode"` } `xml:"NotifyNodes"` Approverstep string `xml:"approverstep"` } `xml:"ApprovalInfo"` }
<xml>
<ToUserName>wwddddccc7775555aaa</ToUserName> <FromUserName>sys</FromUserName> <CreateTime>1527838022</CreateTime> <MsgType>event</MsgType> <Event>open_approval_change</Event> <AgentID>1</AgentID> <ApprovalInfo> <ThirdNo>201806010001</ThirdNo> <OpenSpName>付款</OpenSpName> <OpenTemplateId>1234567890</OpenTemplateId> <OpenSpStatus>1</OpenSpStatus> <ApplyTime>1527837645</ApplyTime> <ApplyUserName>xiaoming</ApplyUserName> <ApplyUserId>1</ApplyUserId> <ApplyUserParty>产品部</ApplyUserParty> <ApplyUserImage>http://www.qq.com/xxx.png</ApplyUserImage> <ApprovalNodes> <ApprovalNode> <NodeStatus>1</NodeStatus> <NodeAttr>1</NodeAttr> <NodeType>1</NodeType> <Items> <Item> <ItemName>xiaohong</ItemName> <ItemUserId>2</ItemUserId> <ItemImage>http://www.qq.com/xxx.png</ItemImage> <ItemStatus>1</ItemStatus> <ItemSpeech></ItemSpeech> <ItemOpTime>0</ItemOpTime> </Item> <Item> <ItemName>xiaohong</ItemName> <ItemUserId>2</ItemUserId> <ItemImage>http://www.qq.com/xxx.png</ItemImage> <ItemStatus>1</ItemStatus> <ItemSpeech></ItemSpeech> <ItemOpTime>0</ItemOpTime> </Item> </Items> </ApprovalNode> </ApprovalNodes> <NotifyNodes> <NotifyNode> <ItemName>xiaogang</ItemName> <ItemUserId>3</ItemUserId> <ItemImage>http://www.qq.com/xxx.png</ItemImage> </NotifyNode> </NotifyNodes> <approverstep>0</approverstep> </ApprovalInfo>
</xml>
type EventBatchJobResult ¶
type EventBatchJobResult struct { Event BatchJob struct { Text string `xml:",chardata"` JobId string `xml:"JobId"` JobType string `xml:"JobType"` ErrCode string `xml:"ErrCode"` ErrMsg string `xml:"ErrMsg"` } `xml:"BatchJob"` }
<xml><ToUserName><![CDATA[wx28dbb14e3720FAKE]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>1425284517</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[batch_job_result]]></Event> <BatchJob><JobId><![CDATA[S0MrnndvRG5fadSlLwiBqiDDbM143UqTmKP3152FZk4]]></JobId> <JobType><![CDATA[sync_user]]></JobType> <ErrCode>0</ErrCode> <ErrMsg><![CDATA[ok]]></ErrMsg> </BatchJob> </xml>
type EventChangeContact ¶
type EventChangeContactCreateParty ¶
type EventChangeContactCreateParty struct { EventChangeContact ID string `xml:"Id"` Name string `xml:"Name"` ParentId string `xml:"ParentId"` Order string `xml:"Order"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_contact]]></Event> <ChangeType>create_party</ChangeType> <Id>2</Id> <Name><![CDATA[张三]]></Name> <ParentId><![CDATA[1]]></ParentId> <Order>1</Order>
</xml>
type EventChangeContactCreateUser ¶
type EventChangeContactCreateUser struct { EventChangeContact UserID string `xml:"UserID"` Name string `xml:"Name"` Department string `xml:"Department"` IsLeaderInDept string `xml:"IsLeaderInDept"` Position string `xml:"Position"` Mobile string `xml:"Mobile"` Gender string `xml:"Gender"` Email string `xml:"Email"` Status string `xml:"Status"` Avatar string `xml:"Avatar"` Alias string `xml:"Alias"` Telephone string `xml:"Telephone"` Address string `xml:"Address"` ExtAttr struct { Text string `xml:",chardata"` Item []struct { Chardata string `xml:",chardata"` Name string `xml:"Name"` Type string `xml:"Type"` Text struct { Text string `xml:",chardata"` Value string `xml:"Value"` } `xml:"Text"` Web struct { Text string `xml:",chardata"` Title string `xml:"Title"` URL string `xml:"Url"` } `xml:"Web"` } `xml:"Item"` } `xml:"ExtAttr"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_contact]]></Event> <ChangeType>create_user</ChangeType> <UserID><![CDATA[zhangsan]]></UserID> <Name><![CDATA[张三]]></Name> <Department><![CDATA[1,2,3]]></Department> <IsLeaderInDept><![CDATA[1,0,0]]></IsLeaderInDept> <Position><![CDATA[产品经理]]></Position> <Mobile>13800000000</Mobile> <Gender>1</Gender> <Email><![CDATA[zhangsan@gzdev.com]]></Email> <Status>1</Status> <Avatar><![CDATA[http://wx.qlogo.cn/mmopen/ajNVdqHZLLA3WJ6DSZUfiakYe37PKnQhBIeOQBO4czqrnZDS79FH5Wm5m4X69TBicnHFlhiafvDwklOpZeXYQQ2icg/0]]></Avatar> <Alias><![CDATA[zhangsan]]></Alias> <Telephone><![CDATA[020-123456]]></Telephone> <Address><![CDATA[广州市]]></Address> <ExtAttr> <Item> <Name><![CDATA[爱好]]></Name> <Type>0</Type> <Text> <Value><![CDATA[旅游]]></Value> </Text> </Item> <Item> <Name><![CDATA[卡号]]></Name> <Type>1</Type> <Web> <Title><![CDATA[企业微信]]></Title> <Url><![CDATA[https://work.weixin.qq.com]]></Url> </Web> </Item> </ExtAttr>
</xml>
type EventChangeContactDeleteParty ¶
type EventChangeContactDeleteParty struct { EventChangeContact ID string `xml:"Id"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_contact]]></Event> <ChangeType>delete_party</ChangeType> <Id>2</Id>
</xml>
type EventChangeContactDeleteUser ¶
type EventChangeContactDeleteUser struct { EventChangeContact ChangeType string `xml:"ChangeType"` UserID string `xml:"UserID"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_contact]]></Event> <ChangeType>delete_user</ChangeType> <UserID><![CDATA[zhangsan]]></UserID>
</xml>
type EventChangeContactUpdateParty ¶
type EventChangeContactUpdateParty struct { EventChangeContact ID string `xml:"Id"` Name string `xml:"Name"` ParentId string `xml:"ParentId"` Order string `xml:"Order"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_contact]]></Event> <ChangeType>update_party</ChangeType> <Id>2</Id> <Name><![CDATA[张三]]></Name> <ParentId><![CDATA[1]]></ParentId>
</xml>
type EventChangeContactUpdateTag ¶
type EventChangeContactUpdateTag struct { EventChangeContact TagId string `xml:"TagId"` AddUserItems string `xml:"AddUserItems"` DelUserItems string `xml:"DelUserItems"` AddPartyItems string `xml:"AddPartyItems"` DelPartyItems string `xml:"DelPartyItems"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_contact]]></Event> <ChangeType><![CDATA[update_tag]]></ChangeType> <TagId>1</TagId> <AddUserItems><![CDATA[zhangsan,lisi]]></AddUserItems> <DelUserItems><![CDATA[zhangsan1,lisi1]]></DelUserItems> <AddPartyItems><![CDATA[1,2]]></AddPartyItems> <DelPartyItems><![CDATA[3,4]]></DelPartyItems>
</xml>
type EventChangeContactUpdateUser ¶
type EventChangeContactUpdateUser struct { EventChangeContact ChangeType string `xml:"ChangeType"` UserID string `xml:"UserID"` NewUserID string `xml:"NewUserID"` Name string `xml:"Name"` Department string `xml:"Department"` IsLeaderInDept string `xml:"IsLeaderInDept"` Position string `xml:"Position"` Mobile string `xml:"Mobile"` Gender string `xml:"Gender"` Email string `xml:"Email"` Status string `xml:"Status"` Avatar string `xml:"Avatar"` Alias string `xml:"Alias"` Telephone string `xml:"Telephone"` Address string `xml:"Address"` ExtAttr struct { Text string `xml:",chardata"` Item []struct { Chardata string `xml:",chardata"` Name string `xml:"Name"` Type string `xml:"Type"` Text struct { Text string `xml:",chardata"` Value string `xml:"Value"` } `xml:"Text"` Web struct { Text string `xml:",chardata"` Title string `xml:"Title"` URL string `xml:"Url"` } `xml:"Web"` } `xml:"Item"` } `xml:"ExtAttr"` }
type EventChangeExternalContactAddExternalContact ¶
type EventChangeExternalContactAddExternalContact struct { EventChangeExternalContact UserID string `xml:"UserID"` ExternalUserID string `xml:"ExternalUserID"` State string `xml:"State"` WelcomeCode string `xml:"WelcomeCode"` }
* <xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_external_contact]]></Event> <ChangeType><![CDATA[add_external_contact]]></ChangeType> <UserID><![CDATA[zhangsan]]></UserID> <ExternalUserID><![CDATA[woAJ2GCAAAXtWyujaWJHDDGi0mAAAA]]></ExternalUserID> <State><![CDATA[teststate]]></State> <WelcomeCode><![CDATA[WELCOMECODE]]></WelcomeCode>
</xml>
type EventChangeExternalContactAddHalfExternalContact ¶
type EventChangeExternalContactAddHalfExternalContact struct { EventChangeExternalContact UserID string `xml:"UserID"` ExternalUserID string `xml:"ExternalUserID"` State string `xml:"State"` }
* <xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_external_contact]]></Event> <ChangeType><![CDATA[edit_external_contact]]></ChangeType> <UserID><![CDATA[zhangsan]]></UserID> <ExternalUserID><![CDATA[woAJ2GCAAAXtWyujaWJHDDGi0mAAAA]]></ExternalUserID> <State><![CDATA[teststate]]></State>
</xml>
type EventChangeExternalContactChangeExternalChat ¶
type EventChangeExternalContactChangeExternalChat struct { EventChangeExternalContact ChatId string `xml:"ChatId"` }
* <xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_external_chat]]></Event> <ChatId><![CDATA[CHAT_ID]]></ChatId>
</xml>
type EventChangeExternalContactDelExternalContact ¶
type EventChangeExternalContactDelExternalContact struct { EventChangeExternalContact UserID string `xml:"UserID"` ExternalUserID string `xml:"ExternalUserID"` }
* <xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_external_contact]]></Event> <ChangeType><![CDATA[del_external_contact]]></ChangeType> <UserID><![CDATA[zhangsan]]></UserID> <ExternalUserID><![CDATA[woAJ2GCAAAXtWyujaWJHDDGi0mACAAAA]]></ExternalUserID>
</xml>
type EventChangeExternalContactDelFollowUser ¶
type EventChangeExternalContactDelFollowUser struct { EventChangeExternalContact UserID string `xml:"UserID"` ExternalUserID string `xml:"ExternalUserID"` }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_external_contact]]></Event> <ChangeType><![CDATA[del_follow_user]]></ChangeType> <UserID><![CDATA[zhangsan]]></UserID> <ExternalUserID><![CDATA[woAJ2GCAAAXtWyujaWJHDDGi0mACHAAA]]></ExternalUserID>
</xml>
type EventChangeExternalContactEditExternalContact ¶
type EventChangeExternalContactEditExternalContact struct { EventChangeExternalContact UserID string `xml:"UserID"` ExternalUserID string `xml:"ExternalUserID"` State string `xml:"State"` }
* <xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[sys]]></FromUserName> <CreateTime>1403610513</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[change_external_contact]]></Event> <ChangeType><![CDATA[edit_external_contact]]></ChangeType> <UserID><![CDATA[zhangsan]]></UserID> <ExternalUserID><![CDATA[woAJ2GCAAAXtWyujaWJHDDGi0mAAAA]]></ExternalUserID> <State><![CDATA[teststate]]></State>
</xml>
type EventMenuClick ¶
<xml> <ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>123456789</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[click]]></Event> <EventKey><![CDATA[EVENTKEY]]></EventKey> <AgentID>1</AgentID> </xml>
type EventMenuLocationSelect ¶
type EventMenuLocationSelect struct { Event EventKey string `xml:"EventKey"` SendLocationInfo struct { Text string `xml:",chardata"` LocationX string `xml:"Location_X"` LocationY string `xml:"Location_Y"` Scale string `xml:"Scale"` Label string `xml:"Label"` Poiname string `xml:"Poiname"` } `xml:"SendLocationInfo"` AgentID string `xml:"AgentID"` AppType string `xml:"AppType"` }
type EventMenuPicSysPhoto ¶
type EventMenuPicSysPhoto struct { Event EventKey string `xml:"EventKey"` SendPicsInfo struct { Text string `xml:",chardata"` Count string `xml:"Count"` PicList struct { Text string `xml:",chardata"` Item struct { Text string `xml:",chardata"` PicMd5Sum string `xml:"PicMd5Sum"` } `xml:"item"` } `xml:"PicList"` } `xml:"SendPicsInfo"` AgentID string `xml:"AgentID"` }
<xml><ToUserName><![CDATA[gh_e136c6e50636]]></ToUserName> <FromUserName><![CDATA[oMgHVjngRipVsoxg6TuX3vz6glDg]]></FromUserName> <CreateTime>1408090651</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[pic_sysphoto]]></Event> <EventKey><![CDATA[6]]></EventKey> <SendPicsInfo><Count>1</Count> <PicList><item><PicMd5Sum><![CDATA[1b5f7c23b5bf75682a53e7b6d163e185]]></PicMd5Sum> </item> </PicList> </SendPicsInfo> </xml>
type EventMenuPicSysPhotoOrAlbum ¶
type EventMenuPicSysPhotoOrAlbum struct { Event EventKey string `xml:"EventKey"` SendPicsInfo struct { Text string `xml:",chardata"` Count string `xml:"Count"` PicList struct { Text string `xml:",chardata"` Item struct { Text string `xml:",chardata"` PicMd5Sum string `xml:"PicMd5Sum"` } `xml:"item"` } `xml:"PicList"` } `xml:"SendPicsInfo"` AgentID string `xml:"AgentID"` }
type EventMenuPicWeixin ¶
type EventMenuPicWeixin struct { Event EventKey string `xml:"EventKey"` SendPicsInfo struct { Text string `xml:",chardata"` Count string `xml:"Count"` PicList struct { Text string `xml:",chardata"` Item struct { Text string `xml:",chardata"` PicMd5Sum string `xml:"PicMd5Sum"` } `xml:"item"` } `xml:"PicList"` } `xml:"SendPicsInfo"` AgentID string `xml:"AgentID"` }
<xml><ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>1408090816</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[pic_weixin]]></Event> <EventKey><![CDATA[6]]></EventKey> <SendPicsInfo><Count>1</Count> <PicList><item><PicMd5Sum><![CDATA[5a75aaca956d97be686719218f275c6b]]></PicMd5Sum> </item> </PicList> </SendPicsInfo> <AgentID>1</AgentID> </xml>
type EventMenuScanCodePush ¶
type EventMenuScanCodePush struct { Event EventKey string ScanCodeInfo struct { ScanType string ScanResult string } AgentID string }
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>1408090502</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[scancode_push]]></Event> <EventKey><![CDATA[6]]></EventKey> <ScanCodeInfo> <ScanType><![CDATA[qrcode]]></ScanType> <ScanResult><![CDATA[1]]></ScanResult> </ScanCodeInfo> <AgentID>1</AgentID>
</xml>
type EventMenuScanCodeWaitMsg ¶
type EventMenuScanCodeWaitMsg struct { Event EventKey string ScanCodeInfo struct { ScanType string ScanResult string } AgentID string }
<xml><ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>1408090606</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[scancode_waitmsg]]></Event> <EventKey><![CDATA[6]]></EventKey> <ScanCodeInfo>
<ScanType><![CDATA[qrcode]]></ScanType> <ScanResult><![CDATA[2]]></ScanResult>
</ScanCodeInfo> <AgentID>1</AgentID> </xml>
type EventMenuView ¶
<xml> <ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>123456789</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[view]]></Event> <EventKey><![CDATA[www.qq.com]]></EventKey> <AgentID>1</AgentID> </xml>
type EventTaskCardClick ¶
type EventTaskCardClick struct { Event EventKey string `xml:"EventKey"` TaskId string `xml:"TaskId"` AgentId string `xml:"AgentId"` }
<xml> <ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[FromUser]]></FromUserName> <CreateTime>123456789</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[taskcard_click]]></Event> <EventKey><![CDATA[key111]]></EventKey> <TaskId><![CDATA[taskid111]]></TaskId > <AgentId>1</AgentId> </xml>