product

package
v0.0.0-...-d081b09 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

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

Product struct that implement the interface domain.product.Storage

func New

func New(db *pgxpool.Pool) Product

New returns a new Product storage

func (Product) Create

func (p Product) Create(m *model.Product) error

Create creates a model.Product

func (Product) Delete

func (p Product) Delete(ID uuid.UUID) error

Delete deletes a model.Product by id

func (Product) GetAll

func (p Product) GetAll() (model.Products, error)

GetAll gets all model.Products with Fields

func (Product) GetByID

func (p Product) GetByID(ID uuid.UUID) (model.Product, error)

GetByID gets an ordered model.Product with filters

func (Product) Update

func (p Product) Update(m *model.Product) error

Update this method updates a model.Product by id

Jump to

Keyboard shortcuts

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