dkf

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

多客服接口

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"` // 客服头像
}

客服基本信息

func KfList

func KfList(clt *core.Client) (list []KfInfo, err error)

KfList 获取客服基本信息.

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 TransInfo

type TransInfo struct {
	KfAccount string `xml:"KfAccount" json:"KfAccount"`
}

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 留空.

Directories

Path Synopsis
客户账号管理
客户账号管理
客服聊天记录接口
客服聊天记录接口
多客服会话控制
多客服会话控制

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL