mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-23 16:27:35 +00:00
27 lines
492 B
Go
27 lines
492 B
Go
|
package restrictions
|
||
|
|
||
|
import (
|
||
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
AggregateType = "restrictions"
|
||
|
AggregateVersion = "v1"
|
||
|
)
|
||
|
|
||
|
type Aggregate struct {
|
||
|
eventstore.Aggregate
|
||
|
}
|
||
|
|
||
|
func NewAggregate(id, instanceId, resourceOwner string) *Aggregate {
|
||
|
return &Aggregate{
|
||
|
Aggregate: eventstore.Aggregate{
|
||
|
Type: AggregateType,
|
||
|
Version: AggregateVersion,
|
||
|
ID: id,
|
||
|
InstanceID: instanceId,
|
||
|
ResourceOwner: resourceOwner,
|
||
|
},
|
||
|
}
|
||
|
}
|