import request from '../utils/request.js'
let teacherPrefix = import.meta.env.VITE_API_TEACHER_PRE 


// 查询评价参数接口
export const getParameterSettingListApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/paramSetup/queryParamSetupData/${evaluationId}`,
        method: 'get',
    })
}

// 查询科目数据接口
export const getSubjectDataListApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/paramSetup/queryEvaluationSubjectData/${evaluationId}`,
        method: 'get',
    })
}


// 删除组合科目数据接口
export const deleteCompositionSubjectApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/paramSetup/deleteGroupSubjectData/${evaluationId}`,
        method: 'get',
    })
}

// 新增或修改组合科目数据接口
export const addOrUpdateCompositionSubjectApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/paramSetup/insertOrUpdateGroupSubjectData`,
        method: 'post',
        data
    })
}

// 更新评价参数数据接口(设置完成)
export const finishParamaterSettingApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/paramSetup/updateParamSetupData`,
        method: 'post',
        data
    })
}


// 更新评价参数数据接口(编辑保存)
export const saveParamaterSettingApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/paramSetup/saveParamSetupData`,
        method: 'post',
        data
    })
}

