mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
refactor(v2): init events (#7823)
creates events structures for initial projections and read models
This commit is contained in:
7
internal/v2/domain/added.go
Normal file
7
internal/v2/domain/added.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package domain
|
||||
|
||||
const AddedTypeSuffix = "domain.added"
|
||||
|
||||
type AddedPayload struct {
|
||||
Name string `json:"domain"`
|
||||
}
|
7
internal/v2/domain/primary_set.go
Normal file
7
internal/v2/domain/primary_set.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package domain
|
||||
|
||||
const PrimarySetTypeSuffix = "domain.primary.set"
|
||||
|
||||
type PrimarySetPayload struct {
|
||||
Name string `json:"domain"`
|
||||
}
|
7
internal/v2/domain/removed.go
Normal file
7
internal/v2/domain/removed.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package domain
|
||||
|
||||
const RemovedTypeSuffix = "domain.removed"
|
||||
|
||||
type RemovedPayload struct {
|
||||
Name string `json:"domain"`
|
||||
}
|
7
internal/v2/domain/verfied.go
Normal file
7
internal/v2/domain/verfied.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package domain
|
||||
|
||||
const VerifiedTypeSuffix = "domain.verified"
|
||||
|
||||
type VerifiedPayload struct {
|
||||
Name string `json:"domain"`
|
||||
}
|
Reference in New Issue
Block a user