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 = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/queryPageListData`,
        method: 'post',
        data
    })
}

// 评价账号使用统计——年级下拉数据接口
export const reviewAccountGradeListApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/queryEvaluationGradeListData/${evaluationId}`,
        method: 'get',
    })
}


// 评价账号使用统计数据导出接口
export const reviewAccountDataExportExcelApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/progress/exportEvaluationData`,
        method: 'post',
        data,
        responseType: 'blob' 
    })
}

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