From 3a1933de583f2ebb2bfd6c9f2960f748fe8c3462 Mon Sep 17 00:00:00 2001 From: 黄何裕 <1053952480@qq.com> Date: 星期五, 12 七月 2024 17:40:26 +0800 Subject: [PATCH] “个人中心开发” --- src/api/modules/exam.js | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/api/modules/exam.js b/src/api/modules/exam.js index 2d4d7e4..bf3fab4 100644 --- a/src/api/modules/exam.js +++ b/src/api/modules/exam.js @@ -1,10 +1,17 @@ import service from "@/api"; - -export const getExamList = () => { - return service.get('/api/v1/getExamList'); +export const getExamList = (postData = {examName: ''}) => { + return service.post('/api/student/exam/page',postData); } -export const getExamInfo = () => { - return service.get('/api/v1/getExamInfo'); +export const getExamInfo = (id) => { + return service.post('/api/student/exam/start/' + id); +} + +export const submitExam = (postData) => { + return service.post('/api/student/exam/submit', postData); +} + +export const saveExam = (postData) => { + return service.post('/api/student/exam/timing', postData); } \ No newline at end of file -- Gitblit v1.8.0