Init commit repo setup
This commit is contained in:
32
internal/dependencies/dependencies.go
Normal file
32
internal/dependencies/dependencies.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package dependencies
|
||||
|
||||
import (
|
||||
"cybertron/pkg/log"
|
||||
"go.uber.org/zap"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Dependencies struct {
|
||||
Service *Service
|
||||
DBClient *gorm.DB
|
||||
Logger *zap.Logger
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
// Add your service here
|
||||
}
|
||||
|
||||
func InitDependencies() *Dependencies {
|
||||
services := initServices()
|
||||
return &Dependencies{
|
||||
Service: services,
|
||||
//DBClient: db.NewDBClient(),
|
||||
Logger: log.Log.GetLog(),
|
||||
}
|
||||
}
|
||||
|
||||
func initServices() *Service {
|
||||
return &Service{
|
||||
// Add your service here
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user