conversation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgreeInfo

type AgreeInfo struct {
	Userid          string `json:"userid"`
	Exteranalopenid string `json:"exteranalopenid"`
}

type Agreeinfo

type Agreeinfo struct {
	StatusChangeTime int    `json:"status_change_time"`
	Userid           string `json:"userid"`
	Exteranalopenid  string `json:"exteranalopenid"`
	AgreeStatus      string `json:"agree_status"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 会话内容归档实例

func NewClient

func NewClient(cfg *config.Config) (client *Client, err error)

NewClient 初始化会话内容归档实例实例

func (*Client) GetMessageInstance

func (r *Client) GetMessageInstance() (client *WeWorkFinanceSDK.Client, err error)

GetMessageInstance 获取会话归档实例

func (*Client) GetMessageSeq

func (r *Client) GetMessageSeq() (seq uint64, err error)

GetMessageSeq 获取消息seq

func (*Client) MsgAuditGetPermitUserList

func (r *Client) MsgAuditGetPermitUserList(options MsgAuditGetPermitUserListOptions) (info MsgAuditGetPermitUserListSchema, err error)

MsgAuditGetPermitUserList 获取开启了存档的用户

func (*Client) MsgCheckSingleAgreeList

func (r *Client) MsgCheckSingleAgreeList(options MsgCheckSingleAgreeOptions) (info MsgCheckSingleAgreeSchema, err error)

MsgCheckSingleAgreeList 获取会话中外部成员的同意情况

func (*Client) SetMessageSeq

func (r *Client) SetMessageSeq(newSeq uint64) (seq uint64, err error)

SetMessageSeq 设置消息seq

type Error

type Error string

Error 错误

const (
	// SDKInitFailed 错误码:50001
	SDKInitFailed Error = "SDK初始化失败"
	// SDKCacheUnavailable 错误码:50002
	SDKCacheUnavailable Error = "缓存无效"
	// SDKUnknownError 错误码:50003
	SDKUnknownError Error = "未知错误"
	// SDKInvalidCredential 错误码:40001
	SDKInvalidCredential Error = "不合法的secret参数"
	// SDKInvalidCorpID 错误码:40013
	SDKInvalidCorpID Error = "无效的 CorpID"
	// SDKAccessTokenInvalid 错误码:40014
	SDKAccessTokenInvalid Error = "AccessToken 无效"
	// SDKValidateSignatureFailed 错误码:40015
	SDKValidateSignatureFailed Error = "校验签名错误"
	// SDKDecryptMSGFailed 错误码:40016
	SDKDecryptMSGFailed Error = "消息解密失败"
	// SDKAccessTokenMissing 错误码:41001
	SDKAccessTokenMissing Error = "缺少AccessToken参数"
	// SDKAccessTokenExpired 错误码:42001
	SDKAccessTokenExpired Error = "AccessToken 已过期"
	// SDKApiFreqOutOfLimit 错误码:45009
	SDKApiFreqOutOfLimit Error = "接口请求次数超频"
	// SDKApiForbidden 错误码:48002
	SDKApiForbidden Error = "API 禁止调用"
	// SDKInvalidOpenKFID 错误码:95000
	SDKInvalidOpenKFID Error = "无效的 open_kfid"
	// SDKOpenKFIDNotExist 错误码:95004
	SDKOpenKFIDNotExist Error = "open_kfid 不存在"
	// SDKWeWorkAlready 错误码:95011
	SDKWeWorkAlready Error = "已在企业微信使用微信客服"
	// SDKNotUseInWeCom 错误码:95012
	SDKNotUseInWeCom Error = "未在企业微信使用微信客服"
	// SDKApiNotOpen 错误码:95017
	SDKApiNotOpen Error = "API 功能没有被开启"
)

func NewSDKErr

func NewSDKErr(code int64, msgList ...string) Error

NewSDKErr 初始化SDK实例错误信息

func (Error) Error

func (r Error) Error() string

Error 输出错误信息

type MsgAuditGetPermitUserListOptions

type MsgAuditGetPermitUserListOptions struct {
	Type int `json:"type"` // 拉取对应版本的开启成员列表。1表示办公版;2表示服务版;3表示企业版。非必填,不填写的时候返回全量成员列表。
}

MsgAuditGetPermitUserListOptions 获取企业开启会话内容存档的成员列表请求参数

type MsgAuditGetPermitUserListSchema

type MsgAuditGetPermitUserListSchema struct {
	util.CommonError
	Ids []string `json:"ids"`
}

MsgAuditGetPermitUserListSchema 获取企业开启会话内容存档的成员列表响应内容

type MsgCheckSingleAgreeOptions

type MsgCheckSingleAgreeOptions struct {
	AgreeInfo []AgreeInfo `json:"info"`
}

MsgCheckSingleAgreeOptions 获取会话中外部成员的同意情况请求参数

type MsgCheckSingleAgreeSchema

type MsgCheckSingleAgreeSchema struct {
	util.CommonError
	Agreeinfo []Agreeinfo `json:"agreeinfo"`
}

MsgCheckSingleAgreeSchema 获取会话中外部成员的同意情况响应内容

Jump to

Keyboard shortcuts

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