Documentation
¶
Overview ¶
多客服接口.
Index ¶
Constants ¶
View Source
const ( OnlineKfInfoStatusPC = 1 OnlineKfInfoStatusMobile = 2 OnlineKfInfoStatusPCAndMobile = 3 )
View Source
const (
MsgTypeTransferCustomerService core.MsgType = "transfer_customer_service" // 将消息转发到多客服
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KfInfo ¶
type KfInfo struct {
Id json.Number `json:"kf_id"` // 客服工号
Account string `json:"kf_account"` // 完整客服账号,格式为:账号前缀@公众号微信号
Nickname string `json:"kf_nick"` // 客服昵称
HeadImageURL string `json:"kf_headimgurl"` // 客服头像
}
客服基本信息
type OnlineKfInfo ¶
type OnlineKfInfo struct {
Id json.Number `json:"kf_id"` // 客服工号
Account string `json:"kf_account"` // 完整客服账号,格式为:账号前缀@公众号微信号
Status int `json:"status"` // 客服在线状态 1:pc在线,2:手机在线。若pc和手机同时在线则为 1+2=3
AutoAcceptNumber int `json:"auto_accept"` // 客服设置的最大自动接入数
AcceptingNumber int `json:"accepted_case"` // 客服当前正在接待的会话数
}
在线客服接待信息
func OnlineKfList ¶
func OnlineKfList(clt *core.Client) (list []OnlineKfInfo, err error)
OnlineKfList 获取在线客服接待信息.
type TransferToCustomerService ¶
type TransferToCustomerService struct {
XMLName struct{} `xml:"xml" json:"-"`
core.MsgHeader
TransInfo *TransInfo `xml:"TransInfo,omitempty" json:"TransInfo,omitempty"`
}
将消息转发到多客服消息
func NewTransferToCustomerService ¶
func NewTransferToCustomerService(to, from string, timestamp int64, kfAccount string) (msg *TransferToCustomerService)
如果不指定客服则 kfAccount 留空.
Click to show internal directories.
Click to hide internal directories.