123 lines
4.2 KiB
JSON
123 lines
4.2 KiB
JSON
{
|
||
"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": "最近观看时间" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|