config.go 455 B

123456789101112131415
  1. package config
  2. import (
  3. "github.com/silenceper/wechat/v2/cache"
  4. )
  5. // Config .config for 微信公众号
  6. type Config struct {
  7. AppID string `json:"app_id"` // appid
  8. AppSecret string `json:"app_secret"` // appsecret
  9. Token string `json:"token"` // token
  10. EncodingAESKey string `json:"encoding_aes_key"` // EncodingAESKey
  11. Cache cache.Cache
  12. UseStableAK bool // use the stable access_token
  13. }