用户端页面构建完成---待测试

This commit is contained in:
2025-12-25 21:54:52 +08:00
parent de0c7377c9
commit 7b52abfea3
13 changed files with 539 additions and 113 deletions

View File

@@ -105,6 +105,15 @@ export const quizAPI = {
api.get('/quiz/records', { params }),
};
export const examSubjectAPI = {
getSubjects: () => api.get('/exam-subjects'),
};
export const examTaskAPI = {
getTasks: () => api.get('/exam-tasks'),
getUserTasks: (userId: string) => api.get(`/exam-tasks/user/${userId}`),
};
// 管理员相关API
export const adminAPI = {
login: (data: { username: string; password: string }) => api.post('/admin/login', data),