import { MAX_API_PAGE_SIZE } from './batch-request';
import { buildQueryAndFetch } from '../utils/build-query-and-fetch';
/**
 * 执行单个批次请求
 */
export function fetchSingleBatch(options) {
    const { remote, innerParams, batchPage, clearDataType, paramsData } = options;
    return buildQueryAndFetch({
        remote,
        innerParams,
        currentPage: batchPage,
        pageSize: MAX_API_PAGE_SIZE,
        clearDataType,
        paramsData,
    });
}
