From 68fd8afdd54f79125b892b3a5d4557777ca7c2e5 Mon Sep 17 00:00:00 2001 From: Vlasov Date: Wed, 2 Aug 2023 14:45:19 +0300 Subject: [PATCH] Added Lang and Category fields to templates --- v1/template.go | 2 ++ v1/types.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/v1/template.go b/v1/template.go index 7e37632..75e242b 100644 --- a/v1/template.go +++ b/v1/template.go @@ -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. diff --git a/v1/types.go b/v1/types.go index 24c0972..ffbfb29 100644 --- a/v1/types.go +++ b/v1/types.go @@ -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")