mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 10:33:56 +00:00
28 lines
532 B
Go
28 lines
532 B
Go
|
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,
|
||
|
},
|
||
|
}
|
||
|
}
|