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