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

123 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/classStudentLearningRecord/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": "courseId",
"in": "query",
"description": "课程ID后端 Long前端按字符串保证精度",
"required": false,
"schema": { "type": "string" }
},
{
"name": "studyStatus",
"in": "query",
"description": "学习状态0-未学习1-学习中2-已完成",
"required": false,
"schema": { "type": "integer" }
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageResponseClassStudentLearningRecordVO"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"PageResponseClassStudentLearningRecordVO": {
"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/ClassStudentLearningRecordVO"
}
},
"total": { "type": "integer", "description": "总条数" }
}
},
"ClassStudentLearningRecordVO": {
"type": "object",
"description": "学员学习记录(节点级)",
"properties": {
"id": { "type": "string", "description": "主键" },
"studentId": {
"type": "string",
"description": "学员ID后端 Long前端按字符串保证精度"
},
"classId": {
"type": "string",
"description": "所属班级ID后端 Long前端按字符串保证精度"
},
"courseId": {
"type": "string",
"description": "课程ID后端 Long前端按字符串保证精度"
},
"courseName": { "type": "string", "description": "课程名称" },
"coursewareName": { "type": "string", "description": "小节点名称" },
"studyStatus": {
"type": "integer",
"description": "学习状态0-未学习1-学习中2-已完成"
},
"learningProgress": { "type": "string", "description": "学习情况" },
"startTime": { "type": "string", "description": "开始学习时间" },
"endTime": { "type": "string", "description": "完成时间" },
"lastWatchTime": { "type": "string", "description": "最近观看时间" }
}
}
}
}
}