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

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

  UpdateProductDescription(this.repository);

  Future<ProductDraft> call(String id, String description) =>
      repository.updateProductDescription(id, description);
}
