search.go 646 B

12345678910111213141516171819202122232425262728293031
  1. package models
  2. type SearchResult struct {
  3. Dashboards []*DashboardSearchHit `json:"dashboards"`
  4. Tags []*DashboardTagCloudItem `json:"tags"`
  5. TagsOnly bool `json:"tagsOnly"`
  6. }
  7. type DashboardSearchHit struct {
  8. Title string `json:"title"`
  9. Slug string `json:"slug"`
  10. Tags []string `json:"tags"`
  11. }
  12. type DashboardTagCloudItem struct {
  13. Term string `json:"term"`
  14. Count int `json:"count"`
  15. }
  16. type SearchDashboardsQuery struct {
  17. Title string
  18. Tag string
  19. AccountId int64
  20. Result []*DashboardSearchHit
  21. }
  22. type GetDashboardTagsQuery struct {
  23. AccountId int64
  24. Result []*DashboardTagCloudItem
  25. }