zitadel/internal/domain/custom_text.go
Florian Forster fa9f581d56
chore(v2): move to new org (#3499)
* chore: move to new org

* logging

* fix: org rename caos -> zitadel

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
2022-04-26 23:01:45 +00:00

33 lines
548 B
Go

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 != ""
}