import http from "@/utils/request"; export function getCertificateList(params) { return http.get("/topic/getUserCertificate", params, { requireAuth: true }); } export function getTestPaperDetails(id) { return http.get("/topic/testPaperDetails", { id }, { requireAuth: true }); } export function getSituation(id) { return http.get("/topic/situationRecord", { id }, { requireAuth: true }); } export function getAnswer(params) { return http.get("/topic/userAnswer", params, { requireAuth: true }); } export function getAnswerAgain(params) { return http.get("/topic/takeTheTestAgain", params, { requireAuth: true }); } export function getAnswerContinue(params) { return http.get("/topic/continueAnswer", params, { requireAuth: true }); } export function getQuestion(params) { return http.get("/topic/testPaperQuestions", params, { requireAuth: true }); } export function submitQuestions(data) { return http.post("/topic/submitQuestions", data, { requireAuth: true }); } export function getAnswerSheet(params) { return http.get("/topic/answerSheet", params, { requireAuth: true }); } export function submitTestPaper(data) { return http.post("/topic/submitTestPaper", data, { requireAuth: true }); } export function getWrongBank(parmas) { return http.post("/topic/userWrongBank", parmas, { requireAuth: true }); } export function getOneWrongRank(id) { return http.get("/topic/oneWrongBank", { id }, { requireAuth: true }); } export function submitWrongBank(data) { return http.post("/topic/submitWrongBank", data, { requireAuth: true }); } export function getTestPaper(params) { return http.get("/topic/myTestPaper", params, { requireAuth: true }); } export function getExaminationResult(params) { return http.get("/topic/examinationResults", params, { requireAuth: true }); } export function getQuestionDetail(test_id) { return http.get("/topic/question_detail_api", { test_id }, { requireAuth: true }); } export function getInspect(test_id) { return http.get("/topic/inspect", { test_id }, { requireAuth: true }); } export function getTheCertificate(test_id) { return http.get("/topic/getTheCertificate", { test_id }, { requireAuth: true }); } export function getCertificateInfo(params) { return http.get("/topic/viewCertificate", params, { requireAuth: true }); } export function getTestPaperCate(params){ return http.get("/topic/testPaperCate", params, { requireAuth: false }); } export function getPracticeList(params){ return http.get("/topic/practiceList", params, { requireAuth: false }); } export function userWrongBankIdArr(params){ return http.post("/topic/userWrongBankIdArr", params, { requireAuth: true }); } export function situationRecord(params){ return http.get("/topic/situationRecord", params, { requireAuth: true }); }