usecase

package
v0.0.0-...-18926c1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductUseCase

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

func NewProductUseCase

func NewProductUseCase(repo repository.ProductRepository) ProductUseCase

func (*ProductUseCase) CreateProduct

func (pu *ProductUseCase) CreateProduct(product model.Product) (model.Product, error)

func (*ProductUseCase) DeleteProduct

func (pu *ProductUseCase) DeleteProduct(id_product int) error

func (*ProductUseCase) GetProductByID

func (pu *ProductUseCase) GetProductByID(id_product int) (*model.Product, error)

func (*ProductUseCase) GetProducts

func (pu *ProductUseCase) GetProducts() ([]model.Product, error)

Jump to

Keyboard shortcuts

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