mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 18:08:50 +00:00
try writemodel
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package idp
|
||||
|
||||
import "github.com/caos/zitadel/internal/eventstore/v2"
|
||||
|
||||
type ConfigAddedEvent struct {
|
||||
eventstore.BaseEvent
|
||||
|
||||
ID string `json:"idpConfigId"`
|
||||
Name string `json:"name"`
|
||||
Type ConfigType `json:"idpType,omitempty"`
|
||||
StylingType StylingType `json:"stylingType,omitempty"`
|
||||
}
|
||||
|
||||
func NewAddedEvent(
|
||||
base *eventstore.BaseEvent,
|
||||
configID string,
|
||||
name string,
|
||||
configType ConfigType,
|
||||
stylingType StylingType,
|
||||
) *ConfigAddedEvent {
|
||||
|
||||
return &ConfigAddedEvent{
|
||||
BaseEvent: *base,
|
||||
ID: configID,
|
||||
Name: name,
|
||||
StylingType: stylingType,
|
||||
Type: configType,
|
||||
}
|
||||
}
|
||||
|
||||
func (e *ConfigAddedEvent) CheckPrevious() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *ConfigAddedEvent) Data() interface{} {
|
||||
return e
|
||||
}
|
||||
|
||||
type ConfigType uint32
|
||||
|
||||
type StylingType uint32
|
||||
Reference in New Issue
Block a user