This commit is contained in:
2025-11-03 12:24:01 +02:00
commit 0806865287
177 changed files with 18453 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package service
import (
"context"
"go-server/internal/models"
"go-server/internal/repository"
)
type CategoryService struct {
categoryRepo *repository.CategoryRepository
}
func NewCategoryService(categoryRepo *repository.CategoryRepository) *CategoryService {
return &CategoryService{categoryRepo: categoryRepo}
}
func (s *CategoryService) GetAll(ctx context.Context) ([]models.Category, error) {
return s.categoryRepo.GetAll(ctx)
}