mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
partial repository layer added
This commit is contained in:
27
pkg/service/service.go
Normal file
27
pkg/service/service.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"go.uber.org/dig"
|
||||
"wallet-api/pkg/repository"
|
||||
)
|
||||
|
||||
/*
|
||||
InitializeServices
|
||||
|
||||
Initializes Dependency Injection modules for services
|
||||
|
||||
Args:
|
||||
*dig.Container: Dig Container
|
||||
*/
|
||||
func InitializeServices(c *dig.Container) {
|
||||
repository.InitializeRepositories(c)
|
||||
|
||||
c.Provide(NewApiService)
|
||||
c.Provide(NewSubscriptionService)
|
||||
c.Provide(NewSubscriptionTypeService)
|
||||
c.Provide(NewTransactionService)
|
||||
c.Provide(NewTransactionStatusService)
|
||||
c.Provide(NewTransactionTypeService)
|
||||
c.Provide(NewUserService)
|
||||
c.Provide(NewWalletService)
|
||||
}
|
||||
Reference in New Issue
Block a user