From 9a37ff49bc253838352059277e6192ec3e445408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=BC=A0?= <2091066548@qq.com> Date: Wed, 3 Sep 2025 10:07:28 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=AD=A6=E4=B9=A0=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E5=AF=B9=E6=8E=A5=E5=92=8C=E9=80=BB=E8=BE=91=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 6 +++--- src/api/modules/exam.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 62eb5c1..34045fd 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -188,13 +188,13 @@ export const API_ENDPOINTS = { EXAM: { // 题库管理 REPO_CREATE: '/aiol/repo/courseAdd', - REPO_LIST: '/aiol/repo/repoList', + REPO_LIST: '/aiol/aiolRepo/repoList', REPO_DELETE: '/gen/repo/repo/delete', REPO_EDIT: '/gen/repo/repo/edit', // 题目管理 - QUESTION_LIST: '/aiol/repo/questionList/:repoId', - QUESTION_DETAIL: '/aiol/repo/repoList/:questionId', + QUESTION_LIST: '/aiol/aiolRepo/questionList/:repoId', + QUESTION_DETAIL: '/aiol/aiolRepo/repoList/:questionId', QUESTION_ADD: '/gen/question/question/add', QUESTION_EDIT: '/gen/question/question/edit', QUESTION_DELETE: '/gen/question/question/delete', diff --git a/src/api/modules/exam.ts b/src/api/modules/exam.ts index f6b02d7..a94acbe 100644 --- a/src/api/modules/exam.ts +++ b/src/api/modules/exam.ts @@ -38,7 +38,7 @@ export class ExamApi { * 获取课程题库 */ static async getCourseRepoList(): Promise> { - const response = await ApiRequest.get<{ result: Repo[] }>(`/aiol/repo/repoList`) + const response = await ApiRequest.get<{ result: Repo[] }>(`/aiol/aiolRepo/repoList`) console.log('✅ 获取课程题库列表成功:', response) return response } @@ -107,7 +107,7 @@ export class ExamApi { */ static async getQuestionsByRepo(repoId: string): Promise> { console.log('🚀 查询题库下题目:', { repoId }) - const response = await ApiRequest.get(`/biz/repo/questionList/${repoId}`) + const response = await ApiRequest.get(`/aiol/aiolRepo/questionList/${repoId}`) console.log('✅ 查询题库下题目成功:', response) return response }