agent-orchestrator/backend/internal/service/project/dto.go

24 lines
665 B
Go

package project
import "github.com/aoagents/agent-orchestrator/backend/internal/domain"
// GetResult is the discriminated result returned by Service.Get.
type GetResult struct {
Status string
Project *Project
Degraded *Degraded
}
// AddInput is the body shape for POST /api/v1/projects.
type AddInput struct {
Path string `json:"path"`
ProjectID *string `json:"projectId,omitempty"`
Name *string `json:"name,omitempty"`
}
// RemoveResult reports what DELETE /api/v1/projects/{id} actually did.
type RemoveResult struct {
ProjectID domain.ProjectID `json:"projectId"`
RemovedStorageDir bool `json:"removedStorageDir"`
}