forked from wangziqi/gongxue-base
feat: add student learning flow pages
This commit is contained in:
@@ -149,9 +149,9 @@ export async function loadCollectionQuestions(collectionId: string, limit = 200)
|
||||
});
|
||||
}
|
||||
|
||||
export async function loadQuestions(query: { entryId?: string; contentNodeId?: string; collectionId?: string; limit?: number }) {
|
||||
export async function loadQuestions(query: { entryId?: string; contentNodeId?: string; collectionId?: string; questionIds?: string[]; limit?: number }) {
|
||||
return apiRequest<{ items?: import('./learning').QuestionItem[] }>('/api/catalog/questions', {
|
||||
query: { ...query, limit: query.limit || 200 },
|
||||
query: { ...query, questionIds: query.questionIds?.join(','), limit: query.limit || 200 },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user