gateways

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerRepository

type CustomerRepository interface {
	Create(customer *entities.Customer) (*entities.Customer, error)
	List(customer *entities.Customer) ([]entities.Customer, error)
	FindFirstById(id uint) (*entities.Customer, error)
}

type OrderRepository

type OrderRepository interface {
	List(sortBy string, orderBy string, status string) ([]entities.Order, error)
	FindById(orderId string) (*entities.Order, error)
	Update(*entities.Order) (*entities.Order, error)
	Create(order *entities.Order) (*entities.Order, error)
	GetDescOrder() string
	GetAscOrder() string
	GetCreatedAtFieldName() string
}

type ProductCategoryRepository

type ProductCategoryRepository interface {
	FindAll() ([]entities.ProductCategory, error)
	FindById(id uint) (*entities.ProductCategory, error)
}

type ProductRepository

type ProductRepository interface {
	Create(entity *entities.Product) (*entities.Product, error)
	FindById(id uint) (*entities.Product, error)
	FindByIds(ids []uint) ([]entities.Product, error)
	FindAll() ([]entities.Product, error)
	FindByCategoryId(categoryId uint) ([]entities.Product, error)
	Edit(entity *entities.Product) (*entities.Product, error)
	DeleteById(id uint) error
}

Jump to

Keyboard shortcuts

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