import 'package:account/src/core/domain/repositories/account_repository.dart';
import 'package:account/src/features/change_password/domain/models/entities/change_password_request_entity.dart';
import 'package:account/src/features/change_password/domain/change_password_use_case.dart';

class ChangePasswordUseCaseImpl implements ChangePasswordUseCase {
  ChangePasswordUseCaseImpl(this._repository);

  final AccountRepository _repository;

  @override
  Future<void> changePassword({required String userId, required ChangePasswordRequestEntity request}) {
    return _repository.changePassword(userId: userId, request: request);
  }
}
