mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-24 16:47:47 +00:00
1b9cea0e0c
feat: help and support email in privacy policy
25 lines
705 B
Go
25 lines
705 B
Go
package management
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
mgmt_pb "github.com/zitadel/zitadel/pkg/grpc/management"
|
|
)
|
|
|
|
func AddPrivacyPolicyToDomain(req *mgmt_pb.AddCustomPrivacyPolicyRequest) *domain.PrivacyPolicy {
|
|
return &domain.PrivacyPolicy{
|
|
TOSLink: req.TosLink,
|
|
PrivacyLink: req.PrivacyLink,
|
|
HelpLink: req.HelpLink,
|
|
SupportEmail: domain.EmailAddress(req.SupportEmail),
|
|
}
|
|
}
|
|
|
|
func UpdatePrivacyPolicyToDomain(req *mgmt_pb.UpdateCustomPrivacyPolicyRequest) *domain.PrivacyPolicy {
|
|
return &domain.PrivacyPolicy{
|
|
TOSLink: req.TosLink,
|
|
PrivacyLink: req.PrivacyLink,
|
|
HelpLink: req.HelpLink,
|
|
SupportEmail: domain.EmailAddress(req.SupportEmail),
|
|
}
|
|
}
|