113 lines
3.9 KiB
JSON
113 lines
3.9 KiB
JSON
{
|
||
"openapi": "3.0.1",
|
||
"info": {
|
||
"title": "分页试题信息,根据课件或者试题id",
|
||
"description": "同步自 Apifox(试题管理),int64 主键按前端精度规范落为 string",
|
||
"version": "1.0.0"
|
||
},
|
||
"paths": {
|
||
"/safetyEval/question/page/courseware": {
|
||
"get": {
|
||
"summary": "分页试题信息,根据课件或者试题id",
|
||
"tags": ["试题管理"],
|
||
"parameters": [
|
||
{
|
||
"name": "current",
|
||
"in": "query",
|
||
"description": "当前页(默认1)",
|
||
"required": false,
|
||
"schema": { "type": "integer", "default": 1 }
|
||
},
|
||
{
|
||
"name": "size",
|
||
"in": "query",
|
||
"description": "每页条数(默认10)",
|
||
"required": false,
|
||
"schema": { "type": "integer", "default": 10 }
|
||
},
|
||
{
|
||
"name": "coursewareManagementId",
|
||
"in": "query",
|
||
"description": "课件id(后端 Long / Apifox 显示 int64;前端按字符串保证精度)",
|
||
"required": true,
|
||
"schema": { "type": "string" }
|
||
},
|
||
{
|
||
"name": "paperType",
|
||
"in": "query",
|
||
"description": "试卷类型 fixed平台试卷,config_rule规则试卷",
|
||
"required": false,
|
||
"schema": { "type": "string" }
|
||
},
|
||
{
|
||
"name": "title",
|
||
"in": "query",
|
||
"description": "题干",
|
||
"required": false,
|
||
"schema": { "type": "string" }
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/PageResponseQuestionCoursewareVO"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"schemas": {
|
||
"PageResponseQuestionCoursewareVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"success": { "type": "boolean", "description": "是否成功" },
|
||
"code": { "type": "string", "description": "响应码" },
|
||
"message": { "type": "string", "description": "响应消息" },
|
||
"errMessage": { "type": "string", "description": "错误响应消息" },
|
||
"data": {
|
||
"type": "array",
|
||
"description": "响应数据",
|
||
"items": { "$ref": "#/components/schemas/QuestionCoursewareVO" }
|
||
},
|
||
"total": { "type": "integer", "description": "总条数" }
|
||
}
|
||
},
|
||
"QuestionCoursewareVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "试题id(后端 Long / Apifox 显示 int64;前端按字符串保证精度)"
|
||
},
|
||
"title": { "type": "string", "description": "题干" },
|
||
"score": { "type": "number", "description": "分值" },
|
||
"answerQuestionOptionIds": {
|
||
"type": "string",
|
||
"description": "答案选项id,多个逗号隔开"
|
||
},
|
||
"answer": { "type": "string", "description": "答案选项,多个逗号隔开" },
|
||
"analysis": { "type": "string", "description": "答案解析" },
|
||
"questionType": {
|
||
"type": "string",
|
||
"description": "题型:single单选/multiple多选/judge判断"
|
||
},
|
||
"tagType": { "type": "string", "description": "标签类型" },
|
||
"questionNum": { "type": "integer", "description": "试题号" },
|
||
"coursewareName": { "type": "string", "description": "关联课件名称" },
|
||
"coursewareManagementId": {
|
||
"type": "string",
|
||
"description": "关联课件id(后端 Long / Apifox 显示 int64;前端按字符串保证精度)"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|