config.go 679 B

12345678910111213141516171819202122232425262728293031323334353637
  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. JwtAuth struct {
  23. AccessSecret string
  24. AccessExpire int64
  25. }
  26. AliYunOss struct {
  27. EndPoint string
  28. KeyId string
  29. Secret string
  30. Bucket string
  31. SignExpire int64
  32. SignHost string
  33. FileUrl string //访问连接
  34. }
  35. }