mirrored_repositories/admin-dashboard/lib/domain
import 'package:admin_dashboard/domain/entity/api_response.dart';
import 'package:admin_dashboard/domain/usecase/usecase.dart';

class DeletePostUseCase extends UseCase<int> {
  DeletePostUseCase({required super.dashboardRepository});

  @override
  Future<ApiResponse> execute() {
    return dashboardRepository.deletePost(getParam()!);
  }
}
