Documentation ¶
Index ¶
- Constants
- type Applier
- type ApprovalInfo
- type Approver
- type BatchJob
- type CommentUserInfo
- type Comments
- type Detail
- type EventBatchJobResult
- type EventClick
- 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 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_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_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" // 标签组事件 )
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"
View Source
const CALLBACK_EVENT_MSGAUDIT_NOTIFY = "msgaudit_notify"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalInfo ¶
type ApprovalInfo struct { Text string `xml:",chardata"` SpNO string `xml:"SpNo"` SpName string `xml:"SpName"` SpStatus string `xml:"SpStatus"` TemplateID string `xml:"TemplateId"` ApplyTime string `xml:"ApplyTime"` Applier *Applier `xml:"Applyer"` SpRecord []*SPRecord `xml:"SpRecord"` Notifier *Notifier `xml:"Notifyer"` Comments *Comments `xml:"Comments"` StatusChangeEvent string `xml:"StatuChangeEvent"` }
type CommentUserInfo ¶
type Comments ¶
type Comments struct { Text string `xml:",chardata"` CommentUserInfo *CommentUserInfo `xml:"CommentUserInfo"` CommentTime string `xml:"CommentTime"` CommentContent string `xml:"CommentContent"` CommentID string `xml:"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"` AgentID string `xml:"AgentID"` }
type EventEnterAgent ¶
type EventEnterAgent struct { contract.EventInterface models.CallbackMessageHeader EventKey string `xml:"EventKey"` AgentID string `xml:"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"` }
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"` OpenKfID string `xml:"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"` Longitude string `xml:"Longitude"` Precision string `xml:"Precision"` AgentID string `xml:"AgentID"` AppType string `xml:"AppType"` }
type EventLocationSelect ¶
type EventLocationSelect struct { contract.EventInterface models.CallbackMessageHeader EventKey string `xml:"EventKey"` SendLocationInfo *SendLocationInfo `xml:"SendLocationInfo"` AgentID string `xml:"AgentID"` AppType string `xml:"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"` ApprovalInfo *ApprovalInfo `xml:"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"` SendPicsInfo *SendPicsInfo `xml:"SendPicsInfo"` AgentID string `xml:"AgentID"` }
type EventPicSysPhoto ¶
type EventPicSysPhoto struct { contract.EventInterface models.CallbackMessageHeader EventKey string `xml:"EventKey"` SendPicsInfo *SendPicsInfo `xml:"SendPicsInfo"` AgentID string `xml:"AgentID"` }
type EventPicWeixin ¶
type EventPicWeixin struct { contract.EventInterface models.CallbackMessageHeader EventKey string `xml:"EventKey"` SendPicsInfo SendPicsInfo `xml:"SendPicsInfo"` AgentID string `xml:"AgentID"` }
type EventScanCodePush ¶
type EventScanCodePush struct { contract.EventInterface models.CallbackMessageHeader EventKey string `xml:"EventKey"` ScanCodeInfo *ScanCodeInfo `xml:"ScanCodeInfo"` AgentID string `xml:"AgentID"` }
type EventScancodeWaitMsg ¶
type EventScancodeWaitMsg struct { contract.EventInterface models.CallbackMessageHeader EventKey string `xml:"EventKey"` ScanCodeInfo *ScanCodeInfo `xml:"ScanCodeInfo"` AgentID string `xml:"AgentID"` }
type EventShareAgentChange ¶
type EventShareAgentChange struct {}
type EventSubscribe ¶
type EventSubscribe struct { contract.EventInterface models.CallbackMessageHeader AgentID string `xml:"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"` TaskID string `xml:"TaskId"` CardType string `xml:"CardType"` ResponseCode string `xml:"ResponseCode"` AgentID string `xml:"AgentID"` SelectedItems *SelectItems `xml:"SelectedItems"` }
type EventTemplateCardMenuEvent ¶
type EventTemplateCardMenuEvent struct { contract.EventInterface models.CallbackMessageHeader //EventKey string `xml:"EventKey"` TaskID string `xml:"TaskId"` CardType string `xml:"CardType"` ResponseCode string `xml:"ResponseCode"` AgentID string `xml:"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"` AgentID string `xml:"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 ScanCodeInfo ¶
type SelectItem ¶
type SelectItems ¶
type SelectItems struct { Text string `xml:",chardata"` SelectedItem []*SelectItem `xml:"SelectedItem"` }
type SendLocationInfo ¶
type SendPicsInfo ¶
Click to show internal directories.
Click to hide internal directories.