|
@@ -9,7 +9,7 @@ function getStudentCoderExams({page, limit}) {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getStudentCoderExamsGroupByCourse() {
|
|
|
|
|
|
|
+function getStudentCoderExamsGroupByCourse(){
|
|
|
return axios.get(`${prefix}/exam/student/groupByCourse`);
|
|
return axios.get(`${prefix}/exam/student/groupByCourse`);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -24,7 +24,7 @@ function getRecommendCoderExams() {
|
|
|
return axios.get(`${prefix}/exam/recommend`);
|
|
return axios.get(`${prefix}/exam/recommend`);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getRecommendCoderExamsGroupByCourse() {
|
|
|
|
|
|
|
+function getRecommendCoderExamsGroupByCourse(){
|
|
|
return axios.get(`${prefix}/exam/recommend/groupByCourse`);
|
|
return axios.get(`${prefix}/exam/recommend/groupByCourse`);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -36,11 +36,11 @@ function getStudentCoderExamsByCourseId(courseId) {
|
|
|
return axios.get(`${prefix}/exam/student/course`, {params: {courseId,}});
|
|
return axios.get(`${prefix}/exam/student/course`, {params: {courseId,}});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getTeacherCoderExamsGroupByCourse() {
|
|
|
|
|
|
|
+function getTeacherCoderExamsGroupByCourse(){
|
|
|
return axios.get(`${prefix}/exam/teacher/groupByCourse`);
|
|
return axios.get(`${prefix}/exam/teacher/groupByCourse`);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function retrievePageProblem(page, limit, typeStr, name) {
|
|
|
|
|
|
|
+function retrievePageProblem(page, limit, typeStr, name){
|
|
|
return axios.get(`${prefix}/problem`, {
|
|
return axios.get(`${prefix}/problem`, {
|
|
|
params: {
|
|
params: {
|
|
|
page,
|
|
page,
|
|
@@ -51,7 +51,7 @@ function retrievePageProblem(page, limit, typeStr, name) {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function createCoderExam(data) {
|
|
|
|
|
|
|
+function createCoderExam(data){
|
|
|
return axios.post(`${prefix}/exam/create`, data);
|
|
return axios.post(`${prefix}/exam/create`, data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -119,7 +119,7 @@ function changeExamIsShownForStu(examId, status) {
|
|
|
return axios.post(`${prefix}/exam/${examId}/console?showConsole=${status}`);
|
|
return axios.post(`${prefix}/exam/${examId}/console?showConsole=${status}`);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function stopRecord(recordId) {
|
|
|
|
|
|
|
+function stopRecordById(recordId) {
|
|
|
return axios.put(`${prefix}/record/stop`, null, {
|
|
return axios.put(`${prefix}/record/stop`, null, {
|
|
|
params: {
|
|
params: {
|
|
|
recordId,
|
|
recordId,
|
|
@@ -156,7 +156,7 @@ const coderAPIs = {
|
|
|
getRecordByRecordId,
|
|
getRecordByRecordId,
|
|
|
getExamIsShownForStu,
|
|
getExamIsShownForStu,
|
|
|
changeExamIsShownForStu,
|
|
changeExamIsShownForStu,
|
|
|
- stopRecord,
|
|
|
|
|
|
|
+ stopRecordById,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default coderAPIs;
|
|
export default coderAPIs;
|