aides-repo-api/internal/controllers/taskcontroller/controller.go
Maxim Slipenko e4f9743dea
Some checks failed
Format and Lint / format-check (push) Failing after 2s
Format and Lint / test (push) Successful in 52s
chore: change code.alt-gnome to code.aides.space
2025-01-07 17:54:16 +03:00

21 lines
468 B
Go

package taskcontroller
import (
"code.aides.space/aides-infra/aides-repo-api/internal/models"
"code.aides.space/aides-infra/aides-repo-api/internal/services/taskservice"
)
type TaskService interface {
Create(repo string) (*models.Task, error)
Upload(input *taskservice.TaskUploadInput) error
}
type TaskController struct {
taskService TaskService
}
func New(taskService TaskService) *TaskController {
return &TaskController{
taskService: taskService,
}
}