Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCategoryService ¶
func NewCategoryService(repo repositories.CategoryRepository) *categoryService
func NewProductService ¶
func NewProductService(repo repositories.ProductRepository) *productService
func NewReportService ¶
func NewReportService(repo repositories.ReportRepository) *reportService
Types ¶
type CategoryService ¶
type ProductService ¶
type ProductService interface { CreateProduct(product *models.Product) error GetAllProducts() ([]models.Product, error) GetAllProductsWithPagination(ctx *gin.Context) (models.ProductsPageable, error) GetProductByID(id uint) (models.Product, error) UpdateProduct(product *models.Product) (models.Product, error) DeleteProduct(id uint) error }
Click to show internal directories.
Click to hide internal directories.