65 lines
3.0 KiB
JSON
65 lines
3.0 KiB
JSON
{
|
||
"openapi": "3.0.1",
|
||
"info": {
|
||
"title": "分页查询班级课程",
|
||
"version": "1.0.0",
|
||
"description": "同步自 Apifox 项目(api-503642493),班级课程"
|
||
},
|
||
"paths": {
|
||
"/safetyEval/classCourse/page": {
|
||
"get": {
|
||
"summary": "分页查询班级课程",
|
||
"tags": ["班级课程"],
|
||
"parameters": [
|
||
{ "name": "current", "in": "query", "description": "当前页(默认1)", "required": false, "schema": { "type": "integer" } },
|
||
{ "name": "size", "in": "query", "description": "每页条数(默认10)", "required": false, "schema": { "type": "integer" } },
|
||
{ "name": "classId", "in": "query", "description": "所属班级ID(后端 Long;前端按字符串传递保证精度)", "required": false, "schema": { "type": "string" } },
|
||
{ "name": "courseName", "in": "query", "description": "课程名称", "required": false, "schema": { "type": "string" } },
|
||
{ "name": "courseId", "in": "query", "description": "课程id(后端 Long;前端按字符串传递保证精度)", "required": false, "schema": { "type": "string" } }
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": { "$ref": "#/components/schemas/PageResponseClassCourseVO" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"schemas": {
|
||
"PageResponseClassCourseVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"success": { "type": "boolean", "description": "是否成功" },
|
||
"code": { "type": "string", "description": "响应码" },
|
||
"message": { "type": "string", "description": "响应消息" },
|
||
"errMessage": { "type": "string", "description": "错误响应消息" },
|
||
"data": { "type": "array", "items": { "$ref": "#/components/schemas/ClassCourseVO" }, "description": "响应数据" },
|
||
"total": { "type": "integer", "description": "总条数" }
|
||
}
|
||
},
|
||
"ClassCourseVO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": { "type": "string", "description": "主键" },
|
||
"classId": { "type": "string", "description": "所属班级ID" },
|
||
"courseName": { "type": "string", "description": "课程名称" },
|
||
"courseId": { "type": "string", "description": "课程id" },
|
||
"requiredTotalHours": { "type": "number", "description": "要求完成总学时(小时)" },
|
||
"videoDuration": { "type": "number", "description": "视频累计时长(小时)" },
|
||
"coursewareId": { "type": "array", "items": { "type": "string" }, "description": "课件id集合" },
|
||
"studentCount": { "type": "integer", "description": "上课学员数" },
|
||
"completedCount": { "type": "integer", "description": "已完成学员数" },
|
||
"createTime": { "type": "string", "description": "创建时间" },
|
||
"updateTime": { "type": "string", "description": "修改时间" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|