zitadel/internal/iam/model/label_policy.go

19 lines
308 B
Go
Raw Normal View History

package model
import (
"github.com/caos/zitadel/internal/eventstore/v1/models"
)
type LabelPolicy struct {
models.ObjectRoot
State PolicyState
Default bool
PrimaryColor string
SecondaryColor string
}
func (p *LabelPolicy) IsValid() bool {
return p.ObjectRoot.AggregateID != ""
}