package com.wms_main.excel.easypoi.service.base;

import com.wms_main.model.dto.query.GoodsQuery;
import com.wms_main.model.dto.query.StockQuery;
import com.wms_main.model.dto.query.StockUpdateQuery;
import com.wms_main.model.dto.query.WmsTaskQuery;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

/**
 * 基础导出服务接口
 */
public interface IBaseExportExcelEasyPoi {
    /**
     * 导出库存
     * @param stockQuery 查询条件
     */
    void doExportStocks(@RequestBody StockQuery stockQuery, HttpServletResponse response) throws IOException;

    /**
     * 导出库存更新记录
     * @param stockUpdateQuery 查询条件
     */
    void doExportStockUpdate(@RequestBody StockUpdateQuery stockUpdateQuery, HttpServletResponse response) throws IOException;

    /**
     * 导出物料信息
     * @param goodsQuery 查询
     */
    void doExportGoods(@RequestBody GoodsQuery goodsQuery, HttpServletResponse response) throws IOException;

    /**
     * 导出入库记录
     * @param wmsTaskQuery 查询
     */
    void doExportInTaskRecords(@RequestBody WmsTaskQuery wmsTaskQuery, HttpServletResponse response) throws IOException;

    /**
     * 导出出库记录
     * @param wmsTaskQuery 查询
     */
    void doExportOutTaskRecords(@RequestBody WmsTaskQuery wmsTaskQuery, HttpServletResponse response) throws IOException;
}
