config.go 540B

12345678910111213141516171819202122232425262728
  1. package config
  2. import "time"
  3. type Config interface {
  4. // GetAppID 获取平台 APPID
  5. GetAppID() string
  6. // GetAppSecret 获取平台 APPSECRET
  7. GetAppSecret() string
  8. // GetAppSecret 获取平台消息校验Token
  9. GetMsgToken() string
  10. // GetToken 获取 Token
  11. GetAccessToken() string
  12. // RefreshToken 刷新 Token
  13. RefreshToken(token string, expire time.Time) error
  14. // GetTicket 获取票据
  15. GetVerifyTicket() string
  16. // RefreshTicket 刷新票据
  17. RefreshVerifyTicket(ticket string, expire time.Time) error
  18. }
  19. var conf Config