2015-01-09 18:01:37 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
type SearchResult struct {
|
|
|
|
Dashboards []*DashboardSearchHit `json:"dashboards"`
|
|
|
|
Tags []*DashboardTagCloudItem `json:"tags"`
|
|
|
|
TagsOnly bool `json:"tagsOnly"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardSearchHit struct {
|
2015-02-05 16:49:00 +08:00
|
|
|
Id int64 `json:"id"`
|
|
|
|
Title string `json:"title"`
|
2015-05-12 20:11:30 +08:00
|
|
|
Uri string `json:"uri"`
|
|
|
|
Type string `json:"type"`
|
2015-02-05 16:49:00 +08:00
|
|
|
Tags []string `json:"tags"`
|
|
|
|
IsStarred bool `json:"isStarred"`
|
2015-01-09 18:01:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardTagCloudItem struct {
|
|
|
|
Term string `json:"term"`
|
|
|
|
Count int `json:"count"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SearchDashboardsQuery struct {
|
|
|
|
Title string
|
|
|
|
Tag string
|
2015-02-24 03:07:49 +08:00
|
|
|
OrgId int64
|
2015-02-04 18:35:59 +08:00
|
|
|
UserId int64
|
2015-02-05 18:10:56 +08:00
|
|
|
Limit int
|
2015-02-04 18:35:59 +08:00
|
|
|
IsStarred bool
|
2015-01-09 18:01:37 +08:00
|
|
|
|
|
|
|
Result []*DashboardSearchHit
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetDashboardTagsQuery struct {
|
2015-02-24 03:07:49 +08:00
|
|
|
OrgId int64
|
|
|
|
Result []*DashboardTagCloudItem
|
2015-01-09 18:01:37 +08:00
|
|
|
}
|