|
@@ -2,18 +2,37 @@ import { get, post } from '@/utils/request'
|
|
|
|
|
|
|
|
const examApi = {
|
|
const examApi = {
|
|
|
getExamSubject: '/api/content/exam/subject',
|
|
getExamSubject: '/api/content/exam/subject',
|
|
|
- postExamPaper: '/api/content/exam/paper',
|
|
|
|
|
|
|
+ getExamSubjectKV: '/api/content/exam/subject/kv',
|
|
|
getExamQuestion: '/api/content/exam/question',
|
|
getExamQuestion: '/api/content/exam/question',
|
|
|
|
|
+ getExamQuestion1: '/api/content/exam/question/1',
|
|
|
|
|
+ postExamQuestion: '/api/content/exam/question',
|
|
|
|
|
+ postExamPaper: '/api/content/exam/paper',
|
|
|
getExamResult: '/api/content/exam/result',
|
|
getExamResult: '/api/content/exam/result',
|
|
|
getExamPapers: '/api/content/exam/paper',
|
|
getExamPapers: '/api/content/exam/paper',
|
|
|
getExamPaperScore: '/api/content/exam/paper/score',
|
|
getExamPaperScore: '/api/content/exam/paper/score',
|
|
|
getExam: '/api/content/exam'
|
|
getExam: '/api/content/exam'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export function getExamSubjects() {
|
|
|
|
|
|
|
+export function getExamSubject() {
|
|
|
return get(examApi.getExamSubject)
|
|
return get(examApi.getExamSubject)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export function getExamSubjectKV() {
|
|
|
|
|
+ return get(examApi.getExamSubjectKV)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export function getExamQuestion() {
|
|
|
|
|
+ return get(examApi.getExamQuestion1)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export function getExamQuestion1(questionId) {
|
|
|
|
|
+ return get(examApi.getExamQuestion1 + '/' + questionId)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export function postExamQuestion(data) {
|
|
|
|
|
+ return post(examApi.postExamQuestion, data)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export function getExams(pageNumber) {
|
|
export function getExams(pageNumber) {
|
|
|
return get(examApi.getExam)
|
|
return get(examApi.getExam)
|
|
|
}
|
|
}
|