import request from "@/utils/request";
import {BASE_URL} from '@/config'


export const getExamRanking = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamsCompare`,
        data:{
            ...data,
            stage:3
        }
    });
}


export const getPercentageRanking = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamsCompareNumRate`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getPercentageRankingView = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamsCompareNumRateView`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getParamsRanking = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/compare/params/analysis`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getKnowledgeRanking = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamsSubjectKnowledge`,
        data:{
            ...data,
            stage:3
        }
    });
}


export const getKnowledgeRankingAnalysis = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/leader/analysisExamSubjectQuestionDifficultByKnowLedgeV2`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getOnlineRankingAnalysis = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/compare/score-line/analysis`,
        data:{
            ...data,
            stage:3
        }
    });
}

export const getOnlineAnalysis = (data) =>{
    return request({
        method: 'post',
        url: `${BASE_URL}/compare/online/analysis`,
        data:{
            ...data,
            stage:3
        }
    });
}