mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
32 lines
469 B
Go
32 lines
469 B
Go
|
package idp
|
||
|
|
||
|
import "github.com/caos/zitadel/internal/eventstore/v2"
|
||
|
|
||
|
type AddedEvent struct {
|
||
|
eventstore.BaseEvent
|
||
|
|
||
|
ID string `idpConfigId`
|
||
|
Name string `name`
|
||
|
}
|
||
|
|
||
|
func NewAddedEvent(
|
||
|
base *eventstore.BaseEvent,
|
||
|
configID string,
|
||
|
name string,
|
||
|
) *AddedEvent {
|
||
|
|
||
|
return &AddedEvent{
|
||
|
BaseEvent: *base,
|
||
|
ID: configID,
|
||
|
Name: name,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (e *AddedEvent) CheckPrevious() bool {
|
||
|
return true
|
||
|
}
|
||
|
|
||
|
func (e *AddedEvent) Data() interface{} {
|
||
|
return e
|
||
|
}
|