mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-03 17:38:51 +00:00
try writemodel
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user