aides-repo-api/internal/controllers/taskcontroller/controller.go

19 lines
416 B
Go
Raw Normal View History

2024-12-12 13:27:07 +00:00
package taskcontroller
import (
"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 {
app *app.App
2024-12-12 13:27:07 +00:00
taskService *taskservice.Service
}
func New(app *app.App, taskService *taskservice.Service) *TaskController {
2024-12-12 13:27:07 +00:00
return &TaskController{
app: app,
2024-12-12 13:27:07 +00:00
taskService: taskService,
}
}