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 NutrientService struct {
repo *repository.NutrientRepository
}
func NewNutrientService(repo *repository.NutrientRepository) *NutrientService {
return &NutrientService{repo: repo}
}
func (s *NutrientService) GetAll(ctx context.Context) ([]*models.Nutrient, error) {
return s.repo.GetAll(ctx)
}