github.com/timoth-y/kicksware-api/order-service@v0.0.0-20201002192818-87b546a7ae5a/container/factory/usecaseServiceFacrory.go (about)

     1  package factory
     2  
     3  import (
     4  	"github.com/timoth-y/kicksware-api/search-service/core/pipe"
     5  
     6  	"github.com/timoth-y/kicksware-api/order-service/core/repo"
     7  	"github.com/timoth-y/kicksware-api/order-service/core/service"
     8  	"github.com/timoth-y/kicksware-api/order-service/env"
     9  	"github.com/timoth-y/kicksware-api/order-service/usecase/business"
    10  )
    11  
    12  func ProvideDataService(repository repo.OrderRepository, pipe pipe.SneakerReferencePipe, config env.ServiceConfig) service.OrderService {
    13  	return business.NewOrderService(repository, pipe, config.Common)
    14  }
    15  
    16  func ProvideAuthService(config env.ServiceConfig) service.AuthService {
    17  	return business.NewAuthService(config.Auth)
    18  }