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