config.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. Version string
  47. UserName string
  48. Password string
  49. }
  50. CustomerCol string
  51. AddCountLimit int
  52. DrawCountLimit int
  53. TopicName string
  54. NsqUrl string
  55. RedisAddress []string
  56. Hlyj struct {
  57. Appid string
  58. Account string
  59. Secret string
  60. TokenUrl string
  61. CallFlag int
  62. CallUrl string
  63. Integratedid string
  64. }
  65. PublicKey string
  66. }