config.go 354 B

123456789101112131415161718
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/zrpc"
  4. "jyBXBase/entity"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. Webrpcport int64
  9. }
  10. type Db struct {
  11. MysqlMain entity.MysqlStruct `json:"mysqlMain"`
  12. RedisDB entity.RedisDBStuct `json:"redisDB"`
  13. Es entity.EsStruct `json:"es"`
  14. MongoDB entity.MongoDB `json:"mongoDB"`
  15. }