repositories

package
v1.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAscOrder

func GetAscOrder() string

func GetCreatedAtFieldName

func GetCreatedAtFieldName() string

func GetDescOrder

func GetDescOrder() string

func SetDefaultValues

func SetDefaultValues(sortBy string, orderBy string, status string) (string, string, string)

Types

type OrderRepository

type OrderRepository struct {
}

func (OrderRepository) Create

func (r OrderRepository) Create(order *entities.Order) (*entities.Order, error)

func (OrderRepository) FindById

func (r OrderRepository) FindById(orderId string) (*entities.Order, error)

func (OrderRepository) GetAscOrder

func (r OrderRepository) GetAscOrder() string

func (OrderRepository) GetCreatedAtFieldName

func (r OrderRepository) GetCreatedAtFieldName() string

func (OrderRepository) GetDescOrder

func (r OrderRepository) GetDescOrder() string

func (OrderRepository) List

func (r OrderRepository) List(sortBy string, orderBy string, status string) ([]entities.Order, error)

func (OrderRepository) Update

func (r OrderRepository) Update(order *entities.Order) (*entities.Order, error)

type ProductCategoryRepository

type ProductCategoryRepository struct {
}

func (ProductCategoryRepository) FindAll

func (ProductCategoryRepository) FindById

type ProductRepository

type ProductRepository struct {
}

func (ProductRepository) Create

func (r ProductRepository) Create(entity *entities.Product) (*entities.Product, error)

func (ProductRepository) DeleteById

func (p ProductRepository) DeleteById(id uint) error

func (ProductRepository) Edit

func (ProductRepository) FindAll

func (r ProductRepository) FindAll() ([]entities.Product, error)

func (ProductRepository) FindByCategoryId

func (r ProductRepository) FindByCategoryId(categoryId uint) ([]entities.Product, error)

func (ProductRepository) FindById

func (r ProductRepository) FindById(id uint) (*entities.Product, error)

func (ProductRepository) FindByIds

func (r ProductRepository) FindByIds(ids []uint) ([]entities.Product, error)

Jump to

Keyboard shortcuts

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