search.go 736 B

1234567891011121314151617181920212223242526272829303132333435
  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. Id int64 `json:"id"`
  9. Title string `json:"title"`
  10. Slug string `json:"slug"`
  11. Tags []string `json:"tags"`
  12. Url string `json:"url"`
  13. }
  14. type DashboardTagCloudItem struct {
  15. Term string `json:"term"`
  16. Count int `json:"count"`
  17. }
  18. type SearchDashboardsQuery struct {
  19. Title string
  20. Tag string
  21. AccountId int64
  22. UserId int64
  23. IsStarred bool
  24. Result []*DashboardSearchHit
  25. }
  26. type GetDashboardTagsQuery struct {
  27. AccountId int64
  28. Result []*DashboardTagCloudItem
  29. }