config.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. Qyxy struct {
  34. MongodbAddr string
  35. Size int
  36. DbName string
  37. UserName string
  38. Password string
  39. }
  40. }
  41. Es struct {
  42. Address string
  43. DbSize int
  44. Index string
  45. IType string
  46. Version string
  47. UserName string
  48. Password string
  49. }
  50. EntEs struct {
  51. Address string
  52. DbSize int
  53. Version string
  54. UserName string
  55. Password string
  56. }
  57. CustomerCol string
  58. AddCountLimit int
  59. DrawCountLimit int
  60. TopicName string
  61. NsqUrl string
  62. RedisAddress []string
  63. Hlyj struct {
  64. Appid string
  65. Account string
  66. Secret string
  67. TokenUrl string
  68. CallFlag int
  69. CallUrl string
  70. Integratedid string
  71. }
  72. PublicKey string
  73. Mail []struct {
  74. Addr string
  75. Port int
  76. Pwd string
  77. User string
  78. }
  79. UpdateProjectUrl string
  80. ExportDirectory string
  81. ComFileDir string
  82. ExportCount int
  83. ExportUrl string
  84. ComFileUrl string
  85. }