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.
jwl-applet/src/jtools/api/question.js

63 lines
1.2 KiB

2 years ago
import request from '../request/index.js';
export function queryQuestion(data) {
return request({
url: 'driver-api/tdQuestion/queryQuestion',
method: 'POST',
data,
2 years ago
noToken: true
2 years ago
});
2 years ago
}
export function questionCategory(data) {
return request({
url: 'driver-api/tdQuestion/questionCategory',
method: 'POST',
2 years ago
data,
noToken: true
2 years ago
});
}
export function getTestQuestion(data) {
return request({
url: 'driver-api/tdQuestion/getTestQuestion',
method: 'POST',
2 years ago
data
2 years ago
});
}
export function submitTest(data) {
return request({
url: 'driver-api/tdQuestionTest/testSubmit',
method: 'POST',
2 years ago
data
2 years ago
});
2 years ago
}
export function testTotal(data) {
return request({
url: 'driver-api/tdQuestionTest/testTotal',
method: 'POST',
2 years ago
data
2 years ago
});
}
//获取配置
2 years ago
export function querySysConfigList(carTypeId, configKey) {
2 years ago
return request({
2 years ago
url: 'driver-api/tdSysConfigList/querySysConfigList?configKey=' + configKey + '&carTypeId=' + carTypeId,
2 years ago
method: 'GET',
noToken: true
2 years ago
});
}
//获取项目列表 (考试项目和基础操作)
export function queryProjectList(data) {
return request({
url: 'driver-api/tdTestProject/queryProjectList',
2 years ago
method: 'POST',
2 years ago
data,
noToken:true
2 years ago
});
}