1
0
mirror of synced 2024-11-22 04:56:06 +03:00

Added Lang and Category fields to templates

This commit is contained in:
Vlasov 2023-08-02 14:45:19 +03:00
parent 10f648f550
commit 68fd8afdd5
2 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,8 @@ type Template struct {
Enabled bool `json:"enabled,omitempty"`
Type string `json:"type"`
Template []TemplateItem `json:"template"`
Lang string `json:"lang,omitempty"`
Category string `json:"category,omitempty"`
}
// TemplateItem is a part of template.

View File

@ -555,6 +555,8 @@ type ActivateTemplateRequest struct {
Name string `binding:"required,min=1,max=512" json:"name"`
Type string `binding:"required" json:"type"`
Template []TemplateItem `json:"template"`
Lang string `json:"lang,omitempty"`
Category string `json:"category,omitempty"`
}
var ErrInvalidOriginator = errors.New("invalid originator")