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


// 获取 评价进度统计表统计图数据接口
export const getEvaluationProgressStatisticsApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/queryCodeProgressData/${evaluationId}`,
        method: 'get',
    })
}

// 评价进度统计表统计图数据接口
export const getEvaluationAccountUseStatisticsApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/queryCodeProgressData/${evaluationId}`,
        method: 'get',
    })
}


// 开启关闭 评价任务 —— 评价进度里边的 —— 关闭后不能答题
export const openOrCloseQuestionnaireReviewTaskApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/updateProgressStatus/${evaluationId}`,
        method: 'get',
    })
}

// 调用评价完成接口
export const finishReviewProgressApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/finishEvaluationProgress/${evaluationId}`,
        method: 'get',
    })
}