64 lines
2.2 KiB
JSON
64 lines
2.2 KiB
JSON
{
|
||
"openapi": "3.0.1",
|
||
"info": {
|
||
"title": "批量新增班级课程",
|
||
"version": "1.0.0",
|
||
"description": "同步自 Apifox 项目(api-505127646),班级课程"
|
||
},
|
||
"paths": {
|
||
"/safetyEval/classCourse/batchSave": {
|
||
"post": {
|
||
"summary": "批量新增班级课程",
|
||
"description": "批量新增班级课程",
|
||
"tags": ["班级课程"],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "array",
|
||
"items": { "$ref": "#/components/schemas/ClassCourseDTO" }
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": { "$ref": "#/components/schemas/SingleResponseBoolean" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"schemas": {
|
||
"ClassCourseDTO": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": { "type": "string", "description": "主键(后端 Long;前端按字符串保证精度)" },
|
||
"classId": { "type": "string", "description": "所属班级ID(后端 Long;前端按字符串保证精度)" },
|
||
"courseName": { "type": "string", "description": "课程名称" },
|
||
"courseId": { "type": "string", "description": "课程id(后端 Long;前端按字符串保证精度)" },
|
||
"requiredTotalHours": { "type": "number", "description": "要求完成总学时(小时)" },
|
||
"videoDuration": { "type": "number", "description": "视频累计时长(小时)" },
|
||
"coursewareId": { "type": "array", "items": { "type": "string" }, "description": "课件id集合" }
|
||
}
|
||
},
|
||
"SingleResponseBoolean": {
|
||
"type": "object",
|
||
"properties": {
|
||
"success": { "type": "boolean" },
|
||
"code": { "type": "string", "description": "响应码" },
|
||
"message": { "type": "string", "description": "响应消息" },
|
||
"errMessage": { "type": "string", "description": "错误响应消息" },
|
||
"data": { "type": "boolean" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|