mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-22 21:05:48 +08:00
31 lines
987 B
Go
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)
|
|
}
|