search.go 810 B

12345678910111213141516171819202122232425262728293031323334353637
  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. IsStarred bool `json:"isStarred"`
  14. }
  15. type DashboardTagCloudItem struct {
  16. Term string `json:"term"`
  17. Count int `json:"count"`
  18. }
  19. type SearchDashboardsQuery struct {
  20. Title string
  21. Tag string
  22. AccountId int64
  23. UserId int64
  24. Limit int
  25. IsStarred bool
  26. Result []*DashboardSearchHit
  27. }
  28. type GetDashboardTagsQuery struct {
  29. AccountId int64
  30. Result []*DashboardTagCloudItem
  31. }