2024-12-12 13:27:07 +00:00
|
|
|
package taskcontroller
|
|
|
|
|
|
|
|
import (
|
2024-12-12 20:36:38 +00:00
|
|
|
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/app"
|
2024-12-12 13:27:07 +00:00
|
|
|
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/services/taskservice"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TaskController struct {
|
2024-12-12 20:36:38 +00:00
|
|
|
app *app.App
|
2024-12-12 13:27:07 +00:00
|
|
|
taskService *taskservice.Service
|
|
|
|
}
|
|
|
|
|
2024-12-12 20:36:38 +00:00
|
|
|
func New(app *app.App, taskService *taskservice.Service) *TaskController {
|
2024-12-12 13:27:07 +00:00
|
|
|
return &TaskController{
|
2024-12-12 20:36:38 +00:00
|
|
|
app: app,
|
2024-12-12 13:27:07 +00:00
|
|
|
taskService: taskService,
|
|
|
|
}
|
|
|
|
}
|