// @ts-ignore
/* eslint-disable */

// 该文件自动生成，请勿手动修改！

// --------------------------------------------------------------------------
// 高中选科组合管理服务
// --------------------------------------------------------------------------

import { request } from '@umijs/max';

/** 根据ID获取高中选科组合 GET /api/ncee/course/comb/get-by-id */
export async function getById(
    params: {
        /**  */
        id: number;
    },
    options?: { [key: string]: any },
) {
    const url = '/api/ncee/course/comb/get-by-id';
    const config = { method: 'GET', params, ...(options || {}) };
    const res = await request<API.ResponseType<API.NceeCourseCombOutput>>(url, config);
    return res?.data;
}

/** 获取所有高中选科组合 GET /api/ncee/course/comb/get-all-list */
export async function getAllList(options?: { [key: string]: any }) {
    const url = '/api/ncee/course/comb/get-all-list';
    const config = { method: 'GET', ...(options || {}) };
    const res = await request<API.ResponseType<API.NceeCourseCombOutput[]>>(url, config);
    return res?.data;
}

export default {
    /** 根据ID获取高中选科组合 GET /api/ncee/course/comb/get-by-id */
    getById,
    /** 获取所有高中选科组合 GET /api/ncee/course/comb/get-all-list */
    getAllList,
};
