try writemodel

This commit is contained in:
adlerhurst
2020-11-20 17:03:17 +01:00
parent 609c4d4f24
commit 20f4fa56c5
12 changed files with 83 additions and 13 deletions
@@ -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
}