config.go 653 B

123456789101112131415161718192021222324252627282930313233343536
  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. SharePage string
  11. }
  12. type Config struct {
  13. rest.RestConf
  14. Domain string
  15. AesSecret string
  16. DataSource string
  17. Table string
  18. Transform zrpc.RpcClientConf
  19. Cache cache.CacheConf
  20. Weixin Weixin
  21. JwtAuth struct {
  22. AccessSecret string
  23. AccessExpire int64
  24. }
  25. AliYunOss struct {
  26. EndPoint string
  27. KeyId string
  28. Secret string
  29. Bucket string
  30. SignExpire int64
  31. SignHost string
  32. FileUrl string //访问连接
  33. }
  34. }