config.go 714 B

123456789101112131415161718192021222324252627
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/SocialPlatform/knowledgeBase/entity"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. WebRpcPort int64
  9. MysqlMain entity.MysqlMainStruct
  10. Es entity.EsStruct
  11. Segment string
  12. TestConf zrpc.RpcClientConf
  13. UserCenterConf zrpc.RpcClientConf
  14. FindCount int
  15. RecommendQuestionCount int
  16. Esv7 struct {
  17. Address string `yaml:"addr"`
  18. Size int `yaml:"size"`
  19. Username string `yaml:"username"`
  20. Password string `yaml:"password"`
  21. Index string `yaml:"index"`
  22. Type string `yaml:"type"`
  23. }
  24. MinScore float64
  25. }