147 lines
6.7 KiB
JSON
147 lines
6.7 KiB
JSON
{
|
||
"openapi": "3.0.1",
|
||
"info": {
|
||
"title": "试卷考试信息查询",
|
||
"description": "同步自 Apifox 共享文档(试卷管理 / 试卷考试信息查询)",
|
||
"version": "1.0.0"
|
||
},
|
||
"paths": {
|
||
"/safetyEval/paper/paper/exam/info": {
|
||
"get": {
|
||
"summary": "试卷考试信息查询",
|
||
"tags": ["试卷管理"],
|
||
"parameters": [
|
||
{
|
||
"name": "paperId",
|
||
"in": "query",
|
||
"description": "试卷id(后端 Long,前端按字符串透传)",
|
||
"required": true,
|
||
"schema": { "type": "string" }
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/SingleResponsePaperExamInfoVO"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"schemas": {
|
||
"SingleResponsePaperExamInfoVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"success": { "type": "boolean", "description": "是否成功" },
|
||
"code": { "type": "string", "description": "响应码" },
|
||
"message": { "type": "string", "description": "响应消息" },
|
||
"errMessage": { "type": "string", "description": "错误响应消息" },
|
||
"data": {
|
||
"$ref": "#/components/schemas/PaperExamInfoVO",
|
||
"description": "响应数据"
|
||
}
|
||
}
|
||
},
|
||
"PaperExamInfoVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"paperBasicInfoVO": {
|
||
"$ref": "#/components/schemas/PaperBasicInfoVO",
|
||
"description": "试卷基本信息"
|
||
},
|
||
"questionVOList": {
|
||
"type": "array",
|
||
"description": "试题信息",
|
||
"items": { "$ref": "#/components/schemas/QuestionVO" }
|
||
}
|
||
}
|
||
},
|
||
"QuestionVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": { "type": "string", "description": "主键(后端 Long,前端按字符串保证精度)" },
|
||
"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,Apifox 显示 int64;前端按字符串保证精度)"
|
||
},
|
||
"coursewareManagementName": {
|
||
"type": "string",
|
||
"description": "关联课件管理名称"
|
||
},
|
||
"questionOptionVOList": {
|
||
"type": "array",
|
||
"description": "试题选项信息",
|
||
"items": { "$ref": "#/components/schemas/QuestionOptionVO" }
|
||
}
|
||
}
|
||
},
|
||
"QuestionOptionVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "选项ID(后端 Long,Apifox 显示 int64;前端按字符串保证精度)"
|
||
},
|
||
"questionId": {
|
||
"type": "string",
|
||
"description": "所属试题ID(后端 Long,Apifox 显示 int64;前端按字符串保证精度)"
|
||
},
|
||
"optionKey": { "type": "string", "description": "选项标识:A,B,C,D,E,F" },
|
||
"optionName": { "type": "string", "description": "选项标志名称" },
|
||
"optionText": { "type": "string", "description": "选项内容" },
|
||
"isCorrect": {
|
||
"type": "boolean",
|
||
"description": "是否正确答案:1是,0否"
|
||
},
|
||
"sortOrder": { "type": "integer", "description": "选项显示顺序" }
|
||
}
|
||
},
|
||
"PaperBasicInfoVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"description": "id(后端 Long,Apifox 显示 int64;前端按字符串保证精度)"
|
||
},
|
||
"createTime": { "type": "string", "description": "创建时间" },
|
||
"paperName": { "type": "string", "description": "试卷名称" },
|
||
"paperTotalScore": { "type": "number", "description": "试卷总分" },
|
||
"paperPassScore": { "type": "number", "description": "合格分数" },
|
||
"examTime": { "type": "integer", "description": "考试时长(分钟)" },
|
||
"status": { "type": "string", "description": "试卷状态 normal 正常" },
|
||
"paperType": {
|
||
"type": "string",
|
||
"description": "试卷类型 fixed平台试卷,config_rule规则试卷"
|
||
},
|
||
"configRule": { "type": "string", "description": "配置规则" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|