Added isStarred to search result hit, very inefficient loading right now but can be cached later on
This commit is contained in:
@@ -7,11 +7,12 @@ type SearchResult struct {
|
||||
}
|
||||
|
||||
type DashboardSearchHit struct {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Slug string `json:"slug"`
|
||||
Tags []string `json:"tags"`
|
||||
Url string `json:"url"`
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Slug string `json:"slug"`
|
||||
Tags []string `json:"tags"`
|
||||
Url string `json:"url"`
|
||||
IsStarred bool `json:"isStarred"`
|
||||
}
|
||||
|
||||
type DashboardTagCloudItem struct {
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ type UnstarDashboardCommand struct {
|
||||
type GetUserStarsQuery struct {
|
||||
UserId int64
|
||||
|
||||
Result []Star
|
||||
Result map[int64]bool // dashboard ids
|
||||
}
|
||||
|
||||
type IsStarredByUserQuery struct {
|
||||
|
||||
Reference in New Issue
Block a user