import request from '../utils/request.ts'


let studentPrefix = import.meta.env.VITE_API_STUDENT_PRE 


// 查询评价试卷数据(整卷填写)
export const getEvaluationQuestionDataApi = (data:any) => {
  return request({
    url: `${studentPrefix}/api/v1/assessment/center/evaluation/queryEvaluationQuestionData`,
    method: 'post',
    data
  })
}

// 查询评价试卷数据(按题填写)
export const getEvaluationQuestionDataSplitApi = (data:any) => {
   return request({
    url: `${studentPrefix}/api/v1/assessment/center/evaluation/queryEvaluationManyQuestionData`,
    method: 'post',
    data
  })
}


// 保存评价试卷数据(整卷填写)
export const saveEvaluationQuestionDataApi = (data:any) => {
    return request({
        url: `${studentPrefix}/api/v1/assessment/center/evaluation/saveStudentEvaluationAnswer`,
        method: 'post',
        data
    })
}


// 保存评价试卷数据(按题填写)
export const saveEvaluationQuestionDataSplitApi = (data:any) => {
    return request({
        url: `${studentPrefix}/api/v1/assessment/center/evaluation/saveStudentEvaluationQuestionData`,
        method: 'post',
        data
    })
}