PublicDashboards: Audit table pagination (#69823)
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/dashboard"
|
||||
"github.com/grafana/grafana/pkg/services/user"
|
||||
)
|
||||
|
||||
// PublicDashboardErr represents a dashboard error.
|
||||
@@ -103,6 +104,22 @@ func (pd PublicDashboard) TableName() string {
|
||||
return "dashboard_public"
|
||||
}
|
||||
|
||||
type PublicDashboardListQuery struct {
|
||||
OrgID int64
|
||||
Query string
|
||||
Page int
|
||||
Limit int
|
||||
Offset int
|
||||
User *user.SignedInUser
|
||||
}
|
||||
|
||||
type PublicDashboardListResponseWithPagination struct {
|
||||
PublicDashboards []*PublicDashboardListResponse `json:"publicDashboards"`
|
||||
TotalCount int64 `json:"totalCount"`
|
||||
Page int `json:"page"`
|
||||
PerPage int `json:"perPage"`
|
||||
}
|
||||
|
||||
type PublicDashboardListResponse struct {
|
||||
Uid string `json:"uid" xorm:"uid"`
|
||||
AccessToken string `json:"accessToken" xorm:"access_token"`
|
||||
|
||||
Reference in New Issue
Block a user