config.go 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. CallTidb *mysql.Mysql
  18. }
  19. Mongo struct {
  20. Qfw struct {
  21. MongodbAddr string
  22. Size int
  23. DbName string
  24. }
  25. }
  26. Es struct {
  27. Address string
  28. DbSize int
  29. Index string
  30. IType string
  31. Version string
  32. UserName string
  33. Password string
  34. }
  35. Mode string
  36. CustomerCol string
  37. AddCountLimit int
  38. DrawCountLimit int
  39. TopicName string
  40. NsqUrl string
  41. RedisAddress []string
  42. Hlyj struct {
  43. Appid string
  44. Account string
  45. Secret string
  46. TokenUrl string
  47. CallFlag int
  48. CallUrl string
  49. Integratedid string
  50. }
  51. }