config.go 664 B

12345678910111213141516171819202122232425262728293031323334
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/CRM/networkManage/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. )
  6. type Config struct {
  7. rest.RestConf
  8. Gateway struct {
  9. ServerCode string
  10. Etcd []string
  11. }
  12. CacheTimeOut int
  13. BuyerBatch int
  14. ProjectYearLimit int
  15. EntNameList []string
  16. }
  17. type Db struct {
  18. Mysql entity.Mysql `json:"mysql"`
  19. Mongo entity.Mongo `json:"mongo"`
  20. Es entity.EsStruct `json:"es"`
  21. Clickhouse *CHouseConfig
  22. Redis string `json:"redis"`
  23. }
  24. type CHouseConfig struct {
  25. Addr string
  26. UserName string
  27. Password string
  28. DbName string
  29. MaxIdleConns int
  30. MaxOpenConns int
  31. }