import '../entities/approval_draft.dart';
import '../repositories/approval_draft_repository.dart';

/// 결재 초안 상세를 조회하는 유즈케이스.
class GetApprovalDraftUseCase {
  GetApprovalDraftUseCase({required ApprovalDraftRepository repository})
    : _repository = repository;

  final ApprovalDraftRepository _repository;

  Future<ApprovalDraftDetail?> call({
    required int id,
    required int requesterId,
  }) {
    return _repository.fetch(id: id, requesterId: requesterId);
  }
}
