mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
e9eb5b7848
* fix: converters * fix: converters * comments
21 lines
513 B
Go
21 lines
513 B
Go
package policy
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/api/grpc/object"
|
|
"github.com/caos/zitadel/internal/iam/model"
|
|
policy_pb "github.com/caos/zitadel/pkg/grpc/policy"
|
|
)
|
|
|
|
func ModelLabelPolicyToPb(policy *model.LabelPolicyView) *policy_pb.LabelPolicy {
|
|
return &policy_pb.LabelPolicy{
|
|
PrimaryColor: policy.PrimaryColor,
|
|
SecondaryColor: policy.SecondaryColor,
|
|
Details: object.ToViewDetailsPb(
|
|
policy.Sequence,
|
|
policy.CreationDate,
|
|
policy.ChangeDate,
|
|
"", //TODO: resourceowner
|
|
),
|
|
}
|
|
}
|