Dashboard search works better, tag cloud should be done soon

This commit is contained in:
Torkel Ödegaard
2015-01-06 18:39:26 +01:00
parent 3f266a3e1b
commit bcdbec61d7
5 changed files with 70 additions and 15 deletions

View File

@@ -27,16 +27,33 @@ type Dashboard struct {
}
type SearchResult struct {
Id string `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Dashboards []DashboardSearchHit `json:"dashboards"`
Tags []DashboardTagCloudItem `json:"tags"`
TagsOnly bool `json:"tagsOnly"`
}
type DashboardSearchHit struct {
Id string `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Tags []string `json:"tags"`
}
type DashboardTagCloudItem struct {
Term string `json:"term"`
Count int `json:"count"`
}
type SearchDashboardsQuery struct {
Query string
AccountId int64
Result []*SearchResult
Result []DashboardSearchHit
}
type GetDashboardTagsQuery struct {
AccountId int64
Result []DashboardTagCloudItem
}
type SaveDashboardCommand struct {