category

package
v0.0.0-...-46f64ff Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLCategoryRepository

type MySQLCategoryRepository struct {
	*domain.MySQLBaseRepository
}

func (MySQLCategoryRepository) CreateCategory

func (r MySQLCategoryRepository) CreateCategory(category *category.Category) error

func (MySQLCategoryRepository) DeleteCategory

func (r MySQLCategoryRepository) DeleteCategory(id int64) error

func (MySQLCategoryRepository) GetCategories

func (r MySQLCategoryRepository) GetCategories(accountID int64) ([]int64, error)

func (MySQLCategoryRepository) GetCategoryByID

func (r MySQLCategoryRepository) GetCategoryByID(id int64) (*category.Category, error)

func (MySQLCategoryRepository) GetCategoryNames

func (r MySQLCategoryRepository) GetCategoryNames(accountID int64) (map[string]int64, error)

func (MySQLCategoryRepository) GetCategoryTree

func (r MySQLCategoryRepository) GetCategoryTree(accountID int64) (*category.CategoryTree, error)

func (MySQLCategoryRepository) GetListCategoryIDsAndTheirSubcategories

func (r MySQLCategoryRepository) GetListCategoryIDsAndTheirSubcategories(ids []int64) ([]int64, error)

func (MySQLCategoryRepository) GetRootCategoryID

func (r MySQLCategoryRepository) GetRootCategoryID(accountID int64) (int64, error)

func (MySQLCategoryRepository) GetSingleCategoryTree

func (r MySQLCategoryRepository) GetSingleCategoryTree(id int64) (*category.CategoryTree, error)

func (MySQLCategoryRepository) UpdateCategory

func (r MySQLCategoryRepository) UpdateCategory(category *category.Category) error

Jump to

Keyboard shortcuts

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