config.go 573 B

1234567891011121314151617181920212223242526272829
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/zrpc"
  4. "jyBXBuyer/entity"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. Webrpcport int64
  9. BuyerCount int64
  10. DefaultBuyerNames []string
  11. BuyerSearchLimit int64
  12. Middleground struct { //中台
  13. Etcd struct {
  14. Hosts []string
  15. }
  16. PowerCheckCenterKey string
  17. UserCenterKey string
  18. ResourceCenterKey string
  19. }
  20. }
  21. type Db struct {
  22. Mysql entity.Mysql `json:"mysql"`
  23. Redis entity.RedisStuct `json:"redis"`
  24. Es entity.EsStruct `json:"es"`
  25. Mongo entity.Mongo `json:"mongo"`
  26. }