import httpClient from '@/utils/http';

import {
  ControllerResponse,
  ExamStatisticsGetKeyStudentInfoListResponseVO,
  ExamStatisticsSetKeyStudentInfoRequestVO,
  ExamStatisticsSetKeyStudentInfoResponseVO
} from './data-contracts';
export default {
  /**
   * @description 设置系统配置信息
   */
  analysisParameterSettingCreate: (request: ExamStatisticsSetKeyStudentInfoRequestVO) => {
    return httpClient.post<
      ControllerResponse & {
        /** 设置重点学生信息响应结构 */
        data?: ExamStatisticsSetKeyStudentInfoResponseVO;
      }
    >(`/analysis-parameter-setting`, { params: request });
  },
  /**
   * @description 获取系统配置信息，param_key为空时返回该业务类型下的所有配置
   */
  analysisParameterSettingList: (query: {
    /** 业务主键 */
    business_key: string;
    /** 参数主键（可选，为空时查询该类型下所有配置） */
    param_key?: string;
  }) => {
    return httpClient.get<
      ControllerResponse & {
        /** 获取重点学生信息列表响应结构 */
        data?: ExamStatisticsGetKeyStudentInfoListResponseVO;
      }
    >(`/analysis-parameter-setting`, { query: query });
  }
};
