fix: resolve duplicate methods and missing imports in usecases

This commit is contained in:
Tiago Ribeiro 2026-03-09 09:25:12 -03:00
parent fa9ddbdeef
commit 742a93ddfc
3 changed files with 4 additions and 19 deletions

View file

@ -3,6 +3,7 @@ package usecase
import (
"context"
"errors"
"time"
"github.com/gofrs/uuid/v5"

View file

@ -2,8 +2,11 @@ package usecase
import (
"context"
"errors"
"fmt"
"math"
"strings"
"time"
"github.com/gofrs/uuid/v5"

View file

@ -157,22 +157,3 @@ func (s *Service) GetNotificationService() notifications.NotificationService {
return s.notify
}
// DeleteAddress handles address removal logic.
func (s *Service) DeleteAddress(ctx context.Context, id uuid.UUID) error {
return s.repo.DeleteAddress(ctx, id)
}
// ListManufacturers returns manufacturers from the repo.
func (s *Service) ListManufacturers(ctx context.Context) ([]string, error) {
return s.repo.ListManufacturers(ctx)
}
// ListCategories returns categories from the repo.
func (s *Service) ListCategories(ctx context.Context) ([]string, error) {
return s.repo.ListCategories(ctx)
}
// GetProductByEAN finds a product by its EAN code.
func (s *Service) GetProductByEAN(ctx context.Context, ean string) (*domain.Product, error) {
return s.repo.GetProductByEAN(ctx, ean)
}