config.go 696 B

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