repository

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductRepository

type ProductRepository interface {
	CreateProduct(product *domain.Product) (*domain.Product, error)
	FindProducts(page int, pageSize int) ([]*domain.Product, error)
	FindProductById(id string) (*domain.Product, error)
	FindProductByDepartmentId(departmentId string) ([]*domain.Product, error)
}

func NewProductRepository

func NewProductRepository(db *sql.DB) ProductRepository

Jump to

Keyboard shortcuts

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