Added isStarred to search result hit, very inefficient loading right now but can be cached later on

This commit is contained in:
Torkel Ödegaard
2015-02-05 09:49:00 +01:00
parent 69e7279cff
commit 076905d14e
7 changed files with 45 additions and 30 deletions
+6 -5
View File
@@ -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
View File
@@ -29,7 +29,7 @@ type UnstarDashboardCommand struct {
type GetUserStarsQuery struct {
UserId int64
Result []Star
Result map[int64]bool // dashboard ids
}
type IsStarredByUserQuery struct {