config.go 880 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package config
  2. import (
  3. "app.yhyue.com/moapp/jybase/mysql"
  4. "github.com/zeromicro/go-zero/core/logx"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. zrpc.RpcServerConf
  9. UserCenterRpc zrpc.RpcClientConf
  10. Logx logx.LogConf
  11. Mysql struct {
  12. JianYu *mysql.Mysql
  13. JyDoc *mysql.Mysql
  14. Bi *mysql.Mysql
  15. Tidb *mysql.Mysql
  16. BiTidb *mysql.Mysql
  17. }
  18. Mongo struct {
  19. Qfw struct {
  20. MongodbAddr string
  21. Size int
  22. DbName string
  23. }
  24. }
  25. Es struct {
  26. Address string
  27. DbSize int
  28. Index string
  29. IType string
  30. }
  31. Mode string
  32. AddCountLimit int
  33. DrawCountLimit int
  34. TopicName string
  35. NsqUrl string
  36. RedisAddress []string
  37. Hlyj struct {
  38. Appid string
  39. Account string
  40. Secret string
  41. TokenUrl string
  42. CallFlag int
  43. CallUrl string
  44. Integratedid string
  45. }
  46. }