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

// 查询评价账号列表数据
export const getReviewAccountListApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/account/queryEvaluationAccount`,
        method: 'post',
        data
    })
}

// 生成评价码接口
export const generateReviewCodeListApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/account/updateEvaluationAccount`,
        method: 'post',
        data
    })
}

// 评价账号完成接口
export const finishReviewAccountApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/account/finishAccount/${evaluationId}`,
        method: 'get',
    })
}

// 评价账号页面查询年级班级下拉数据
export const getGradeAndClassListApi = (evaluationId:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/account/queryGradeAndClassData/${evaluationId}`,
        method: 'get',
    })
}


// 导入评价账号配置数据
export const  importReviewAccountDataApi = (data:any,routeData:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/account/importAccountData/${routeData.evaluationId}/${routeData.gender}`,
        method: 'post',
        data
    })
}


// 更新评价账号数据接口
export const  updateReviewAccountDataApi = (data:any) => {
    return request({
        url: `${teacherPrefix}/api/v1/account/updateAccountData`,
        method: 'post',
        data
    })
}
