config.go 383 B

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