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

/// 결재 초안을 서버에 저장하는 유즈케이스.
class SaveApprovalDraftUseCase {
  SaveApprovalDraftUseCase({required ApprovalDraftRepository repository})
    : _repository = repository;

  final ApprovalDraftRepository _repository;

  Future<ApprovalDraftDetail> call(ApprovalDraftSaveInput input) {
    return _repository.save(input);
  }
}
