mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
a7816a43b1
* refactor: remove commandNew struct * requested fixes
30 lines
465 B
Go
30 lines
465 B
Go
package org
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/eventstore"
|
|
)
|
|
|
|
const (
|
|
orgEventTypePrefix = eventstore.EventType("org.")
|
|
)
|
|
|
|
const (
|
|
AggregateType = "org"
|
|
AggregateVersion = "v1"
|
|
)
|
|
|
|
type Aggregate struct {
|
|
eventstore.Aggregate
|
|
}
|
|
|
|
func NewAggregate(id string) *Aggregate {
|
|
return &Aggregate{
|
|
Aggregate: eventstore.Aggregate{
|
|
Type: AggregateType,
|
|
Version: AggregateVersion,
|
|
ID: id,
|
|
ResourceOwner: id,
|
|
},
|
|
}
|
|
}
|