117 lines
4.0 KiB
JSON
117 lines
4.0 KiB
JSON
|
|
{
|
|||
|
|
"openapi": "3.0.1",
|
|||
|
|
"info": {
|
|||
|
|
"title": "查询习题",
|
|||
|
|
"description": "同步自 Apifox(试题管理),int64 主键按前端精度规范落为 string",
|
|||
|
|
"version": "1.0.0"
|
|||
|
|
},
|
|||
|
|
"paths": {
|
|||
|
|
"/safetyEval/question/find": {
|
|||
|
|
"get": {
|
|||
|
|
"summary": "查询习题",
|
|||
|
|
"tags": ["试题管理"],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "questionId",
|
|||
|
|
"in": "query",
|
|||
|
|
"description": "试题id(后端 Long / Apifox 显示 int64;前端按字符串保证精度)",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": { "type": "string" }
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/SingleResponseQuestionVO"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"components": {
|
|||
|
|
"schemas": {
|
|||
|
|
"SingleResponseQuestionVO": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"success": { "type": "boolean", "description": "是否成功" },
|
|||
|
|
"code": { "type": "string", "description": "响应码" },
|
|||
|
|
"message": { "type": "string", "description": "响应消息" },
|
|||
|
|
"errMessage": { "type": "string", "description": "错误响应消息" },
|
|||
|
|
"data": { "$ref": "#/components/schemas/QuestionVO" }
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"QuestionVO": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": { "type": "string", "description": "主键" },
|
|||
|
|
"createTime": { "type": "string", "description": "创建时间" },
|
|||
|
|
"title": { "type": "string", "description": "题目内容" },
|
|||
|
|
"questionType": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "题型:single单选/multiple多选/judge判断/fill填空/short简答"
|
|||
|
|
},
|
|||
|
|
"answer": { "type": "string", "description": "参考答案:逗号隔开" },
|
|||
|
|
"answerQuestionOptionIds": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "答案选项id 多个逗号隔开"
|
|||
|
|
},
|
|||
|
|
"childrenQuestionIds": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "子题 多个逗号分割"
|
|||
|
|
},
|
|||
|
|
"score": { "type": "number", "description": "分值" },
|
|||
|
|
"analysis": { "type": "string", "description": "答案解析" },
|
|||
|
|
"tagType": { "type": "string", "description": "标签类型" },
|
|||
|
|
"coursewareManagementId": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "关联课件管理id(后端 Long;前端按字符串保证精度)"
|
|||
|
|
},
|
|||
|
|
"coursewareManagementName": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "关联课件管理名称"
|
|||
|
|
},
|
|||
|
|
"questionOptionVOList": {
|
|||
|
|
"type": "array",
|
|||
|
|
"description": "试题选项信息",
|
|||
|
|
"items": { "$ref": "#/components/schemas/QuestionOptionVO" }
|
|||
|
|
},
|
|||
|
|
"source": {
|
|||
|
|
"type": "integer",
|
|||
|
|
"description": "来源(1:管理员添加,2:三方添加)"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"QuestionOptionVO": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "选项ID(后端 Long;前端按字符串保证精度)"
|
|||
|
|
},
|
|||
|
|
"questionId": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "所属试题ID(后端 Long;前端按字符串保证精度)"
|
|||
|
|
},
|
|||
|
|
"optionKey": {
|
|||
|
|
"type": "string",
|
|||
|
|
"description": "选项标识:A,B,C,D,E,F"
|
|||
|
|
},
|
|||
|
|
"optionName": { "type": "string", "description": "选项标志名称" },
|
|||
|
|
"optionText": { "type": "string", "description": "选项内容" },
|
|||
|
|
"isCorrect": {
|
|||
|
|
"type": "boolean",
|
|||
|
|
"description": "是否正确答案:true是,false否"
|
|||
|
|
},
|
|||
|
|
"sortOrder": { "type": "integer", "description": "选项显示顺序" }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|