usecase

package
v0.0.0-...-90e0d95 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUseCase

func NewUseCase(repo category.Repository) category.UseCase

Types

type CategoryUseCase

type CategoryUseCase struct {
	CategoryRepo category.Repository
}

func (*CategoryUseCase) GetCatalogCategories

func (u *CategoryUseCase) GetCatalogCategories() ([]*models.CategoriesCatalog, error)

Get first three levels of categories tree

func (*CategoryUseCase) GetSubCategoriesById

func (u *CategoryUseCase) GetSubCategoriesById(categoryId uint64) ([]*models.CategoriesCatalog, error)

Get subcategories by category id

Jump to

Keyboard shortcuts

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