package cn.ysk.cashier.cons.service;

import cn.ysk.cashier.cons.domain.ViewConInfoFlow;
import cn.ysk.cashier.cons.service.dto.ViewConInfoFlowDto;
import cn.ysk.cashier.cons.service.dto.ViewConInfoFlowQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @author admin
* @date 2024-07-17
**/
public interface ViewConInfoFlowService {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(ViewConInfoFlowQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<ViewConInfoFlowDto>
    */
    List<ViewConInfoFlowDto> queryAll(ViewConInfoFlowQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param consId ID
     * @return ViewConInfoFlowDto
     */
    ViewConInfoFlowDto findById(Integer consId);

    /**
    * 创建
    * @param resources /
    * @return ViewConInfoFlowDto
    */
    ViewConInfoFlowDto create(ViewConInfoFlow resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(ViewConInfoFlow resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(Integer[] ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<ViewConInfoFlowDto> all, HttpServletResponse response) throws IOException;
}