config.go 414 B

123456789101112131415161718192021222324
  1. package config
  2. import (
  3. "git.i2edu.net/i2/go-zero/core/stores/cache"
  4. "git.i2edu.net/i2/go-zero/rest"
  5. "git.i2edu.net/i2/go-zero/zrpc"
  6. )
  7. type Weixin struct {
  8. Appid string
  9. Secret string
  10. }
  11. type Config struct {
  12. rest.RestConf
  13. DataSource string
  14. Table string
  15. Transform zrpc.RpcClientConf
  16. Cache cache.CacheConf
  17. Weixin Weixin
  18. JwtAuth struct {
  19. AccessSecret string
  20. AccessExpire int64
  21. }
  22. }