forked from hangshuo652/aurak
P2全部完成: 尝试限制/预约时段/题目回顾/随机排序
后端: - assessment-template entity: attemptLimit/scheduledStart/End/reviewMode/shuffleQuestions - DTO 更新: 新增 P2 字段验证 - startSession: 尝试次数检查、预约时段检查、题目随机排序 - getSessionState: reviewMode 控制答案可见性 - 新增 GET /assessment/:id/review 回顾端点 前端: - AssessmentTemplateManager: 新增尝试次数/答题回顾/题目排序/预约时段配置 - AssessmentView: 答题回顾按钮(完成页)+提交确认弹窗+标记回头功能 - types.ts: 新增 P2 字段类型 - assessmentService: 新增 getReview 方法 - 进度导航点: 可视化题序+标记状态 测试 20项全部通过 + 系统测试 142项全部通过 ✅ Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -147,6 +147,12 @@ export class AssessmentService {
|
||||
return data;
|
||||
}
|
||||
|
||||
/** P2: Get assessment review data (correct answers) */
|
||||
async getReview(sessionId: string): Promise<any> {
|
||||
const { data } = await apiClient.get<any>(`/assessment/${sessionId}/review`);
|
||||
return data;
|
||||
}
|
||||
|
||||
async nextQuestion(sessionId: string): Promise<{ success: boolean }> {
|
||||
const { data } = await apiClient.post<{ success: boolean }>(`/assessment/${sessionId}/next-question`, {});
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user