feat(grafana): add new api response for dashboard versions
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Tom Neuber 2025-04-09 01:57:33 +02:00
parent 77d9784796
commit 5106b946f3
Signed by: tom
GPG key ID: F17EFE4272D89FF6
2 changed files with 25 additions and 7 deletions

View file

@ -1,6 +1,8 @@
package schema
import "time"
import (
"time"
)
type DashboardVersion struct {
ID uint `json:"id"`
@ -15,4 +17,9 @@ type DashboardVersion struct {
Data any `json:"data"`
}
type DashboardVersionListResponse []DashboardVersion
type DashboardVersionListResponseV10 []DashboardVersion
type DashboardVersionListResponse struct {
ContinueToken string `json:"continueToken"`
Versions DashboardVersionListResponseV10 `json:"versions"`
}