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 IsStarredByUserQuery ¶
type Service ¶
type Service interface { Add(context.Context, *StarDashboardCommand) error Delete(context.Context, *UnstarDashboardCommand) error DeleteByUser(context.Context, int64) error IsStarredByUser(context.Context, *IsStarredByUserQuery) (bool, error) GetByUser(context.Context, *GetUserStarsQuery) (*GetUserStarsResult, error) }
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
Click to show internal directories.
Click to hide internal directories.