|
@@ -4,7 +4,7 @@
|
|
|
>
|
|
>
|
|
|
> 示例:**https://xxxxxxxxx/rest/tq/recommend**
|
|
> 示例:**https://xxxxxxxxx/rest/tq/recommend**
|
|
|
|
|
|
|
|
-## 推荐
|
|
|
|
|
|
|
+## 得到推荐题目
|
|
|
|
|
|
|
|
```http
|
|
```http
|
|
|
post /rest/tq/recommend
|
|
post /rest/tq/recommend
|
|
@@ -17,7 +17,7 @@ interface recommendDTO {
|
|
|
courseId: number;
|
|
courseId: number;
|
|
|
userId: number;
|
|
userId: number;
|
|
|
knowledgeId: Array<string>;
|
|
knowledgeId: Array<string>;
|
|
|
- questionsNum: number;
|
|
|
|
|
|
|
+ questionNum: number;
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
@@ -65,3 +65,64 @@ interface ResponseData{
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
`````
|
|
`````
|
|
|
|
|
+
|
|
|
|
|
+## 得到题目答案与解析
|
|
|
|
|
+
|
|
|
|
|
+```http
|
|
|
|
|
+post /rest/tq/recommend
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+### Parameters
|
|
|
|
|
+
|
|
|
|
|
+```ts
|
|
|
|
|
+interface recommendDTO {
|
|
|
|
|
+ questionId: Array<number>;
|
|
|
|
|
+}
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+### Response
|
|
|
|
|
+
|
|
|
|
|
+`````ts
|
|
|
|
|
+interface ResponseData{
|
|
|
|
|
+ res:[{
|
|
|
|
|
+ id: number;
|
|
|
|
|
+ type: string;
|
|
|
|
|
+ stem: string;
|
|
|
|
|
+ options: {
|
|
|
|
|
+ [key: string]: string;
|
|
|
|
|
+ };
|
|
|
|
|
+ tags: string[];
|
|
|
|
|
+ knowledgeId: string[];
|
|
|
|
|
+ lastModified: Date;
|
|
|
|
|
+ answer: string;
|
|
|
|
|
+ analysis: string;
|
|
|
|
|
+ }]
|
|
|
|
|
+}
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+### Example Response
|
|
|
|
|
+
|
|
|
|
|
+````json
|
|
|
|
|
+{
|
|
|
|
|
+"res":{
|
|
|
|
|
+"id": 11,
|
|
|
|
|
+"type": "choice",
|
|
|
|
|
+"stem": "这是一次测试",
|
|
|
|
|
+"options":{
|
|
|
|
|
+"A": "2k-l > n + k",
|
|
|
|
|
+"B": "2n-l <= n + k",
|
|
|
|
|
+"C": "n = k",
|
|
|
|
|
+"D": "n-l <= k"
|
|
|
|
|
+},
|
|
|
|
|
+"tags":[
|
|
|
|
|
+"test",
|
|
|
|
|
+"ok"
|
|
|
|
|
+],"knowledgeId":[
|
|
|
|
|
+"A.B",
|
|
|
|
|
+"C.D"
|
|
|
|
|
+],
|
|
|
|
|
+"lastModified": "2019-12-30 18:12:13",
|
|
|
|
|
+"tq_id": 11
|
|
|
|
|
+}
|
|
|
|
|
+}
|
|
|
|
|
+`````
|