mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
26 lines
618 B
Go
26 lines
618 B
Go
|
package text
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/api/grpc/object"
|
||
|
"github.com/caos/zitadel/internal/iam/model"
|
||
|
text_pb "github.com/caos/zitadel/pkg/grpc/text"
|
||
|
)
|
||
|
|
||
|
func ModelCustomMsgTextToPb(msg *model.MessageTextView) *text_pb.MessageCustomText {
|
||
|
return &text_pb.MessageCustomText{
|
||
|
Title: msg.Title,
|
||
|
PreHeader: msg.PreHeader,
|
||
|
Subject: msg.Subject,
|
||
|
Greeting: msg.Greeting,
|
||
|
Text: msg.Text,
|
||
|
ButtonText: msg.ButtonText,
|
||
|
FooterText: msg.FooterText,
|
||
|
Details: object.ToViewDetailsPb(
|
||
|
msg.Sequence,
|
||
|
msg.CreationDate,
|
||
|
msg.ChangeDate,
|
||
|
"", //TODO: resourceowner
|
||
|
),
|
||
|
}
|
||
|
}
|