2015-01-09 04:01:37 -06:00
|
|
|
package models
|
|
|
|
|
|
|
|
type SearchResult struct {
|
|
|
|
Dashboards []*DashboardSearchHit `json:"dashboards"`
|
|
|
|
Tags []*DashboardTagCloudItem `json:"tags"`
|
|
|
|
TagsOnly bool `json:"tagsOnly"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardSearchHit struct {
|
2015-02-02 10:17:57 -06:00
|
|
|
Id int64 `json:"id"`
|
2015-01-09 04:01:37 -06:00
|
|
|
Title string `json:"title"`
|
|
|
|
Slug string `json:"slug"`
|
|
|
|
Tags []string `json:"tags"`
|
2015-02-04 04:35:59 -06:00
|
|
|
Url string `json:"url"`
|
2015-01-09 04:01:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardTagCloudItem struct {
|
|
|
|
Term string `json:"term"`
|
|
|
|
Count int `json:"count"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SearchDashboardsQuery struct {
|
|
|
|
Title string
|
|
|
|
Tag string
|
|
|
|
AccountId int64
|
2015-02-04 04:35:59 -06:00
|
|
|
UserId int64
|
|
|
|
IsStarred bool
|
2015-01-09 04:01:37 -06:00
|
|
|
|
|
|
|
Result []*DashboardSearchHit
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetDashboardTagsQuery struct {
|
|
|
|
AccountId int64
|
|
|
|
Result []*DashboardTagCloudItem
|
|
|
|
}
|