config.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. EntEs struct {
  44. Address string
  45. DbSize int
  46. Index string
  47. IType string
  48. Version string
  49. UserName string
  50. Password string
  51. }
  52. Mode string
  53. CustomerCol string
  54. AddCountLimit int
  55. DrawCountLimit int
  56. TopicName string
  57. NsqUrl string
  58. RedisAddress []string
  59. Hlyj struct {
  60. Appid string
  61. Account string
  62. Secret string
  63. TokenUrl string
  64. CallFlag int
  65. CallUrl string
  66. Integratedid string
  67. }
  68. PublicKey string
  69. }