mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 16:49:51 +08:00
22 lines
585 B
Go
22 lines
585 B
Go
package controller
|
|
|
|
import (
|
|
"github.com/divyam234/teldrive/pkg/database"
|
|
"github.com/divyam234/teldrive/pkg/services"
|
|
)
|
|
|
|
type Controller struct {
|
|
FileService *services.FileService
|
|
UserService *services.UserService
|
|
UploadService *services.UploadService
|
|
AuthService *services.AuthService
|
|
}
|
|
|
|
func NewController() *Controller {
|
|
return &Controller{
|
|
FileService: services.NewFileService(database.DB),
|
|
UserService: services.NewUserService(database.DB),
|
|
UploadService: services.NewUploadService(database.DB),
|
|
AuthService: services.NewAuthService(database.DB),
|
|
}
|
|
}
|