config.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. WorkOrder *mysql.Mysql
  22. }
  23. Mongo struct {
  24. Qfw struct {
  25. MongodbAddr string
  26. Size int
  27. DbName string
  28. }
  29. Bidding struct {
  30. MongodbAddr string
  31. Size int
  32. DbName string
  33. UserName string
  34. Password string
  35. }
  36. Qyxy struct {
  37. MongodbAddr string
  38. Size int
  39. DbName string
  40. UserName string
  41. Password string
  42. }
  43. }
  44. Es struct {
  45. Address string
  46. DbSize int
  47. Index string
  48. IType string
  49. Version string
  50. UserName string
  51. Password string
  52. }
  53. EntEs struct {
  54. Address string
  55. DbSize int
  56. Version string
  57. UserName string
  58. Password string
  59. }
  60. CustomerCol string
  61. AddCountLimit int
  62. DrawCountLimit int
  63. TopicName string
  64. NsqUrl string
  65. RedisAddress []string
  66. Hlyj struct {
  67. Appid string
  68. Account string
  69. Secret string
  70. TokenUrl string
  71. CallFlag int
  72. CallUrl string
  73. Integratedid string
  74. }
  75. PublicKey string
  76. Mail []struct {
  77. Addr string
  78. Port int
  79. Pwd string
  80. User string
  81. }
  82. UpdateProjectUrl string
  83. ExportDirectory string
  84. ComFileDir string
  85. ExportCount int
  86. ExportUrl string
  87. ComFileUrl string
  88. ResourceCenterKey string
  89. OssBucketName string
  90. OssUrl string
  91. AllocationCap int64
  92. DkPersonMap []map[string]interface{}
  93. ProductArr []string
  94. EntId int64
  95. }