mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-05 06:43:12 +08:00
24 lines
584 B
Go
24 lines
584 B
Go
package controller
|
|
|
|
import (
|
|
"github.com/divyam234/teldrive/pkg/services"
|
|
)
|
|
|
|
type Controller struct {
|
|
FileService *services.FileService
|
|
UserService *services.UserService
|
|
UploadService *services.UploadService
|
|
AuthService *services.AuthService
|
|
}
|
|
|
|
func NewController(fileService *services.FileService,
|
|
userService *services.UserService,
|
|
uploadService *services.UploadService,
|
|
authService *services.AuthService) *Controller {
|
|
return &Controller{
|
|
FileService: fileService,
|
|
UserService: userService,
|
|
UploadService: uploadService,
|
|
AuthService: authService,
|
|
}
|
|
}
|