import 'package:superport_v2/core/common/models/paginated_result.dart';

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

/// 결재 초안 목록을 조회하는 유즈케이스.
class ListApprovalDraftsUseCase {
  ListApprovalDraftsUseCase({required ApprovalDraftRepository repository})
    : _repository = repository;

  final ApprovalDraftRepository _repository;

  Future<PaginatedResult<ApprovalDraftSummary>> call(
    ApprovalDraftListFilter filter,
  ) {
    return _repository.list(filter);
  }
}
