import '../domain/product_draft.dart';
import '../domain/product_publishing_repository.dart';

/// Use case: update only the category of a single product by its [id].
///
/// This is a narrow category mutation — not a generic product edit.
class UpdateProductCategory {
  final ProductPublishingRepository repository;

  UpdateProductCategory(this.repository);

  Future<ProductDraft> call(String id, String category) =>
      repository.updateProductCategory(id, category);
}
