mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +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>
19 lines
521 B
Go
19 lines
521 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/zitadel/zitadel/internal/domain"
|
|
admin_pb "github.com/zitadel/zitadel/pkg/grpc/admin"
|
|
)
|
|
|
|
func UpdatePrivacyPolicyToDomain(req *admin_pb.UpdatePrivacyPolicyRequest) *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,
|
|
}
|
|
}
|