package service

import (
	"bsm/full/all/internal/config"
	"bsm/full/all/internal/impl"
	"bsm/full/all/internal/server"
	moduleService "bsm/full/module/base/passport/service"
)

func exposePassport(srv *server.Server) error {
	return moduleService.Expose(moduleService.ExposeOptions{
		Dependencies: moduleService.Dependencies{
			Redis: impl.RedisService,
			Etcd:  impl.EtcdService,
			DB:    impl.DBService,
			Cache: impl.MemoryService,
		},
		GRPC:    srv.GRPC,
		Gateway: srv.Gateway,
		Config:  config.Spec.Passport,
	})
}
