favoriteservice

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 (*Service) IsFavorite

func (s *Service) IsFavorite(ctx context.Context, dto []*v1.IsFavoriteRequestItem) ([]*v1.IsFavoriteResponseItem, error)

func (*Service) ListFavorite

func (s *Service) ListFavorite(ctx context.Context, dto *favoriteserviceiface.AggOpDTO, limit, offset int) ([]int64, error)

func (*Service) RemoveFavorite

func (s *Service) RemoveFavorite(ctx context.Context, dto *favoriteserviceiface.WriteOpDTO) error

Jump to

Keyboard shortcuts

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