mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 04:18:01 +00:00
21 lines
535 B
Go
21 lines
535 B
Go
|
package policy
|
||
|
|
||
|
import (
|
||
|
"github.com/zitadel/zitadel/internal/api/grpc/object"
|
||
|
"github.com/zitadel/zitadel/internal/query"
|
||
|
policy_pb "github.com/zitadel/zitadel/pkg/grpc/policy"
|
||
|
)
|
||
|
|
||
|
func ModelNotificationPolicyToPb(policy *query.NotificationPolicy) *policy_pb.NotificationPolicy {
|
||
|
return &policy_pb.NotificationPolicy{
|
||
|
IsDefault: policy.IsDefault,
|
||
|
PasswordChange: policy.PasswordChange,
|
||
|
Details: object.ToViewDetailsPb(
|
||
|
policy.Sequence,
|
||
|
policy.CreationDate,
|
||
|
policy.ChangeDate,
|
||
|
policy.ResourceOwner,
|
||
|
),
|
||
|
}
|
||
|
}
|