Files
kandev/apps/backend/internal/backendapp/boot_state_runner_mutability.go
T
2026-09-13 15:25:16 +01:00

18 lines
651 B
Go

package backendapp
import (
taskdto "github.com/kandev/kandev/internal/task/dto"
taskservice "github.com/kandev/kandev/internal/task/service"
)
// bootRunnerMutabilityProjection adapts the task service's derived
// RunnerMutabilityView to the DTO projection type. Mirrors the same adapter
// in the task handlers and bootDependencyProjection above; both exist because
// dto must stay importable from service without a cycle.
func bootRunnerMutabilityProjection(view taskservice.RunnerMutabilityView) taskdto.TaskRunnerMutabilityProjection {
return taskdto.TaskRunnerMutabilityProjection{
Editable: view.Editable,
Reason: view.Reason,
}
}