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 DefaultRatingsService

type DefaultRatingsService struct {
	Repository repositories.RatingsRepository
	// contains filtered or unexported fields
}

func (*DefaultRatingsService) Get

func (s *DefaultRatingsService) Get(productID uint64) (p *models.Rating, err error)

type RatingsService

type RatingsService interface {
	Get(ID uint64) (*models.Rating, error)
}

func CreateRatingsService

func CreateRatingsService(cf string, sto repositories.RatingsRepository) (RatingsService, error)

func NewRatingService

func NewRatingService(logger *zap.Logger, Repository repositories.RatingsRepository) RatingsService

Jump to

Keyboard shortcuts

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