config

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: 1 Imported by: 0

Documentation

Overview

Package config 企业微信config配置

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	CorpID         string `json:"corp_id"`          // corp_id
	AgentId        int    `json:"agent_id"`         // agent_id
	AgentSecret    string `json:"secret"`           // 应用Secret
	Token          string `json:"token"`            // 微信客服回调配置,用于生成签名校验回调请求的合法性
	EncodingAESKey string `json:"encoding_aes_key"` // 微信客服回调p配置,用于解密回调消息内容对应的密文
}

AgentConfig 应用配置

type Config

type Config struct {
	CorpID         string `json:"corp_id"`      // corp_id
	CorpSecret     string `json:"corp_secret"`  // corp_secret,如果需要获取会话存档实例,当前参数请填写聊天内容存档的Secret,可以在企业微信管理端--管理工具--聊天内容存档查看
	AgentID        string `json:"agent_id"`     // agent_id
	AgentSecret    string `json:"agent_secret"` // 应用Secret
	Cache          cache.Cache
	RasVersion     int    `json:"ras_version"`      // 企业获取的会话内容将用此公钥加密,企业可用自行保存的私钥解开会话内容数据
	RasPrivateKey  string `json:"ras_private_key"`  // 消息加密私钥,可以在企业微信管理端--管理工具--消息加密公钥查看对用公钥,私钥一般由自己保存
	Token          string `json:"token"`            // 微信客服回调配置,用于生成签名校验回调请求的合法性
	EncodingAESKey string `json:"encoding_aes_key"` // 微信客服回调p配置,用于解密回调消息内容对应的密文
	ContactSecret  string `json:"contact_secret"`   // 通讯录Secret
	CustomerSecret string `json:"customer_secret"`  // 客户联系Secret
	Cookie         string `json:"cookie"`           // 管理后台cookie
}

Config for 企业微信

type WXConfig

type WXConfig struct {
	CorpID         string `json:"corp_id"`     // corp_id
	CorpSecret     string `json:"corp_secret"` // corp_secret,如果需要获取会话存档实例,当前参数请填写聊天内容存档的Secret,可以在企业微信管理端--管理工具--聊天内容存档查看
	CorpName       string `json:"corp_name"`
	ContactSecret  string `json:"contact_secret"`   // 通讯录Secret
	CustomerSecret string `json:"customer_secret"`  // 客户联系Secret
	Token          string `json:"token"`            // 微信客服回调配置,用于生成签名校验回调请求的合法性
	EncodingAESKey string `json:"encoding_aes_key"` // 微信客服回调p配置,用于解密回调消息内容对应的密文
	RasVersion     int    `json:"ras_version"`      // 企业获取的会话内容将用此公钥加密,企业可用自行保存的私钥解开会话内容数据
	RasPrivateKey  string `json:"ras_private_key"`  // 消息加密私钥,可以在企业微信管理端--管理工具--消息加密公钥查看对用公钥,私钥一般由自己保存
}

Jump to

Keyboard shortcuts

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