Route merge and normalization through core with domain migrations pending
This commit is contained in:
@@ -80,7 +80,7 @@ type TypedMergeResult[T any] struct {
|
||||
|
||||
type Merger[T any] interface {
|
||||
Key() string
|
||||
Merge(context.Context, TypedMergeRequest[T]) (TypedMergeResult[T], error)
|
||||
PrepareMerge(context.Context, MergeInput[T]) (PreparedOperation[T], error)
|
||||
}
|
||||
|
||||
type TypedNormalizeRequest[T any] struct {
|
||||
@@ -105,7 +105,7 @@ type TypedNormalizeResult[T any] struct {
|
||||
type Normalizer[T any] interface {
|
||||
Key() string
|
||||
ReferenceSlots() []ReferenceSlot
|
||||
Normalize(context.Context, TypedNormalizeRequest[T]) (TypedNormalizeResult[T], error)
|
||||
PrepareNormalize(context.Context, NormalizeInput[T]) (PreparedOperation[T], error)
|
||||
}
|
||||
|
||||
type TypedValidationRequest[T any] struct {
|
||||
|
||||
Reference in New Issue
Block a user