account

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

客户账号管理

Documentation

Overview

客户账号管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(clt *core.Client, account, nickname, password string, isPasswordPlain bool) (err error)

Add 添加客服账号.

account:         完整客服账号,格式为:账号前缀@公众号微信号,账号前缀最多10个字符,必须是英文或者数字字符。
nickname:        客服昵称,最长6个汉字或12个英文字符
password:        客服账号登录密码
isPasswordPlain: 标识 password 是否为明文格式, true 表示是明文密码, false 表示是密文密码.

func Delete

func Delete(clt *core.Client, kfAccount string) (err error)

Delete 删除客服账号

func Update

func Update(clt *core.Client, account, nickname, password string, isPasswordPlain bool) (err error)

Update 设置客服信息(增量更新, 不更新的可以留空).

account:         完整客服账号,格式为:账号前缀@公众号微信号
nickname:        客服昵称,最长6个汉字或12个英文字符
password:        客服账号登录密码
isPasswordPlain: 标识 password 是否为明文格式, true 表示是明文密码, false 表示是密文密码.

func UploadHeadImage

func UploadHeadImage(clt *core.Client, kfAccount, imageFilePath string) (err error)

UploadHeadImage 上传客服头像.

func UploadHeadImageFromReader

func UploadHeadImageFromReader(clt *core.Client, kfAccount, filename string, reader io.Reader) (err error)

UploadHeadImageFromReader 上传客服头像.

NOTE: 参数 filename 不是文件路径, 是 multipart/form-data 里面 filename 的值.

Types

This section is empty.

Jump to

Keyboard shortcuts

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