config.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package config
  2. import (
  3. "app.yhyue.com/moapp/jybase/mysql"
  4. "bp.jydev.jianyu360.cn/BaseService/biService/entity"
  5. "github.com/zeromicro/go-zero/core/logx"
  6. "github.com/zeromicro/go-zero/zrpc"
  7. )
  8. var IC Config
  9. type ProductMap struct {
  10. }
  11. type Config struct {
  12. zrpc.RpcServerConf
  13. UserCenterRpc zrpc.RpcClientConf
  14. FileCenterRpc zrpc.RpcClientConf
  15. Logx logx.LogConf
  16. Mysql struct {
  17. JianYu *mysql.Mysql
  18. JyDoc *mysql.Mysql
  19. Bi *mysql.Mysql
  20. Tidb *mysql.Mysql
  21. BiTidb *mysql.Mysql
  22. CallTidb *mysql.Mysql
  23. BiService *mysql.Mysql
  24. WorkOrder *mysql.Mysql
  25. }
  26. Mongo struct {
  27. Qfw struct {
  28. MongodbAddr string
  29. Size int
  30. DbName string
  31. }
  32. Bidding struct {
  33. MongodbAddr string
  34. Size int
  35. DbName string
  36. UserName string
  37. Password string
  38. }
  39. Qyxy struct {
  40. MongodbAddr string
  41. Size int
  42. DbName string
  43. UserName string
  44. Password string
  45. }
  46. PingAn struct {
  47. MongodbAddr string
  48. Size int
  49. DbName string
  50. UserName string
  51. Password string
  52. }
  53. }
  54. Es struct {
  55. Address string
  56. DbSize int
  57. Index string
  58. IType string
  59. Version string
  60. UserName string
  61. Password string
  62. }
  63. EntEs struct {
  64. Address string
  65. DbSize int
  66. Version string
  67. UserName string
  68. Password string
  69. }
  70. CustomerCol string
  71. AddCountLimit int
  72. DrawCountLimit int
  73. TopicName string
  74. NsqUrl string
  75. RedisAddress []string
  76. Hlyj struct {
  77. Appid string
  78. Account string
  79. Secret string
  80. TokenUrl string
  81. CallFlag int
  82. CallUrl string
  83. Integratedid string
  84. }
  85. PublicKey string
  86. Mail []struct {
  87. Addr string
  88. Port int
  89. Pwd string
  90. User string
  91. }
  92. UpdateProjectUrl string
  93. ExportDirectory string
  94. ComFileDir string
  95. ExportCount int
  96. ExportUrl string
  97. ComFileUrl string
  98. ResourceCenterKey string
  99. OssBucketName string
  100. OssUrl string
  101. AllocationCap int64
  102. ProductArr []entity.ProductMap
  103. EntId int64
  104. }