1
0
mirror of synced 2024-11-21 20:46:05 +03:00

Add Lang and Category fields to templates

This commit is contained in:
Pavel 2023-08-03 10:33:25 +03:00 committed by GitHub
commit b47f23f524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ type Template struct {
HeaderParams *HeaderParams `json:"headerParams,omitempty"`
Footer *string `json:"footer,omitempty"`
ButtonParams []ButtonParam `json:"buttonParams,omitempty"`
Lang string `json:"lang,omitempty"`
Category string `json:"category,omitempty"`
}
// TemplateItem is a part of template.

View File

@ -564,6 +564,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")