PublicDashboards: add recipient uid to recipient list (#63982)

pull/64063/head
Ezequiel Victorero 2 years ago committed by GitHub
parent 68fa7316fa
commit 4cc0399ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      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

Loading…
Cancel
Save