Documentation
¶
Index ¶
- Constants
- type Applier
- type ApprovalInfo
- type ApprovalItem
- type ApprovalItems
- type ApprovalNode
- type ApprovalNodes
- type Approver
- type BatchJob
- type CommentUserInfo
- type Comments
- type Detail
- type EventBatchJobResult
- type EventClick
- type EventCustomerAcquisitionFriendRequest
- type EventCustomerAcquisitionOpenProfile
- type EventEnterAgent
- type EventExternalChatCreate
- type EventExternalChatDismiss
- type EventExternalChatUpdate
- type EventExternalTransferFail
- type EventExternalUserAdd
- type EventExternalUserAddHalf
- type EventExternalUserDel
- type EventExternalUserDelFollowUser
- type EventExternalUserDismissdeprecated
- type EventExternalUserEdit
- type EventExternalUserTagCreate
- type EventExternalUserTagDelete
- type EventExternalUserTagShuffle
- type EventExternalUserTagUpdate
- type EventExternalUserUpdateAddMemberdeprecated
- type EventKFMsgOrEvent
- type EventLivingStatusChange
- type EventLocation
- type EventLocationSelect
- type EventMsgAuditNotify
- type EventOpenApprovalChange
- type EventPartyCreate
- type EventPartyDelete
- type EventPartyUpdate
- type EventPicPhotoOrAlbum
- type EventPicSysPhoto
- type EventPicWeixin
- type EventScanCodePush
- type EventScancodeWaitMsg
- type EventShareAgentChange
- type EventSubscribe
- type EventTagUpdate
- type EventTemplateCardEvent
- type EventTemplateCardMenuEvent
- type EventUserCreate
- type EventUserDelete
- type EventUserUpdate
- type EventView
- type Item
- type MessageImage
- type MessageLink
- type MessageLocation
- type MessageText
- type MessageVideo
- type MessageVoice
- type Notifier
- type NotifyNode
- type NotifyNodes
- type OptionID
- type PicList
- type SPRecord
- type ScanCodeInfo
- type SelectItem
- type SelectItems
- type SendLocationInfo
- type SendPicsInfo
Constants ¶
View Source
const ( CALLBACK_EVENT_SUBSCRIBE = "subscribe" CALLBACK_EVENT_UNSUBSCRIBE = "unsubscribe" CALLBACK_EVENT_ENTER_AGENT = "enter_agent" CALLBACK_EVENT_LOCATION = "LOCATION" CALLBACK_EVENT_BATCH_JOB_RESULT = "batch_job_result" CALLBACK_EVENT_CLICK = "click" CALLBACK_EVENT_VIEW = "view" CALLBACK_EVENT_SCANCODE_PUSH = "scancode_push" CALLBACK_EVENT_SCANCODE_WAITMSG = "scancode_waitmsg" CALLBACK_EVENT_PIC_SYSPHOTO = "pic_sysphoto" CALLBACK_EVENT_PIC_PHOTO_OR_ALBUM = "pic_photo_or_album" CALLBACK_EVENT_PIC_WEIXIN = "pic_weixin" CALLBACK_EVENT_LOCATION_SELECT = "location_select" CALLBACK_EVENT_OPEN_APPROVAL_CHANGE = "open_approval_change" CALLBACK_EVENT_SHARE_AGENT_CHANGE = "share_agent_change" CALLBACK_EVENT_TEMPLATE_CARD_EVENT = "template_card_event" CALLBACK_EVENT_TEMPLATE_CARD_MENU_EVENT = "template_card_menu_event" CALLBACK_EVENT_SYS_APPROVAL_CHANGE = "sys_approval_change" CALLBACK_EVENT_KF_MSG_OR_EVENT = "kf_msg_or_event" )
View Source
const ( CALLBACK_EVENT_CHANGE_EXTERNAL_CONTACT = "change_external_contact" // 变更外部联系人事件 CALLBACK_EVENT_CHANGE_TYPE_ADD_EXTERNAL_CONTACT = "add_external_contact" // 新增外部联系人事件 CALLBACK_EVENT_CHANGE_TYPE_EDIT_EXTERNAL_CONTACT = "edit_external_contact" // 编辑外部联系人事件 CALLBACK_EVENT_CHANGE_TYPE_ADD_HALF_EXTERNAL_CONTACT = "add_half_external_contact" // 外部联系人免验证添加成员事件 CALLBACK_EVENT_CHANGE_TYPE_DEL_EXTERNAL_CONTACT = "del_external_contact" // 删除企业客户事件 CALLBACK_EVENT_CHANGE_TYPE_DEL_FOLLOW_USER = "del_follow_user" // 删除跟进成员事件 CALLBACK_EVENT_CHANGE_TYPE_TRANSFER_FAIL = "transfer_fail" // 客户接替失败事件 CALLBACK_EVENT_CHANGE_EXTERNAL_CHAT = "change_external_chat" // 客户群创建事件 CALLBACK_EVENT_UPDATE_DETAIL_ADD_MEMBER = "add_member" // 成员入群事件 CALLBACK_EVENT_UPDATE_DETAIL_DEL_MEMBER = "del_member" // 成员退群事件 CALLBACK_EVENT_UPDATE_DETAIL_CHANGE_OWNER = "change_owner" // 群主变更事件 CALLBACK_EVENT_UPDATE_DETAIL_CHANGE_NAME = "change_name" // 群名变更事件 CALLBACK_EVENT_UPDATE_DETAIL_CHANGE_NOTICE = "change_notice" // 群公告变更事件 CALLBACK_EVENT_CHANGE_EXTERNAL_TAG = "change_external_tag" // 企业客户标签变更事件 CALLBACK_EVENT_CHANGE_TYPE_CREATE = "create" // 创建标签事件 CALLBACK_EVENT_CHANGE_TYPE_UPDATE = "update" // 更新标签名称事件 CALLBACK_EVENT_CHANGE_TYPE_DELETE = "delete" // 删除标签事件 CALLBACK_EVENT_CHANGE_TYPE_DISMISS = "dismiss" // 解散群事件 CALLBACK_EVENT_CHANGE_TYPE_SHUFFLE = "shuffle" // 标签重排事件 CALLBACK_EVENT_TAG_TYPE = "tag" // 标签事件 CALLBACK_EVENT_TAG_TYPE_GROUP = "tag_group" // 标签组事件 CALLBACK_EVENT_CUSTOMER_ACQUISITION = "customer_acquisition" CALLBACK_EVENT_CHANGE_TYPE_OPEN_PROFILE = "open_profile" // 微信客户打开获客链接事件 CALLBACK_EVENT_CHANGE_TYPE_FRIEND_REQUEST = "friend_request" // 通过获客链接发起好友请求事件 )
View Source
const ( CALLBACK_EVENT_MSGAUDIT_NOTIFY = "msgaudit_notify" CALLBACK_EVENT_UNLICENSED_NOTIFY = "unlicensed_notify" )
View Source
const ( CALLBACK_EVENT_CHANGE_TYPE_CREATE_PARTY = "create_party" CALLBACK_EVENT_CHANGE_TYPE_UPDATE_PARTY = "update_party" CALLBACK_EVENT_CHANGE_TYPE_DELETE_PARTY = "delete_party" )
View Source
const ( CALLBACK_EVENT_CHANGE_CONTACT = "change_contact" CALLBACK_EVENT_CHANGE_TYPE_CREATE_USER = "create_user" CALLBACK_EVENT_CHANGE_TYPE_UPDATE_USER = "update_user" CALLBACK_EVENT_CHANGE_TYPE_DELETE_USER = "delete_user" )
View Source
const CALLBACK_EVENT_CHANGE_TYPE_UPDATE_TAG = "update_tag"
View Source
const CALLBACK_EVENT_LIVING_STATUS_CHANGE = "living_status_change"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalInfo ¶
type ApprovalInfo struct {
Text string `xml:",chardata" json:",chardata"`
SpNO string `xml:"SpNo" json:"SpNo"`
SpName string `xml:"SpName" json:"SpName"`
SpStatus string `xml:"SpStatus" json:"SpStatus"`
TemplateID string `xml:"TemplateId" json:"TemplateId"`
ApplyTime string `xml:"ApplyTime" json:"ApplyTime"`
Applier *Applier `xml:"Applyer" json:"Applyer"`
SpRecord []*SPRecord `xml:"SpRecord" json:"SpRecord"`
Notifier *Notifier `xml:"Notifyer" json:"Notifyer"`
Comments *Comments `xml:"Comments" json:"Comments"`
StatusChangeEvent string `xml:"StatuChangeEvent" json:"StatuChangeEvent"`
// new fields
// https://developer.work.weixin.qq.com/document/path/90240#%E5%AE%A1%E6%89%B9%E7%8A%B6%E6%80%81%E9%80%9A%E7%9F%A5%E4%BA%8B%E4%BB%B6
ThirdNo string `xml:"ThirdNo" json:"ThirdNo"`
OpenSpName string `xml:"OpenSpName" json:"OpenSpName"`
OpenTemplateId string `xml:"OpenTemplateId" json:"OpenTemplateId"`
OpenSpStatus int `xml:"OpenSpStatus" json:"OpenSpStatus"`
ApplyUserName string `xml:"ApplyUserName" json:"ApplyUserName"`
ApplyUserId string `xml:"ApplyUserId" json:"ApplyUserId"`
ApplyUserParty string `xml:"ApplyUserParty" json:"ApplyUserParty"`
ApplyUserImage string `xml:"ApplyUserImage" json:"ApplyUserImage"`
ApprovalNodes ApprovalNodes `xml:"ApprovalNodes" json:"ApprovalNodes"`
NotifyNodes NotifyNodes `xml:"NotifyNodes" json:"NotifyNodes"`
ApproverStep int `xml:"approverstep" json:"approverstep"`
}
type ApprovalItem ¶ added in v3.4.13
type ApprovalItem struct {
ItemName string `xml:"ItemName" json:"ItemName"`
ItemUserId string `xml:"ItemUserId" json:"ItemUserId"`
ItemImage string `xml:"ItemImage" json:"ItemImage"`
ItemStatus int `xml:"ItemStatus" json:"ItemStatus"`
ItemSpeech string `xml:"ItemSpeech" json:"ItemSpeech"`
ItemOpTime int64 `xml:"ItemOpTime" json:"ItemOpTime"`
}
type ApprovalItems ¶ added in v3.4.13
type ApprovalItems struct {
ApprovalItem []ApprovalItem `xml:"Item" json:"Item"`
}
type ApprovalNode ¶ added in v3.4.13
type ApprovalNode struct {
NodeStatus int `xml:"NodeStatus" json:"NodeStatus"`
NodeAttr int `xml:"NodeAttr" json:"NodeAttr"`
NodeType int `xml:"NodeType" json:"NodeType"`
ApprovalItems ApprovalItems `xml:"Items" json:"Items"`
}
type ApprovalNodes ¶ added in v3.4.13
type ApprovalNodes struct {
ApprovalNode []ApprovalNode `xml:"ApprovalNode" json:"ApprovalNode"`
}
type CommentUserInfo ¶
type Comments ¶
type Comments struct {
Text string `xml:",chardata" json:",chardata"`
CommentUserInfo *CommentUserInfo `xml:"CommentUserInfo" json:"CommentUserInfo"`
CommentTime string `xml:"CommentTime" json:"CommentTime"`
CommentContent string `xml:"CommentContent" json:"CommentContent"`
CommentID string `xml:"CommentId" json:"CommentId"`
}
type EventBatchJobResult ¶
type EventBatchJobResult struct {
contract.EventInterface
models.CallbackMessageHeader
BatchJob *BatchJob `xml:"BatchJob"`
}
type EventClick ¶
type EventClick struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventCustomerAcquisitionFriendRequest ¶ added in v3.2.43
type EventCustomerAcquisitionFriendRequest struct {
contract.EventInterface
models.CallbackMessageHeader
LinkID string `xml:"LinkId"`
State string `xml:"State"`
}
type EventCustomerAcquisitionOpenProfile ¶ added in v3.2.43
type EventCustomerAcquisitionOpenProfile struct {
contract.EventInterface
models.CallbackMessageHeader
LinkID string `xml:"LinkId"`
State string `xml:"State"`
}
type EventEnterAgent ¶
type EventEnterAgent struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventExternalChatCreate ¶ added in v3.0.57
type EventExternalChatCreate struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
}
type EventExternalChatDismiss ¶ added in v3.0.57
type EventExternalChatDismiss struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
}
type EventExternalChatUpdate ¶ added in v3.0.57
type EventExternalChatUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
UpdateDetail string `xml:"UpdateDetail"`
JoinScene string `xml:"JoinScene"`
QuitScene string `xml:"QuitScene"`
MemChangeCnt string `xml:"MemChangeCnt"`
MemChangeList []struct {
Item string `xml:"Item"`
} `xml:"MemChangeList"`
LastMemVer string `xml:"LastMemVer"`
CurMemVer string `xml:"CurMemVer"`
}
type EventExternalTransferFail ¶
type EventExternalTransferFail struct {
contract.EventInterface
models.CallbackMessageHeader
FailReason string `xml:"FailReason"`
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
}
type EventExternalUserAdd ¶
type EventExternalUserAdd struct {
contract.EventInterface
models.CallbackMessageHeader
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
State string `xml:"State"`
WelcomeCode string `xml:"WelcomeCode"`
}
type EventExternalUserAddHalf ¶
type EventExternalUserAddHalf struct {
contract.EventInterface
models.CallbackMessageHeader
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
State string `xml:"State"`
WelcomeCode string `xml:"WelcomeCode"`
}
type EventExternalUserDel ¶
type EventExternalUserDel struct {
contract.EventInterface
models.CallbackMessageHeader
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
Source string `xml:"Source"`
}
type EventExternalUserDelFollowUser ¶
type EventExternalUserDelFollowUser struct {
contract.EventInterface
models.CallbackMessageHeader
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
}
type EventExternalUserDismiss
deprecated
type EventExternalUserDismiss struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
}
Deprecated: Use EventExternalChatDismiss instead.
type EventExternalUserEdit ¶
type EventExternalUserEdit struct {
contract.EventInterface
models.CallbackMessageHeader
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
}
type EventExternalUserTagCreate ¶
type EventExternalUserTagCreate struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
TagType string `xml:"TagType"`
StrategyID string `xml:"StrategyId"`
}
type EventExternalUserTagDelete ¶
type EventExternalUserTagDelete struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
TagType string `xml:"TagType"`
StrategyID string `xml:"StrategyId"`
}
type EventExternalUserTagShuffle ¶
type EventExternalUserTagShuffle struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
StrategyID string `xml:"StrategyId"`
ChangeType string `xml:"ChangeType"`
}
type EventExternalUserTagUpdate ¶
type EventExternalUserTagUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
TagType string `xml:"TagType"`
StrategyID string `xml:"StrategyId"`
}
type EventExternalUserUpdateAddMember
deprecated
type EventExternalUserUpdateAddMember struct {
contract.EventInterface
models.CallbackMessageHeader
ChatID string `xml:"ChatId"`
ChangeType string `xml:"ChangeType"`
UpdateDetail string `xml:"UpdateDetail"`
JoinScene string `xml:"JoinScene"`
QuitScene string `xml:"QuitScene"`
MemChangeCnt string `xml:"MemChangeCnt"`
}
Deprecated: Use EventExternalChatUpdate instead.
type EventKFMsgOrEvent ¶ added in v3.1.14
type EventKFMsgOrEvent struct {
contract.EventInterface
models.CallbackMessageHeader
Token string `xml:"Token" json:"Token"`
OpenKfID string `xml:"OpenKfId" json:"OpenKfId"`
}
type EventLivingStatusChange ¶
type EventLivingStatusChange struct {
contract.EventInterface
models.CallbackMessageHeader
LivingID string `xml:"LivingId"`
Status string `xml:"Status"`
AgentID string `xml:"AgentID"`
}
type EventLocation ¶
type EventLocation struct {
contract.EventInterface
models.CallbackMessageHeader
Latitude string `xml:"Latitude" json:"Latitude"`
Longitude string `xml:"Longitude" json:"Longitude"`
Precision string `xml:"Precision" json:"Precision"`
AgentID string `xml:"AgentID" json:"AgentID"`
AppType string `xml:"AppType" json:"AppType"`
}
type EventLocationSelect ¶
type EventLocationSelect struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
SendLocationInfo *SendLocationInfo `xml:"SendLocationInfo" json:"SendLocationInfo"`
AgentID string `xml:"AgentID" json:"AgentID"`
AppType string `xml:"AppType" json:"AppType"`
}
type EventMsgAuditNotify ¶
type EventMsgAuditNotify struct {
contract.EventInterface
models.CallbackMessageHeader
AgentID string `xml:"AgentID"`
}
type EventOpenApprovalChange ¶
type EventOpenApprovalChange struct {
contract.EventInterface
models.CallbackMessageHeader
AgentID string `xml:"AgentID" json:"AgentID"`
ApprovalInfo *ApprovalInfo `xml:"ApprovalInfo" json:"ApprovalInfo"`
}
type EventPartyCreate ¶
type EventPartyCreate struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
Name string `xml:"Name"`
ParentID string `xml:"ParentId"`
Order string `xml:"Order"`
}
type EventPartyDelete ¶
type EventPartyDelete struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
}
type EventPartyUpdate ¶
type EventPartyUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
ID string `xml:"Id"`
Name string `xml:"Name"`
ParentID string `xml:"ParentId"`
}
type EventPicPhotoOrAlbum ¶
type EventPicPhotoOrAlbum struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
SendPicsInfo *SendPicsInfo `xml:"SendPicsInfo" json:"SendPicsInfo"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventPicSysPhoto ¶
type EventPicSysPhoto struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
SendPicsInfo *SendPicsInfo `xml:"SendPicsInfo" json:"SendPicsInfo"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventPicWeixin ¶
type EventPicWeixin struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
SendPicsInfo SendPicsInfo `xml:"SendPicsInfo" json:"SendPicsInfo"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventScanCodePush ¶
type EventScanCodePush struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
ScanCodeInfo *ScanCodeInfo `xml:"ScanCodeInfo" json:"ScanCodeInfo"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventScancodeWaitMsg ¶
type EventScancodeWaitMsg struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
ScanCodeInfo *ScanCodeInfo `xml:"ScanCodeInfo" json:"ScanCodeInfo"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventShareAgentChange ¶
type EventShareAgentChange struct {
}
type EventSubscribe ¶
type EventSubscribe struct {
contract.EventInterface
models.CallbackMessageHeader
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventTagUpdate ¶
type EventTagUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
TagID string `xml:"TagId"`
AddUserItems string `xml:"AddUserItems"`
DelUserItems string `xml:"DelUserItems"`
AddPartyItems string `xml:"AddPartyItems"`
DelPartyItems string `xml:"DelPartyItems"`
}
type EventTemplateCardEvent ¶
type EventTemplateCardEvent struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
TaskID string `xml:"TaskId" json:"TaskId"`
CardType string `xml:"CardType" json:"CardType"`
ResponseCode string `xml:"ResponseCode" json:"ResponseCode"`
AgentID string `xml:"AgentID" json:"AgentID"`
SelectedItems *SelectItems `xml:"SelectedItems" json:"SelectedItems"`
}
type EventTemplateCardMenuEvent ¶
type EventTemplateCardMenuEvent struct {
contract.EventInterface
models.CallbackMessageHeader
// EventKey string `xml:"EventKey" json:"EventKey"`
TaskID string `xml:"TaskId" json:"TaskId"`
CardType string `xml:"CardType" json:"CardType"`
ResponseCode string `xml:"ResponseCode" json:"ResponseCode"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type EventUserCreate ¶
type EventUserCreate struct {
contract.EventInterface
models.CallbackMessageHeader
ChangeType string `xml:"ChangeType"`
UserID string `xml:"UserID"`
Name string `xml:"Name"`
Department string `xml:"Department"`
MainDepartment string `xml:"MainDepartment"`
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 EventUserDelete ¶
type EventUserDelete struct {
contract.EventInterface
models.CallbackMessageHeader
UserID string `xml:"UserID"`
}
type EventUserUpdate ¶
type EventUserUpdate struct {
contract.EventInterface
models.CallbackMessageHeader
ChangeType string `xml:"ChangeType"`
UserID string `xml:"UserID"`
NewUserID string `xml:"NewUserID"`
Name string `xml:"Name"`
Department string `xml:"Department"`
MainDepartment string `xml:"MainDepartment"`
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 EventView ¶
type EventView struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey" json:"EventKey"`
AgentID string `xml:"AgentID" json:"AgentID"`
}
type MessageImage ¶
type MessageImage struct {
contract.EventInterface
models.CallbackMessageHeader
PicUrl string `xml:"PicUrl"`
MediaID string `xml:"MediaId"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageLink ¶
type MessageLink struct {
contract.EventInterface
models.CallbackMessageHeader
Title string `xml:"Title"`
Description string `xml:"Description"`
URL string `xml:"Url"`
PicUrl string `xml:"PicUrl"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageLocation ¶
type MessageText ¶
type MessageText struct {
contract.EventInterface
models.CallbackMessageHeader
Content string `xml:"Content"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageVideo ¶
type MessageVideo struct {
contract.EventInterface
models.CallbackMessageHeader
MediaID string `xml:"MediaId"`
ThumbMediaID string `xml:"ThumbMediaId"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageVoice ¶
type MessageVoice struct {
contract.EventInterface
models.CallbackMessageHeader
MediaID string `xml:"MediaId"`
Format string `xml:"Format"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type NotifyNode ¶ added in v3.4.13
type NotifyNodes ¶ added in v3.4.13
type NotifyNodes struct {
NotifyNode []NotifyNode `xml:"NotifyNode" json:"NotifyNode"`
}
type ScanCodeInfo ¶
type SelectItem ¶
type SelectItems ¶
type SelectItems struct {
Text string `xml:",chardata" json:",chardata"`
SelectedItem []*SelectItem `xml:"SelectedItem" json:"SelectedItem"`
}
type SendLocationInfo ¶
type SendLocationInfo struct {
Text string `xml:",chardata" json:",chardata"`
LocationX string `xml:"Location_X" json:"Location_X"`
LocationY string `xml:"Location_Y" json:"Location_Y"`
Scale string `xml:"Scale" json:"Scale"`
Label string `xml:"Label" json:"Label"`
PoiName string `xml:"Poiname" json:"Poiname"`
}
type SendPicsInfo ¶
Click to show internal directories.
Click to hide internal directories.