config.go 683 B

123456789101112131415
  1. // Package config 企业微信config配置
  2. package config
  3. import (
  4. "github.com/silenceper/wechat/v2/cache"
  5. )
  6. // Config config for 企业微信
  7. type Config struct {
  8. CorpID string `json:"corp_id"` // corp_id
  9. CorpSecret string `json:"corp_secret"` // corp_secret,如果需要获取会话存档实例,当前参数请填写聊天内容存档的Secret,可以在企业微信管理端--管理工具--聊天内容存档查看
  10. AgentID string `json:"agent_id"` // agent_id
  11. Cache cache.Cache
  12. RasPrivateKey string // 消息加密私钥,可以在企业微信管理端--管理工具--消息加密公钥查看对用公钥,私钥一般由自己保存
  13. }