mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-05 11:02:05 +00:00
push milestones
This commit is contained in:
27
internal/repository/milestone/aggregate.go
Normal file
27
internal/repository/milestone/aggregate.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package milestone
|
||||
|
||||
import (
|
||||
"github.com/zitadel/zitadel/internal/eventstore"
|
||||
)
|
||||
|
||||
const (
|
||||
AggregateType = "milestone"
|
||||
AggregateVersion = "v1"
|
||||
)
|
||||
|
||||
type Aggregate struct {
|
||||
eventstore.Aggregate
|
||||
}
|
||||
|
||||
// Each data point receives its own aggregate
|
||||
func newAggregate(id, instanceId, resourceOwner string) *Aggregate {
|
||||
return &Aggregate{
|
||||
Aggregate: eventstore.Aggregate{
|
||||
Type: AggregateType,
|
||||
Version: AggregateVersion,
|
||||
ID: id,
|
||||
InstanceID: instanceId,
|
||||
ResourceOwner: resourceOwner,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user