config.go 1.1 KB

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