config.go 629 B

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