repository

package
v0.0.0-...-272d833 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 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 ProductDlv

type ProductDlv struct{}

ProductDlv holds all product repository related properties

func NewProductDlv

func NewProductDlv() *ProductDlv

NewProductDlv init new product repository

func (*ProductDlv) AddProduct

func (p *ProductDlv) AddProduct(c context.Context, req entity.Product) error

AddProduct add new product

func (*ProductDlv) DeleteProduct

func (p *ProductDlv) DeleteProduct(c context.Context, req entity.Product) error

DeleteProduct will delete existing product

func (*ProductDlv) GetProduct

func (p *ProductDlv) GetProduct(c context.Context) (entity.Product, error)

GetProduct get one product

func (*ProductDlv) GetProducts

func (p *ProductDlv) GetProducts(c context.Context) ([]entity.Product, error)

GetProducts get list of product

func (*ProductDlv) UpdateProduct

func (p *ProductDlv) UpdateProduct(c context.Context, req entity.Product) error

UpdateProduct update existing product

Jump to

Keyboard shortcuts

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