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

64 lines
2.2 KiB
JSON
Raw Normal View History

2026-08-21 18:18:30 +08:00
{
"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" }
}
}
}
}
}