mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-04 11:35:14 +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
|
|
}
|