certimate/internal/workflow/engine/deps.go
2025-09-01 22:13:59 +08:00

31 lines
987 B
Go

package engine
import (
"context"
"github.com/certimate-go/certimate/internal/domain"
)
type accessRepository interface {
GetById(ctx context.Context, id string) (*domain.Access, error)
}
type certificateRepository interface {
GetById(ctx context.Context, id string) (*domain.Certificate, error)
GetByWorkflowRunIdAndNodeId(ctx context.Context, workflowRunId string, workflowNodeId string) (*domain.Certificate, error)
Save(ctx context.Context, certificate *domain.Certificate) (*domain.Certificate, error)
}
type workflowRunRepository interface {
GetById(ctx context.Context, workflowRunId string) (*domain.WorkflowRun, error)
}
type workflowOutputRepository interface {
GetByNodeId(ctx context.Context, workflowNodeId string) (*domain.WorkflowOutput, error)
Save(ctx context.Context, workflowOutput *domain.WorkflowOutput) (*domain.WorkflowOutput, error)
}
type settingsRepository interface {
GetByName(ctx context.Context, name string) (*domain.Settings, error)
}