chore: move the go code into a subfolder

This commit is contained in:
Florian Forster
2025-08-05 15:20:32 -07:00
parent 4ad22ba456
commit cd2921de26
2978 changed files with 373 additions and 300 deletions

View File

@@ -0,0 +1,32 @@
package domain
import (
"golang.org/x/text/language"
"github.com/zitadel/zitadel/internal/eventstore/v1/models"
)
type CustomText struct {
models.ObjectRoot
State CustomTextState
Default bool
Template string
Key string
Language language.Tag
Text string
}
type CustomTextState int32
const (
CustomTextStateUnspecified CustomTextState = iota
CustomTextStateActive
CustomTextStateRemoved
customTextStateCount
)
func (m *CustomText) IsValid() bool {
return m.Key != "" && m.Language != language.Und && m.Text != ""
}