Documentation ¶
Index ¶
- func AddAccount(name, mediaID string, result *ResultAccountAdd) wx.Action
- func AddContactWay(openKFID, scene string, result *ResultContactWayAdd) wx.Action
- func AddServicer(openKFID string, userIDs []string, result *ResultServicerAdd) wx.Action
- func BatchGetCustomer(externalUserIDs []string, result *ResultCustomerBatchGet) wx.Action
- func CancelUpgradeService(openKFID, externalUserID string) wx.Action
- func DeleteAccount(openKFID string) wx.Action
- func DeleteServicer(openKFID string, userIDs []string, result *ResultServicerDelete) wx.Action
- func GetServiceState(openKFID, externalUserID string, result *ResultServiceState) wx.Action
- func GetUpgradeServiceConfig(result *ResultServiceUpgradeConfig) wx.Action
- func ListAccount(result *ResultAccountList) wx.Action
- func ListServicer(openKFID string, result *ResultServicerList) wx.Action
- func SendFileMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
- func SendImageMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
- func SendLinkMsg(toUser, openKFID string, link *Link, result *ResultMsgSend) wx.Action
- func SendLocationMsg(toUser, openKFID string, location *Location, result *ResultMsgSend) wx.Action
- func SendMenuMsg(toUser, openKFID string, menu *Menu, result *ResultMsgSend) wx.Action
- func SendMenuMsgOnEvent(code string, menu *Menu, result *ResultMsgSend) wx.Action
- func SendMinipMsg(toUser, openKFID string, minip *Minip, result *ResultMsgSend) wx.Action
- func SendTextMsg(toUser, openKFID, content string, result *ResultMsgSend) wx.Action
- func SendTextMsgOnEvent(code, content string, result *ResultMsgSend) wx.Action
- func SendVideoMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
- func SendVoiceMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
- func SyncMsg(params *ParamsMsgSync, result *ResultMsgSync) wx.Action
- func TransferServiceState(params *ParamsServiceStateTransfer, result *ResultServiceStateTransfer) wx.Action
- func UpdateAccount(openKFID, name, mediaID string) wx.Action
- func UpgradeGroupChatService(openKFID, externalUserID string, groupChat *GroupChat) wx.Action
- func UpgradeMemberService(openKFID, externalUserID string, member *Member) wx.Action
- type AccountListData
- type BusinessCard
- type ClickMenu
- type Customer
- type ErrServicer
- type Event
- type GroupChat
- type GroupChatRange
- type Link
- type Location
- type Media
- type Member
- type MemberRange
- type Menu
- type MenuItem
- type MenuType
- type Minip
- type MinipMenu
- type MsgListData
- type ParamsAccountAdd
- type ParamsAccountDelete
- type ParamsAccountUpdate
- type ParamsContactWayAdd
- type ParamsCustomerBatchGet
- type ParamsMsgOnEvent
- type ParamsMsgSend
- type ParamsMsgSync
- type ParamsServiceState
- type ParamsServiceStateTransfer
- type ParamsServiceUpgrade
- type ParamsServiceUpgradeCancel
- type ParamsServicerAdd
- type ParamsServicerDelete
- type ResultAccountAdd
- type ResultAccountList
- type ResultContactWayAdd
- type ResultCustomerBatchGet
- type ResultMsgSend
- type ResultMsgSync
- type ResultServiceState
- type ResultServiceStateTransfer
- type ResultServiceUpgradeConfig
- type ResultServicerAdd
- type ResultServicerDelete
- type ResultServicerList
- type ServicerListData
- type Text
- type ViewMenu
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccount ¶
func AddAccount(name, mediaID string, result *ResultAccountAdd) wx.Action
AddAccount 添加客服帐号
func AddContactWay ¶
func AddContactWay(openKFID, scene string, result *ResultContactWayAdd) wx.Action
AddContactWay 获取客服帐号链接
func AddServicer ¶
func AddServicer(openKFID string, userIDs []string, result *ResultServicerAdd) wx.Action
AddServicer 添加接待人员
func BatchGetCustomer ¶
func BatchGetCustomer(externalUserIDs []string, result *ResultCustomerBatchGet) wx.Action
BatchGetCustomer 获取客户基础信息
func CancelUpgradeService ¶
CancelUpgradeService 为客户取消推荐
func DeleteServicer ¶
func DeleteServicer(openKFID string, userIDs []string, result *ResultServicerDelete) wx.Action
DeleteServicer 删除接待人员
func GetServiceState ¶
func GetServiceState(openKFID, externalUserID string, result *ResultServiceState) wx.Action
func GetUpgradeServiceConfig ¶
func GetUpgradeServiceConfig(result *ResultServiceUpgradeConfig) wx.Action
GetUpgradeServiceConfig 获取配置的专员与客户群
func ListServicer ¶
func ListServicer(openKFID string, result *ResultServicerList) wx.Action
ListServicer 获取接待人员列表
func SendFileMsg ¶
func SendFileMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
SendFileMsg 发送文件消息
func SendImageMsg ¶
func SendImageMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
SendImageMsg 发送图片消息
func SendLinkMsg ¶
func SendLinkMsg(toUser, openKFID string, link *Link, result *ResultMsgSend) wx.Action
SendLinkMsg 发送图文链接消息
func SendLocationMsg ¶
func SendLocationMsg(toUser, openKFID string, location *Location, result *ResultMsgSend) wx.Action
SendLocationMsg 发送地理位置消息
func SendMenuMsg ¶
func SendMenuMsg(toUser, openKFID string, menu *Menu, result *ResultMsgSend) wx.Action
SendMenuMsg 发送菜单消息
func SendMenuMsgOnEvent ¶
func SendMenuMsgOnEvent(code string, menu *Menu, result *ResultMsgSend) wx.Action
SendMenuMsgOnEvent 发送欢迎语等事件响应消息(菜单消息)
func SendMinipMsg ¶
func SendMinipMsg(toUser, openKFID string, minip *Minip, result *ResultMsgSend) wx.Action
SendMinipMsg 发送小程序消息
func SendTextMsg ¶
func SendTextMsg(toUser, openKFID, content string, result *ResultMsgSend) wx.Action
SendTextMsg 发送文本消息
func SendTextMsgOnEvent ¶
func SendTextMsgOnEvent(code, content string, result *ResultMsgSend) wx.Action
SendTextMsgOnEvent 发送欢迎语等事件响应消息(文本消息)
func SendVideoMsg ¶
func SendVideoMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
SendVideoMsg 发送视频消息
func SendVoiceMsg ¶
func SendVoiceMsg(toUser, openKFID, mediaID string, result *ResultMsgSend) wx.Action
SendVoiceMsg 发送语音消息
func TransferServiceState ¶
func TransferServiceState(params *ParamsServiceStateTransfer, result *ResultServiceStateTransfer) wx.Action
func UpdateAccount ¶
UpdateAccount 修改客服帐号
func UpgradeGroupChatService ¶
UpgradeGroupChatService 为客户升级为客户群服务
Types ¶
type AccountListData ¶
type BusinessCard ¶
type BusinessCard struct {
UserID string `json:"userid"`
}
type ErrServicer ¶
type Event ¶
type Event struct { EventType event.EventType `json:"event_type"` OpenKFID string `json:"open_kfid,omitempty"` ExternalUserID string `json:"external_userid,omitempty"` Scene string `json:"scene,omitempty"` SceneParam string `json:"scene_param,omitempty"` WelcomeCode string `json:"welcome_code,omitempty"` FailMsgID string `json:"fail_msgid,omitempty"` FailType int `json:"fail_type,omitempty"` ServicerUserID string `json:"servicer_userid,omitempty"` Status int `json:"status,omitempty"` ChangeType int `json:"change_type,omitempty"` OldServicerUserID string `json:"old_servicer_userid,omitempty"` NewServicerUserID string `json:"new_servicer_userid,omitempty"` MsgCode string `json:"msg_code,omitempty"` }
type GroupChatRange ¶
type GroupChatRange struct {
ChatIDList []string `json:"chat_id_list"`
}
type MemberRange ¶
type MsgListData ¶
type MsgListData struct { MsgID string `json:"msgid"` OpenKFID string `json:"open_kfid"` ExternalUserID string `json:"external_userid"` SendTime int64 `json:"send_time"` Origin int `json:"origin"` ServicerUserID string `json:"servicer_userid"` MsgType event.MsgType `json:"msgtype"` Text *Text `json:"text"` Image *Media `json:"image"` Voice *Media `json:"voice"` Video *Media `json:"video"` File *Media `json:"file"` Location *Location `json:"location"` Link *Link `json:"link"` BusinessCard *BusinessCard `json:"business_card"` Minip *Minip `json:"miniprogram"` Menu *Menu `json:"msgmenu"` Event *Event `json:"event"` }
type ParamsAccountAdd ¶
type ParamsAccountDelete ¶
type ParamsAccountDelete struct {
OpenKFID string `json:"open_kfid"`
}
type ParamsAccountUpdate ¶
type ParamsContactWayAdd ¶
type ParamsCustomerBatchGet ¶
type ParamsCustomerBatchGet struct {
ExternalUseridList []string `json:"external_userid_list"`
}
type ParamsMsgOnEvent ¶
type ParamsMsgSend ¶
type ParamsMsgSend struct { ToUser string `json:"touser"` OpenKFID string `json:"open_kfid"` MsgType event.MsgType `json:"msgtype"` Text *Text `json:"text,omitempty"` Image *Media `json:"image,omitempty"` Voice *Media `json:"voice,omitempty"` Video *Media `json:"video,omitempty"` File *Media `json:"file,omitempty"` Link *Link `json:"link,omitempty"` Minip *Minip `json:"miniprogram,omitempty"` Menu *Menu `json:"msgmenu,omitempty"` Location *Location `json:"location,omitempty"` }
type ParamsMsgSync ¶
type ParamsServiceState ¶
type ParamsServiceUpgrade ¶
type ParamsServicerAdd ¶
type ParamsServicerDelete ¶
type ResultAccountAdd ¶
type ResultAccountAdd struct {
OpenKFID string `json:"open_kfid"`
}
type ResultAccountList ¶
type ResultAccountList struct {
AccountList []*AccountListData `json:"account_list"`
}
type ResultContactWayAdd ¶
type ResultContactWayAdd struct {
URL string `json:"url"`
}
type ResultCustomerBatchGet ¶
type ResultMsgSend ¶
type ResultMsgSend struct {
MsgID string `json:"msgid"`
}
type ResultMsgSync ¶
type ResultMsgSync struct { NextCursor string `json:"next_cursor"` HasMore int `json:"has_more"` MsgList []*MsgListData `json:"msg_list"` }
type ResultServiceState ¶
type ResultServiceStateTransfer ¶
type ResultServiceStateTransfer struct {
MsgCode string `json:"msg_code"`
}
type ResultServiceUpgradeConfig ¶
type ResultServiceUpgradeConfig struct { MemberRange *MemberRange `json:"member_range"` GroupChatRange *GroupChatRange `json:"groupchat_range"` }
type ResultServicerAdd ¶
type ResultServicerAdd struct {
ResultList []*ErrServicer `json:"result_list"`
}
type ResultServicerDelete ¶
type ResultServicerDelete struct {
ResultList []*ErrServicer `json:"result_list"`
}
type ResultServicerList ¶
type ResultServicerList struct {
ServicerList []*ServicerListData `json:"servicer_list"`
}
type ServicerListData ¶
Click to show internal directories.
Click to hide internal directories.