favorite.go 402 B

1234567891011121314151617181920212223242526272829
  1. package models
  2. type Favorite struct {
  3. Id int64
  4. UserId int64
  5. DashboardId int64
  6. }
  7. // ----------------------
  8. // COMMANDS
  9. type AddAsFavoriteCommand struct {
  10. UserId int64
  11. DashboardId int64
  12. }
  13. type RemoveAsFavoriteCommand struct {
  14. UserId int64
  15. DashboardId int64
  16. }
  17. // ---------------------
  18. // QUERIES
  19. type GetUserFavoritesQuery struct {
  20. UserId int64
  21. Result []Favorite
  22. }