用户端页面构建完成---待测试
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user