repository

package
v0.0.0-...-70c7f13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Products

type Products interface {
	GetProductByName(name string) (*model.Product, error)
	AddProduct(product *model.Product) (*model.Product, error)
	AddTypeByCategoryId(categoryId uint, productTypes []string) error
}

type Repositories

type Repositories struct {
	Products Products
}

func NewRepositories

func NewRepositories(db *gorm.DB) *Repositories

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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