|
@@ -14,10 +14,10 @@ post /recommend
|
|
|
|
|
|
|
|
```ts
|
|
```ts
|
|
|
interface recommendDTO {
|
|
interface recommendDTO {
|
|
|
- courseId: number;
|
|
|
|
|
- userId: number;
|
|
|
|
|
- knowledgeId: Array<string>;
|
|
|
|
|
- questionNum: number;
|
|
|
|
|
|
|
+ courseId: number; // 课程信息
|
|
|
|
|
+ userId: number; // 学生id
|
|
|
|
|
+ knowledgeId: Array<string>; // 知识点 id
|
|
|
|
|
+ questionNum: number; // 问题数量
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
@@ -28,13 +28,14 @@ interface ResponseData {
|
|
|
res: [
|
|
res: [
|
|
|
{
|
|
{
|
|
|
id: number;
|
|
id: number;
|
|
|
- type: string;
|
|
|
|
|
- stem: string;
|
|
|
|
|
- options: {
|
|
|
|
|
|
|
+ type: string; // 题目类型,目前只有choice
|
|
|
|
|
+ stem: string; // 题目描述,题干
|
|
|
|
|
+ options: // 选项
|
|
|
|
|
+ {
|
|
|
[key: string]: string;
|
|
[key: string]: string;
|
|
|
};
|
|
};
|
|
|
- tags: string[];
|
|
|
|
|
- knowledgeId: string[];
|
|
|
|
|
|
|
+ tags: string[]; // 标签
|
|
|
|
|
+ knowledgeId: string[]; // 知识点 id
|
|
|
lastModified: Date;
|
|
lastModified: Date;
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|