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 ModelPrivacyPolicyToPb(policy *query.PrivacyPolicy) *policy_pb.PrivacyPolicy { return &policy_pb.PrivacyPolicy{ IsDefault: policy.IsDefault, TosLink: policy.TOSLink, PrivacyLink: policy.PrivacyLink, HelpLink: policy.HelpLink, Details: object.ToViewDetailsPb( policy.Sequence, policy.CreationDate, policy.ChangeDate, policy.ResourceOwner, ), } }