config.go 1.7 KB

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