teldrive/pkg/controller/controller.go

25 lines
584 B
Go
Raw Normal View History

2023-12-03 03:47:23 +08:00
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 {
2023-12-03 03:47:23 +08:00
return &Controller{
FileService: fileService,
UserService: userService,
UploadService: uploadService,
AuthService: authService,
2023-12-03 03:47:23 +08:00
}
}