config.go 558 B

1234567891011121314151617
  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. AppID string `json:"app_id"` // appid
  9. AppSecret string `json:"app_secret"` // appSecret
  10. AppKey string `json:"app_key"` // appKey
  11. OfferID string `json:"offer_id"` // offerId
  12. Token string `json:"token"` // token
  13. EncodingAESKey string `json:"encoding_aes_key"` // EncodingAESKey
  14. Cache cache.Cache
  15. }