star

package
v0.0.0-testrgm4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCommandValidationFailed = errors.New("command missing required fields")

Functions

This section is empty.

Types

type GetUserStarsQuery

type GetUserStarsQuery struct {
	UserID int64 `xorm:"user_id"`
}

type GetUserStarsResult

type GetUserStarsResult struct {
	UserStars map[int64]bool
}

type IsStarredByUserQuery

type IsStarredByUserQuery struct {
	UserID      int64 `xorm:"user_id"`
	DashboardID int64 `xorm:"dashboard_id"`
}

type Star

type Star struct {
	ID          int64 `xorm:"pk autoincr 'id'" db:"id"`
	UserID      int64 `xorm:"user_id" db:"user_id"`
	DashboardID int64 `xorm:"dashboard_id" db:"dashboard_id"`
}

type StarDashboardCommand

type StarDashboardCommand struct {
	UserID      int64 `xorm:"user_id"`
	DashboardID int64 `xorm:"dashboard_id"`
}

func (*StarDashboardCommand) Validate

func (cmd *StarDashboardCommand) Validate() error

type UnstarDashboardCommand

type UnstarDashboardCommand struct {
	UserID      int64 `xorm:"user_id"`
	DashboardID int64 `xorm:"dashboard_id"`
}

func (*UnstarDashboardCommand) Validate

func (cmd *UnstarDashboardCommand) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL