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

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

// --------------------------------------------------------------------------
// 监测抽样学生管理服务
// --------------------------------------------------------------------------

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

/** 分页查询抽样学生信息 POST /api/exam/sample/student/query-page-list */
export async function queryPageList(
    data: API.ExamSampleStudentPageInput,
    options?: { [key: string]: any },
) {
    const url = '/api/exam/sample/student/query-page-list';
    const config = { method: 'POST', data, ...(options || {}) };
    const res = await request<API.ResponseType<API.PageResponse<API.ExamSampleStudentOutput>>>(
        url,
        config,
    );
    return res?.data;
}

/** 根据监测号查询已发布监测方案中当前机构下学生信息 GET /api/exam/sample/student/get-by-exam-number */
export async function getByExamNumber(
    params: {
        /** 监测计划ID */
        examplanid: number;
        /** 监测号 */
        examnumber: string;
    },
    options?: { [key: string]: any },
) {
    const url = '/api/exam/sample/student/get-by-exam-number';
    const config = { method: 'GET', params, ...(options || {}) };
    const res = await request<API.ResponseType<API.ExamSampleStudentOutput>>(url, config);
    return res?.data;
}

/** 查询监测学生信息 POST /api/exam/sample/student/query-exam-sample-student */
export async function queryExamSampleStudent(
    data: API.QueryExamSampleStudentInput,
    options?: { [key: string]: any },
) {
    const url = '/api/exam/sample/student/query-exam-sample-student';
    const config = { method: 'POST', data, ...(options || {}) };
    const res = await request<API.ResponseType<API.ExamSampleStudentOutput>>(url, config);
    return res?.data;
}

export default {
    /** 分页查询抽样学生信息 POST /api/exam/sample/student/query-page-list */
    queryPageList,
    /** 根据监测号查询已发布监测方案中当前机构下学生信息 GET /api/exam/sample/student/get-by-exam-number */
    getByExamNumber,
    /** 查询监测学生信息 POST /api/exam/sample/student/query-exam-sample-student */
    queryExamSampleStudent,
};
