config.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. Logx logx.LogConf
  11. Mysql struct {
  12. JianYu *mysql.Mysql
  13. JyDoc *mysql.Mysql
  14. Bi *mysql.Mysql
  15. Tidb *mysql.Mysql
  16. BiTidb *mysql.Mysql
  17. CallTidb *mysql.Mysql
  18. BiService *mysql.Mysql
  19. }
  20. Mongo struct {
  21. Qfw struct {
  22. MongodbAddr string
  23. Size int
  24. DbName string
  25. }
  26. Bidding struct {
  27. MongodbAddr string
  28. Size int
  29. DbName string
  30. UserName string
  31. Password string
  32. }
  33. }
  34. Es struct {
  35. Address string
  36. DbSize int
  37. Index string
  38. IType string
  39. Version string
  40. UserName string
  41. Password string
  42. }
  43. EntEs struct {
  44. Address string
  45. DbSize int
  46. Version string
  47. UserName string
  48. Password string
  49. }
  50. Mode string
  51. CustomerCol string
  52. AddCountLimit int
  53. DrawCountLimit int
  54. TopicName string
  55. NsqUrl string
  56. RedisAddress []string
  57. Hlyj struct {
  58. Appid string
  59. Account string
  60. Secret string
  61. TokenUrl string
  62. CallFlag int
  63. CallUrl string
  64. Integratedid string
  65. }
  66. PublicKey string
  67. Mail []struct {
  68. Addr string
  69. Port int
  70. Pwd string
  71. User string
  72. }
  73. UpdateProjectUrl string
  74. }