aides-repo-api/internal/controllers/taskcontroller/controller.go
Maxim Slipenko a9fb388c45
All checks were successful
Format and Lint / format-check (push) Successful in 4m20s
Format and Lint / test (push) Successful in 3m47s
tests: add taskcontroller tests
2024-12-26 21:16:05 +03:00

21 lines
470 B
Go

package taskcontroller
import (
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/models"
"code.alt-gnome.ru/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,
}
}