zitadel/internal/iam/model/mail_text_view.go

61 lines
1.1 KiB
Go
Raw Normal View History

package model
import (
"time"
"github.com/caos/zitadel/internal/model"
)
type MailTextsView struct {
Texts []*MailTextView
Default bool
}
type MailTextView struct {
AggregateID string
MailTextType string
Language string
Title string
PreHeader string
Subject string
Greeting string
Text string
ButtonText string
Default bool
CreationDate time.Time
ChangeDate time.Time
Sequence uint64
}
type MailTextSearchRequest struct {
Offset uint64
Limit uint64
SortingColumn MailTextSearchKey
Asc bool
Queries []*MailTextSearchQuery
}
type MailTextSearchKey int32
const (
MailTextSearchKeyUnspecified MailTextSearchKey = iota
MailTextSearchKeyAggregateID
MailTextSearchKeyMailTextType
MailTextSearchKeyLanguage
)
type MailTextSearchQuery struct {
Key MailTextSearchKey
Method model.SearchMethod
Value interface{}
}
type MailTextSearchResponse struct {
Offset uint64
Limit uint64
TotalResult uint64
Result []*MailTextView
Sequence uint64
Timestamp time.Time
}