More work on backend for user favorites
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user