search.go 771 B

123456789101112131415161718192021222324252627282930313233343536
  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. IsStarred bool `json:"isStarred"`
  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. OrgId int64
  22. UserId int64
  23. Limit int
  24. IsStarred bool
  25. Result []*DashboardSearchHit
  26. }
  27. type GetDashboardTagsQuery struct {
  28. OrgId int64
  29. Result []*DashboardTagCloudItem
  30. }