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
|
|
|
|
}
|
|
|
|
|
2024-02-12 04:52:41 +08:00
|
|
|
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{
|
2024-02-12 04:52:41 +08:00
|
|
|
FileService: fileService,
|
|
|
|
UserService: userService,
|
|
|
|
UploadService: uploadService,
|
|
|
|
AuthService: authService,
|
2023-12-03 03:47:23 +08:00
|
|
|
}
|
|
|
|
}
|