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

This commit is contained in:
Ezequiel Victorero 2023-03-02 15:20:24 -03:00 committed by GitHub
parent 68fa7316fa
commit 4cc0399ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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