feat:学习进度对接和逻辑计算
This commit is contained in:
parent
44e734b50c
commit
9a37ff49bc
@ -188,13 +188,13 @@ export const API_ENDPOINTS = {
|
|||||||
EXAM: {
|
EXAM: {
|
||||||
// 题库管理
|
// 题库管理
|
||||||
REPO_CREATE: '/aiol/repo/courseAdd',
|
REPO_CREATE: '/aiol/repo/courseAdd',
|
||||||
REPO_LIST: '/aiol/repo/repoList',
|
REPO_LIST: '/aiol/aiolRepo/repoList',
|
||||||
REPO_DELETE: '/gen/repo/repo/delete',
|
REPO_DELETE: '/gen/repo/repo/delete',
|
||||||
REPO_EDIT: '/gen/repo/repo/edit',
|
REPO_EDIT: '/gen/repo/repo/edit',
|
||||||
|
|
||||||
// 题目管理
|
// 题目管理
|
||||||
QUESTION_LIST: '/aiol/repo/questionList/:repoId',
|
QUESTION_LIST: '/aiol/aiolRepo/questionList/:repoId',
|
||||||
QUESTION_DETAIL: '/aiol/repo/repoList/:questionId',
|
QUESTION_DETAIL: '/aiol/aiolRepo/repoList/:questionId',
|
||||||
QUESTION_ADD: '/gen/question/question/add',
|
QUESTION_ADD: '/gen/question/question/add',
|
||||||
QUESTION_EDIT: '/gen/question/question/edit',
|
QUESTION_EDIT: '/gen/question/question/edit',
|
||||||
QUESTION_DELETE: '/gen/question/question/delete',
|
QUESTION_DELETE: '/gen/question/question/delete',
|
||||||
|
@ -38,7 +38,7 @@ export class ExamApi {
|
|||||||
* 获取课程题库
|
* 获取课程题库
|
||||||
*/
|
*/
|
||||||
static async getCourseRepoList(): Promise<ApiResponseWithResult<Repo[]>> {
|
static async getCourseRepoList(): Promise<ApiResponseWithResult<Repo[]>> {
|
||||||
const response = await ApiRequest.get<{ result: Repo[] }>(`/aiol/repo/repoList`)
|
const response = await ApiRequest.get<{ result: Repo[] }>(`/aiol/aiolRepo/repoList`)
|
||||||
console.log('✅ 获取课程题库列表成功:', response)
|
console.log('✅ 获取课程题库列表成功:', response)
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
@ -107,7 +107,7 @@ export class ExamApi {
|
|||||||
*/
|
*/
|
||||||
static async getQuestionsByRepo(repoId: string): Promise<ApiResponse<Question[]>> {
|
static async getQuestionsByRepo(repoId: string): Promise<ApiResponse<Question[]>> {
|
||||||
console.log('🚀 查询题库下题目:', { repoId })
|
console.log('🚀 查询题库下题目:', { repoId })
|
||||||
const response = await ApiRequest.get<Question[]>(`/biz/repo/questionList/${repoId}`)
|
const response = await ApiRequest.get<Question[]>(`/aiol/aiolRepo/questionList/${repoId}`)
|
||||||
console.log('✅ 查询题库下题目成功:', response)
|
console.log('✅ 查询题库下题目成功:', response)
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user