Chore: Remove star model duplicates (#61191)

This commit is contained in:
Kat Yang
2023-01-10 09:56:33 -05:00
committed by GitHub
parent 320266ae63
commit 9a14a7db03
4 changed files with 6 additions and 45 deletions
-40
View File
@@ -1,40 +0,0 @@
package models
import "errors"
var ErrCommandValidationFailed = errors.New("command missing required fields")
type Star struct {
Id int64
UserId int64
DashboardId int64
}
// ----------------------
// COMMANDS
type StarDashboardCommand struct {
UserId int64
DashboardId int64
}
type UnstarDashboardCommand struct {
UserId int64
DashboardId int64
}
// ---------------------
// QUERIES
type GetUserStarsQuery struct {
UserId int64
Result map[int64]bool // dashboard ids
}
type IsStarredByUserQuery struct {
UserId int64
DashboardId int64
Result bool
}