From 4cc0399ee5a028d282b8891e4baa718700908dd1 Mon Sep 17 00:00:00 2001 From: Ezequiel Victorero Date: Thu, 2 Mar 2023 15:20:24 -0300 Subject: [PATCH] PublicDashboards: add recipient uid to recipient list (#63982) --- pkg/services/publicdashboards/models/models.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/services/publicdashboards/models/models.go b/pkg/services/publicdashboards/models/models.go index 3615fdddb5a..db2e7b1d56b 100644 --- a/pkg/services/publicdashboards/models/models.go +++ b/pkg/services/publicdashboards/models/models.go @@ -49,13 +49,18 @@ type PublicDashboard struct { AnnotationsEnabled bool `json:"annotationsEnabled" xorm:"annotations_enabled"` TimeSelectionEnabled bool `json:"timeSelectionEnabled" xorm:"time_selection_enabled"` Share ShareType `json:"share" xorm:"share"` - Recipients []string `json:"recipients,omitempty" xorm:"-"` + Recipients []EmailDTO `json:"recipients,omitempty" xorm:"-"` CreatedBy int64 `json:"createdBy" xorm:"created_by"` UpdatedBy int64 `json:"updatedBy" xorm:"updated_by"` CreatedAt time.Time `json:"createdAt" xorm:"created_at"` UpdatedAt time.Time `json:"updatedAt" xorm:"updated_at"` } +type EmailDTO struct { + Uid string `json:"uid"` + Recipient string `json:"recipient"` +} + // Alias the generated type type DashAnnotation = dashboard.AnnotationQuery