url 前缀:question
post /recommend
interface recommendDTO {
courseId: number;
userId: number;
knowledgeId: Array<string>;
questionNum: number;
}
interface ResponseData {
res: [
{
id: number;
type: string;
stem: string;
options: {
[key: string]: string;
};
tags: string[];
knowledgeId: string[];
lastModified: Date;
}
];
}
{
"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"
}
}
post /answer
interface recommendDTO {
questionId: Array<number>;
}
interface ResponseData {
res: Array<{
id: number;
type: string;
stem: string;
options: {
[key: string]: string;
};
tags: string[];
knowledgeId: string[];
lastModified: Date;
answer: string;
analysis: string;
}>;
}
{
"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
}
]
}