config.go 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. TopicName string
  34. NsqUrl string
  35. RedisAddress []string
  36. Hlyj struct {
  37. Appid string
  38. Account string
  39. Secret string
  40. TokenUrl string
  41. CallFlag int
  42. CallUrl string
  43. Integratedid string
  44. }
  45. }