safety-eval-service-frontend/.api/safetyEval-classStudentExam.../spec.json

110 lines
4.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"openapi": "3.0.1",
"info": {
"title": "分页查询学员考试记录",
"description": "同步自 Apifox学员考试记录int64 主键按前端精度规范落为 string",
"version": "1.0.0"
},
"paths": {
"/safetyEval/classStudentExamRecord/page": {
"get": {
"summary": "分页查询学员考试记录",
"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": "classId",
"in": "query",
"description": "所属班级ID后端 Long前端按字符串保证精度",
"required": false,
"schema": { "type": "string" }
},
{
"name": "studentId",
"in": "query",
"description": "学员ID后端 Long前端按字符串保证精度",
"required": false,
"schema": { "type": "string" }
},
{
"name": "examId",
"in": "query",
"description": "试卷id后端 Long前端按字符串保证精度",
"required": false,
"schema": { "type": "string" }
},
{
"name": "passed",
"in": "query",
"description": "是否通过0-未通过1-通过)",
"required": false,
"schema": { "type": "integer" }
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/PageResponseClassStudentExamRecordVO" }
}
}
}
}
}
}
},
"components": {
"schemas": {
"PageResponseClassStudentExamRecordVO": {
"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/ClassStudentExamRecordVO" }
},
"total": { "type": "integer", "description": "总条数" }
}
},
"ClassStudentExamRecordVO": {
"type": "object",
"description": "学员考试记录",
"properties": {
"id": { "type": "string", "description": "主键" },
"studentId": { "type": "string", "description": "学员ID后端 Long前端按字符串保证精度" },
"studentName": { "type": "string", "description": "学员名称" },
"classId": { "type": "string", "description": "所属班级ID后端 Long前端按字符串保证精度" },
"paperName": { "type": "string", "description": "试卷名称" },
"paperId": { "type": "string", "description": "试卷id后端 Long前端按字符串保证精度" },
"score": { "type": "number", "description": "得分" },
"passed": { "type": "integer", "description": "是否通过0-未通过1-通过)" },
"wrongCount": { "type": "integer", "description": "错误题数" },
"accuracy": { "type": "number", "description": "正确率(百分比)" },
"startTime": { "type": "string", "description": "考试开始时间" },
"endTime": { "type": "string", "description": "考试结束时间" },
"className": { "type": "string", "description": "app: 班级名称" },
"examDurationMinutes": { "type": "integer", "description": "app: 考试时长分钟" }
}
}
}
}
}