mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 13:57:32 +00:00
23 lines
637 B
Go
23 lines
637 B
Go
|
package management
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/domain"
|
||
|
mgmt_pb "github.com/caos/zitadel/pkg/grpc/management"
|
||
|
)
|
||
|
|
||
|
func addLabelPolicyToDomain(p *mgmt_pb.AddCustomLabelPolicyRequest) *domain.LabelPolicy {
|
||
|
return &domain.LabelPolicy{
|
||
|
PrimaryColor: p.PrimaryColor,
|
||
|
SecondaryColor: p.SecondaryColor,
|
||
|
HideLoginNameSuffix: p.HideLoginNameSuffix,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func updateLabelPolicyToDomain(p *mgmt_pb.UpdateCustomLabelPolicyRequest) *domain.LabelPolicy {
|
||
|
return &domain.LabelPolicy{
|
||
|
PrimaryColor: p.PrimaryColor,
|
||
|
SecondaryColor: p.SecondaryColor,
|
||
|
HideLoginNameSuffix: p.HideLoginNameSuffix,
|
||
|
}
|
||
|
}
|