config.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. var IC Config
  8. type Config struct {
  9. zrpc.RpcServerConf
  10. UserCenterRpc zrpc.RpcClientConf
  11. FileCenterRpc zrpc.RpcClientConf
  12. Logx logx.LogConf
  13. Mysql struct {
  14. JianYu *mysql.Mysql
  15. JyDoc *mysql.Mysql
  16. Bi *mysql.Mysql
  17. Tidb *mysql.Mysql
  18. BiTidb *mysql.Mysql
  19. CallTidb *mysql.Mysql
  20. BiService *mysql.Mysql
  21. }
  22. Mongo struct {
  23. Qfw struct {
  24. MongodbAddr string
  25. Size int
  26. DbName string
  27. }
  28. Bidding struct {
  29. MongodbAddr string
  30. Size int
  31. DbName string
  32. UserName string
  33. Password string
  34. }
  35. Qyxy struct {
  36. MongodbAddr string
  37. Size int
  38. DbName string
  39. UserName string
  40. Password string
  41. }
  42. }
  43. Es struct {
  44. Address string
  45. DbSize int
  46. Index string
  47. IType string
  48. Version string
  49. UserName string
  50. Password string
  51. }
  52. EntEs struct {
  53. Address string
  54. DbSize int
  55. Version string
  56. UserName string
  57. Password string
  58. }
  59. CustomerCol string
  60. AddCountLimit int
  61. DrawCountLimit int
  62. TopicName string
  63. NsqUrl string
  64. RedisAddress []string
  65. Hlyj struct {
  66. Appid string
  67. Account string
  68. Secret string
  69. TokenUrl string
  70. CallFlag int
  71. CallUrl string
  72. Integratedid string
  73. }
  74. PublicKey string
  75. Mail []struct {
  76. Addr string
  77. Port int
  78. Pwd string
  79. User string
  80. }
  81. UpdateProjectUrl string
  82. ExportDirectory string
  83. ComFileDir string
  84. ExportCount int
  85. ExportUrl string
  86. ComFileUrl string
  87. ResourceCenterKey string
  88. OssBucketName string
  89. OssUrl string
  90. AllocationCap int64
  91. }