services

package
v0.0.0-...-ce62dce Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DefaultReviewsService

type DefaultReviewsService struct {
	Repository repositories.ReviewsRepository
	// contains filtered or unexported fields
}

func (*DefaultReviewsService) Query

func (s *DefaultReviewsService) Query(productID uint64) (rs []*models.Review, err error)

type ReviewsService

type ReviewsService interface {
	Query(productID uint64) ([]*models.Review, error)
}

func CreateReviewsService

func CreateReviewsService(cf string, sto repositories.ReviewsRepository) (ReviewsService, error)

func NewReviewService

func NewReviewService(logger *zap.Logger, Repository repositories.ReviewsRepository) ReviewsService

Jump to

Keyboard shortcuts

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