forked from hangshuo652/aurak
Initial commit: AuraK人才测评系统基础框架
## 已实现功能 - 题库管理后端API完整实现 - 模板管理页面(Settings-测评模板) - 评估统计页面 - 人才测评页面(AssessmentView) - QuestionBank前端服务层 ## 技术栈 - 后端: Node.js + NestJS + TypeORM - 前端: React + TypeScript - 容器化: Docker Compose ## 已知待完善 - 题库列表页缺少删除按钮 - 题库详情页未实现(题目管理/AI生成/审核)
This commit is contained in:
@@ -362,3 +362,44 @@ export interface CreateTemplateData {
|
||||
export interface UpdateTemplateData extends Partial<CreateTemplateData> {
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
export interface QuestionBank {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
status: 'DRAFT' | 'PENDING_REVIEW' | 'PUBLISHED' | 'REJECTED';
|
||||
templateId?: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface QuestionBankItem {
|
||||
id: string;
|
||||
bankId: string;
|
||||
questionText: string;
|
||||
questionType: 'SHORT_ANSWER' | 'MULTIPLE_CHOICE' | 'TRUE_FALSE';
|
||||
options?: string[] | null;
|
||||
correctAnswer?: string | null;
|
||||
keyPoints: string[];
|
||||
difficulty: 'STANDARD' | 'ADVANCED' | 'SPECIALIST';
|
||||
dimension: 'PROMPT' | 'LLM' | 'IDE' | 'DEV_PATTERN' | 'WORK_CAPABILITY';
|
||||
basis?: string | null;
|
||||
status: 'PENDING_REVIEW' | 'PUBLISHED';
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface CreateQuestionBankData {
|
||||
name: string;
|
||||
description?: string;
|
||||
templateId?: string;
|
||||
}
|
||||
|
||||
export interface CreateQuestionBankItemData {
|
||||
questionText: string;
|
||||
questionType: 'SHORT_ANSWER' | 'MULTIPLE_CHOICE' | 'TRUE_FALSE';
|
||||
options?: string[];
|
||||
correctAnswer?: string;
|
||||
keyPoints: string[];
|
||||
difficulty: 'STANDARD' | 'ADVANCED' | 'SPECIALIST';
|
||||
dimension: 'PROMPT' | 'LLM' | 'IDE' | 'DEV_PATTERN' | 'WORK_CAPABILITY';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user