mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 13:03:41 +00:00
f2a32871a7
* View definition added * Get templates and texts from the database. * Fill in texts in templates * Fill in texts in templates * Client API added * Weekly backup * Weekly backup * Daily backup * Weekly backup * Tests added * Corrections from merge branch * Fixes from pull request review
48 lines
865 B
Go
48 lines
865 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/caos/zitadel/internal/model"
|
|
)
|
|
|
|
type MailTemplateView struct {
|
|
AggregateID string
|
|
Template []byte
|
|
Default bool
|
|
|
|
CreationDate time.Time
|
|
ChangeDate time.Time
|
|
Sequence uint64
|
|
}
|
|
|
|
type MailTemplateSearchRequest struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
SortingColumn MailTemplateSearchKey
|
|
Asc bool
|
|
Queries []*MailTemplateSearchQuery
|
|
}
|
|
|
|
type MailTemplateSearchKey int32
|
|
|
|
const (
|
|
MailTemplateSearchKeyUnspecified MailTemplateSearchKey = iota
|
|
MailTemplateSearchKeyAggregateID
|
|
)
|
|
|
|
type MailTemplateSearchQuery struct {
|
|
Key MailTemplateSearchKey
|
|
Method model.SearchMethod
|
|
Value interface{}
|
|
}
|
|
|
|
type MailTemplateSearchResponse struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
TotalResult uint64
|
|
Result []*MailTemplateView
|
|
Sequence uint64
|
|
Timestamp time.Time
|
|
}
|