package com.engine.secret.service;

import com.engine.secret.entity.unpack.UnpackParam;
import com.fasterxml.jackson.databind.JsonNode;
import net.lingala.zip4j.ZipFile;
import net.lingala.zip4j.model.FileHeader;

import java.util.Map;

/**
 * @author:dxfeng
 * @createTime: 2025/03/26
 * @version: 1.0
 */
public interface UnpackZipService {

    /**
     * 材料收件
     *
     * @param unpackParam
     * @param rootNode
     * @param imageFileMap
     * @return
     * @throws Exception
     */
    Map<String, Object> registerAcceptance(ZipFile zipFile, UnpackParam unpackParam, JsonNode rootNode, Map<String, FileHeader> imageFileMap) throws Exception;

    /**
     * 材料补正
     *
     * @return
     */
    Map<String, Object> reviewResubmittedMaterials(ZipFile zipFile, String requestId, JsonNode rootNode, Map<String, FileHeader> imageFileMap);

    /**
     * 删除文件解析数据
     *
     * @param param
     * @return
     */
    Map<String, Object> deleteParsedData(Map<String, Object> param);

}
