usecases

package
v0.0.0-...-d939588 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateProductUseCase

func NewCreateProductUseCase(productRepository repositories.IProductRepository) interfaces.ICreateProductUseCase

func NewFindProductUseCase

func NewFindProductUseCase(productRepository repositories.IProductRepository) interfaces.IFindProductUseCase

func NewUpdateProductUseCase

func NewUpdateProductUseCase(productRepository repositories.IProductRepository) interfaces.IUpdateProductUseCase

Types

type DeleteProductUseCase

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

func (*DeleteProductUseCase) Execute

func (d *DeleteProductUseCase) Execute(id string) error

type FindProductUseCase

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

func (FindProductUseCase) Execute

func (r FindProductUseCase) Execute(productId string) (output.ProductData, error)

type UpdateProductUseCase

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

func (*UpdateProductUseCase) Execute

func (u *UpdateProductUseCase) Execute(inputProduct *input.ProductData) (output.ProductData, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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