config.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. }
  47. Es struct {
  48. Address string
  49. DbSize int
  50. Index string
  51. IType string
  52. Version string
  53. UserName string
  54. Password string
  55. }
  56. EntEs struct {
  57. Address string
  58. DbSize int
  59. Version string
  60. UserName string
  61. Password string
  62. }
  63. CustomerCol string
  64. AddCountLimit int
  65. DrawCountLimit int
  66. TopicName string
  67. NsqUrl string
  68. RedisAddress []string
  69. Hlyj struct {
  70. Appid string
  71. Account string
  72. Secret string
  73. TokenUrl string
  74. CallFlag int
  75. CallUrl string
  76. Integratedid string
  77. }
  78. PublicKey string
  79. Mail []struct {
  80. Addr string
  81. Port int
  82. Pwd string
  83. User string
  84. }
  85. UpdateProjectUrl string
  86. ExportDirectory string
  87. ComFileDir string
  88. ExportCount int
  89. ExportUrl string
  90. ComFileUrl string
  91. ResourceCenterKey string
  92. OssBucketName string
  93. OssUrl string
  94. AllocationCap int64
  95. ProductArr []entity.ProductMap
  96. EntId int64
  97. }