Documentation
¶
Index ¶
- type MySQLCategoryRepository
- func (r MySQLCategoryRepository) CreateCategory(category *category.Category) error
- func (r MySQLCategoryRepository) DeleteCategory(id int64) error
- func (r MySQLCategoryRepository) GetCategories(accountID int64) ([]int64, error)
- func (r MySQLCategoryRepository) GetCategoryByID(id int64) (*category.Category, error)
- func (r MySQLCategoryRepository) GetCategoryNames(accountID int64) (map[string]int64, error)
- func (r MySQLCategoryRepository) GetCategoryTree(accountID int64) (*category.CategoryTree, error)
- func (r MySQLCategoryRepository) GetListCategoryIDsAndTheirSubcategories(ids []int64) ([]int64, error)
- func (r MySQLCategoryRepository) GetRootCategoryID(accountID int64) (int64, error)
- func (r MySQLCategoryRepository) GetSingleCategoryTree(id int64) (*category.CategoryTree, error)
- func (r MySQLCategoryRepository) UpdateCategory(category *category.Category) error
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
Click to show internal directories.
Click to hide internal directories.