You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
3.2 KiB
44 lines
3.2 KiB
"use strict";
|
|
const uni_modules_uviewPlus_index = require("../uni_modules/uview-plus/index.js");
|
|
const loginApi = (data) => uni_modules_uviewPlus_index.http.post("token/login", data);
|
|
const questbanktypeApi = (params = {}) => uni_modules_uviewPlus_index.http.get("idex/questbanktype/list", { params });
|
|
const startQuestionApi = (data) => uni_modules_uviewPlus_index.http.post("questionBank/startQuestion", data);
|
|
const submitAnswerResultApi = (data) => uni_modules_uviewPlus_index.http.post("questionBank/submitAnswerResult", data);
|
|
const getQuestionApi = (data) => uni_modules_uviewPlus_index.http.post("questionBank/getQuestion", data);
|
|
const questionCommentAdd = (data) => uni_modules_uviewPlus_index.http.post("questionComment/add", data);
|
|
const indexNoticeApi = (subject) => uni_modules_uviewPlus_index.http.get("idex/notice-" + subject);
|
|
const indexAdApi = (subject) => uni_modules_uviewPlus_index.http.get("idex/ad-" + subject);
|
|
const indexAdCount = (data) => uni_modules_uviewPlus_index.http.get(`idex/count-${data.subject}-${data.carType}`, { params: { city: data.city } });
|
|
const examProcessInfo = (subject) => uni_modules_uviewPlus_index.http.get(`idex/examProcessInfo-${subject}`);
|
|
const columnPid = (pid, city) => uni_modules_uviewPlus_index.http.get(`idex/column-${pid}-${city}`, { params: { city } });
|
|
const columnFid = (data) => uni_modules_uviewPlus_index.http.get(`idex/${data.type}-column-${data.stepType}-${data.carType}`, { params: { city: data.city } });
|
|
const questionWrongColle = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/dealCollection", data);
|
|
const deleteWrongOrCol = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/deleteWrongOrCol", data);
|
|
const myWrongQuestion = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/myWrongQuestion", data);
|
|
const questionSubmenu = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/submenu", data);
|
|
const findQuestionList = (data) => uni_modules_uviewPlus_index.http.post("questionWrong/findQuestionList", data);
|
|
const questionExam = (data) => uni_modules_uviewPlus_index.http.get(`questionExam/exam-${data.stepType}-${data.carType}`);
|
|
const startExam = (data) => uni_modules_uviewPlus_index.http.post("questionExam/startExam", data);
|
|
const startExamDo = (data) => uni_modules_uviewPlus_index.http.post("questionExam/saveExam.do", data);
|
|
const idexExam = (data) => uni_modules_uviewPlus_index.http.get(`idex/exam-${data.stepType}-${data.carType}`);
|
|
exports.columnFid = columnFid;
|
|
exports.columnPid = columnPid;
|
|
exports.deleteWrongOrCol = deleteWrongOrCol;
|
|
exports.examProcessInfo = examProcessInfo;
|
|
exports.findQuestionList = findQuestionList;
|
|
exports.getQuestionApi = getQuestionApi;
|
|
exports.idexExam = idexExam;
|
|
exports.indexAdApi = indexAdApi;
|
|
exports.indexAdCount = indexAdCount;
|
|
exports.indexNoticeApi = indexNoticeApi;
|
|
exports.loginApi = loginApi;
|
|
exports.myWrongQuestion = myWrongQuestion;
|
|
exports.questbanktypeApi = questbanktypeApi;
|
|
exports.questionCommentAdd = questionCommentAdd;
|
|
exports.questionExam = questionExam;
|
|
exports.questionSubmenu = questionSubmenu;
|
|
exports.questionWrongColle = questionWrongColle;
|
|
exports.startExam = startExam;
|
|
exports.startExamDo = startExamDo;
|
|
exports.startQuestionApi = startQuestionApi;
|
|
exports.submitAnswerResultApi = submitAnswerResultApi;
|