mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
29 lines
551 B
Go
29 lines
551 B
Go
package service
|
|
|
|
import (
|
|
"wallet-api/pkg/repository"
|
|
|
|
"go.uber.org/dig"
|
|
)
|
|
|
|
/*
|
|
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)
|
|
}
|