mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
15d5338b91
* feat: customize doc link and additional custom link * feat: add e2e tests * fix: update docs * fix: add @peintnermax changes about cache * fix: golangci-lint complains preparation.PrepareCommands --------- Co-authored-by: Max Peintner <max@caos.ch>
31 lines
929 B
Go
31 lines
929 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),
|
|
DocsLink: req.DocsLink,
|
|
CustomLink: req.CustomLink,
|
|
CustomLinkText: req.CustomLinkText,
|
|
}
|
|
}
|
|
|
|
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),
|
|
DocsLink: req.DocsLink,
|
|
CustomLink: req.CustomLink,
|
|
CustomLinkText: req.CustomLinkText,
|
|
}
|
|
}
|