Documentation ¶
Index ¶
- func GetAscOrder() string
- func GetCreatedAtFieldName() string
- func GetDescOrder() string
- func SetDefaultValues(sortBy string, orderBy string, status string) (string, string, string)
- type OrderRepository
- func (r OrderRepository) Create(order *entities.Order) (*entities.Order, error)
- func (r OrderRepository) FindById(orderId string) (*entities.Order, error)
- func (r OrderRepository) GetAscOrder() string
- func (r OrderRepository) GetCreatedAtFieldName() string
- func (r OrderRepository) GetDescOrder() string
- func (r OrderRepository) List(sortBy string, orderBy string, status string) ([]entities.Order, error)
- func (r OrderRepository) Update(order *entities.Order) (*entities.Order, error)
- type ProductCategoryRepository
- type ProductRepository
- func (r ProductRepository) Create(entity *entities.Product) (*entities.Product, error)
- func (p ProductRepository) DeleteById(id uint) error
- func (p ProductRepository) Edit(entity *entities.Product) (*entities.Product, error)
- func (r ProductRepository) FindAll() ([]entities.Product, error)
- func (r ProductRepository) FindByCategoryId(categoryId uint) ([]entities.Product, error)
- func (r ProductRepository) FindById(id uint) (*entities.Product, error)
- func (r ProductRepository) FindByIds(ids []uint) ([]entities.Product, error)
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
Types ¶
type OrderRepository ¶
type OrderRepository struct { }
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
type ProductCategoryRepository ¶
type ProductCategoryRepository struct { }
func (ProductCategoryRepository) FindAll ¶
func (r ProductCategoryRepository) FindAll() ([]entities.ProductCategory, error)
func (ProductCategoryRepository) FindById ¶
func (r ProductCategoryRepository) FindById(id uint) (*entities.ProductCategory, error)
type ProductRepository ¶
type ProductRepository struct { }
func (ProductRepository) DeleteById ¶
func (p ProductRepository) DeleteById(id uint) error
func (ProductRepository) FindByCategoryId ¶
func (r ProductRepository) FindByCategoryId(categoryId uint) ([]entities.Product, error)
Click to show internal directories.
Click to hide internal directories.