safety-eval-service-frontend/.api/safetyEval-classCourse-batc.../spec.json

64 lines
2.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": "批量新增班级课程",
"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" }
}
}
}
}
}