mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +00:00
03a38fbf1c
* feat: add get custom message text to admin api * feat: read custom message texts from files * feat: get languages in apis * feat: get languages in apis * feat: get languages in apis * feat: pr feedback * feat: docs * feat: merge main
60 lines
1.1 KiB
Go
60 lines
1.1 KiB
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"golang.org/x/text/language"
|
|
|
|
"github.com/caos/zitadel/internal/domain"
|
|
)
|
|
|
|
type MessageTextView struct {
|
|
AggregateID string
|
|
MessageTextType string
|
|
Language language.Tag
|
|
Title string
|
|
PreHeader string
|
|
Subject string
|
|
Greeting string
|
|
Text string
|
|
ButtonText string
|
|
FooterText string
|
|
Default bool
|
|
|
|
CreationDate time.Time
|
|
ChangeDate time.Time
|
|
Sequence uint64
|
|
}
|
|
|
|
type MessageTextSearchRequest struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
SortingColumn MessageTextSearchKey
|
|
Asc bool
|
|
Queries []*MessageTextSearchQuery
|
|
}
|
|
|
|
type MessageTextSearchKey int32
|
|
|
|
const (
|
|
MessageTextSearchKeyUnspecified MessageTextSearchKey = iota
|
|
MessageTextSearchKeyAggregateID
|
|
MessageTextSearchKeyMessageTextType
|
|
MessageTextSearchKeyLanguage
|
|
)
|
|
|
|
type MessageTextSearchQuery struct {
|
|
Key MessageTextSearchKey
|
|
Method domain.SearchMethod
|
|
Value interface{}
|
|
}
|
|
|
|
type MessageTextSearchResponse struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
TotalResult uint64
|
|
Result []*MessageTextView
|
|
Sequence uint64
|
|
Timestamp time.Time
|
|
}
|