package com.ruoyi.info.collection.service;

import com.ruoyi.info.collection.domain.excel.CcdiStaffRecruitmentExcel;
import com.ruoyi.info.collection.domain.excel.CcdiStaffRecruitmentWorkExcel;
import com.ruoyi.info.collection.domain.vo.ImportStatusVO;
import com.ruoyi.info.collection.domain.vo.RecruitmentImportFailureVO;

import java.util.List;

/**
 * 招聘信息异步导入Service
 *
 * @author ruoyi
 * @date 2026-02-06
 */
public interface ICcdiStaffRecruitmentImportService {

    /**
     * 异步导入招聘信息数据
     *
     * @param excelList  Excel数据列表
     * @param taskId     任务ID
     * @param userName   用户名
     */
    void importRecruitmentAsync(List<CcdiStaffRecruitmentExcel> recruitmentList,
                                List<CcdiStaffRecruitmentWorkExcel> workList,
                                String taskId,
                                String userName);

    /**
     * 查询导入状态
     *
     * @param taskId 任务ID
     * @return 导入状态信息
     */
    ImportStatusVO getImportStatus(String taskId);

    /**
     * 获取导入失败记录
     *
     * @param taskId 任务ID
     * @return 失败记录列表
     */
    List<RecruitmentImportFailureVO> getImportFailures(String taskId);
}
