Documentation ¶
Index ¶
- func ProvideService(db db.DB) star.Service
- type Service
- func (s *Service) Add(ctx context.Context, cmd *star.StarDashboardCommand) error
- func (s *Service) Delete(ctx context.Context, cmd *star.UnstarDashboardCommand) error
- func (s *Service) DeleteByUser(ctx context.Context, userID int64) error
- func (s *Service) GetByUser(ctx context.Context, cmd *star.GetUserStarsQuery) (*star.GetUserStarsResult, error)
- func (s *Service) IsStarredByUser(ctx context.Context, query *star.IsStarredByUserQuery) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeleteByUser ¶
func (*Service) GetByUser ¶
func (s *Service) GetByUser(ctx context.Context, cmd *star.GetUserStarsQuery) (*star.GetUserStarsResult, error)
func (*Service) IsStarredByUser ¶
Click to show internal directories.
Click to hide internal directories.