repositories

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 MysqlRatingsRepository

type MysqlRatingsRepository struct {
	// contains filtered or unexported fields
}

func (*MysqlRatingsRepository) Get

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

type RatingsRepository

type RatingsRepository interface {
	Get(productID uint64) (p *models.Rating, err error)
}

func CreateRatingRepository

func CreateRatingRepository(f string) (RatingsRepository, error)

func NewMysqlRatingsRepository

func NewMysqlRatingsRepository(logger *zap.Logger, db *gorm.DB) RatingsRepository

Jump to

Keyboard shortcuts

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