service

package
v0.0.0-...-79a4a49 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductService

type ProductService interface {
	CreateProduct(name, description, imageUrl string, price float64, quantity int32, departmentId string) (*domain.Product, error)
	FindProducts(page int, pageSize int) ([]*domain.Product, error)
	FindProductByID(id string) (*domain.Product, error)
	FindProductsByDepartmentId(departmentId string) ([]*domain.Product, error)
}

func NewProductService

func NewProductService(productRepository repository.ProductRepository) ProductService

Jump to

Keyboard shortcuts

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