Documentation ¶
Index ¶
- type Service
- func (s *Service) AddFavorite(ctx context.Context, dto *favoriteserviceiface.WriteOpDTO) error
- func (s *Service) CountFavorite(ctx context.Context, dto *favoriteserviceiface.AggOpDTO) ([]*v1.CountFavoriteResponseItem, error)
- func (s *Service) IsFavorite(ctx context.Context, dto []*v1.IsFavoriteRequestItem) ([]*v1.IsFavoriteResponseItem, error)
- func (s *Service) ListFavorite(ctx context.Context, dto *favoriteserviceiface.AggOpDTO, limit, offset int) ([]int64, error)
- func (s *Service) RemoveFavorite(ctx context.Context, dto *favoriteserviceiface.WriteOpDTO) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(favorite repoiface.FavoriteRepository) *Service
func (*Service) AddFavorite ¶
func (s *Service) AddFavorite(ctx context.Context, dto *favoriteserviceiface.WriteOpDTO) error
func (*Service) CountFavorite ¶
func (s *Service) CountFavorite(ctx context.Context, dto *favoriteserviceiface.AggOpDTO) ([]*v1.CountFavoriteResponseItem, error)
func (*Service) IsFavorite ¶
func (s *Service) IsFavorite(ctx context.Context, dto []*v1.IsFavoriteRequestItem) ([]*v1.IsFavoriteResponseItem, error)
func (*Service) ListFavorite ¶
func (*Service) RemoveFavorite ¶
func (s *Service) RemoveFavorite(ctx context.Context, dto *favoriteserviceiface.WriteOpDTO) error
Click to show internal directories.
Click to hide internal directories.