dkf

package
v0.0.0-...-5652a87 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

多客服接口.

Index

Constants

View Source
const (
	OnlineKfInfoStatusPC          = 1
	OnlineKfInfoStatusMobile      = 2
	OnlineKfInfoStatusPCAndMobile = 3
)

Variables

View Source
var ErrNoHeadImage = errors.New("没有头像")

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 *mp.Client) (kfList []KfInfo, err error)

获取客服基本信息.

func (*KfInfo) HeadImageSize

func (info *KfInfo) HeadImageSize() (size int, err error)

获取客服图像的大小, 如果客服没有图像则返回 ErrNoHeadImage 错误.

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
	AutoAcceptThreshold int         `json:"auto_accept"`   // 客服设置的最大自动接入数
	AcceptingNumber     int         `json:"accepted_case"` // 客服当前正在接待的会话数
}

在线客服接待信息

func OnlineKfList

func OnlineKfList(clt *mp.Client) (kfList []OnlineKfInfo, err error)

获取在线客服接待信息.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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