config.go 467 B

123456789101112131415161718192021222324252627
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXBase/entity"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Webrpcport int64
  10. Gateway struct {
  11. ServerCode string
  12. Etcd []string
  13. }
  14. BxBase zrpc.RpcClientConf
  15. MgoLogsName string
  16. MgoLogsCount int
  17. }
  18. type Db struct {
  19. Mongo entity.Mongo `json:"mongo"`
  20. }
  21. type Routes struct {
  22. ExcludeRoute []string
  23. }