More work on backend for user favorites

This commit is contained in:
Torkel Ödegaard
2015-01-29 12:10:34 +01:00
parent e02e60171e
commit 1d6413bfae
14 changed files with 138 additions and 59 deletions
+12
View File
@@ -6,6 +6,9 @@ type Favorite struct {
DashboardId int64
}
// ----------------------
// COMMANDS
type AddAsFavoriteCommand struct {
UserId int64
DashboardId int64
@@ -15,3 +18,12 @@ type RemoveAsFavoriteCommand struct {
UserId int64
DashboardId int64
}
// ---------------------
// QUERIES
type GetUserFavoritesQuery struct {
UserId int64
Result []Favorite
}