config.go 408 B

123456789101112131415161718192021
  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. }
  13. type Db struct {
  14. Mysql entity.Mysql `json:"mysql"`
  15. Redis entity.RedisStuct `json:"redis"`
  16. Es entity.EsStruct `json:"es"`
  17. Mongo entity.Mongo `json:"mongo"`
  18. }