safety-eval-service-frontend/.api/safetyEval-question-find-get/spec.json

117 lines
4.0 KiB
JSON
Raw Normal View History

2026-08-24 18:31:16 +08:00
{
"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": "选项显示顺序" }
}
}
}
}
}