70 lines
2.7 KiB
JSON
70 lines
2.7 KiB
JSON
|
|
{
|
|||
|
|
"openapi": "3.0.1",
|
|||
|
|
"info": {
|
|||
|
|
"title": "批量新增班级学员",
|
|||
|
|
"version": "1.0.0",
|
|||
|
|
"description": "同步自 Apifox 项目(api-505094943),班级学员"
|
|||
|
|
},
|
|||
|
|
"paths": {
|
|||
|
|
"/safetyEval/classStudent/batchSave": {
|
|||
|
|
"post": {
|
|||
|
|
"summary": "批量新增班级学员",
|
|||
|
|
"description": "批量新增班级学员",
|
|||
|
|
"tags": ["班级学员"],
|
|||
|
|
"requestBody": {
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": { "$ref": "#/components/schemas/ClassStudentDTO" }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": { "$ref": "#/components/schemas/SingleResponseBoolean" }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"components": {
|
|||
|
|
"schemas": {
|
|||
|
|
"ClassStudentDTO": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": { "type": "string", "description": "主键(后端 Long;前端按字符串保证精度)" },
|
|||
|
|
"classId": { "type": "string", "description": "关联班级ID(后端 Long;前端按字符串保证精度)" },
|
|||
|
|
"studentName": { "type": "string", "description": "姓名" },
|
|||
|
|
"unitName": { "type": "string", "description": "参训单位" },
|
|||
|
|
"department": { "type": "string", "description": "部门" },
|
|||
|
|
"phone": { "type": "string", "description": "手机号" },
|
|||
|
|
"fileNumber": { "type": "string", "description": "档案编号" },
|
|||
|
|
"faceAuth": { "type": "integer", "description": "人脸认证(0-未认证,1-已认证)" },
|
|||
|
|
"requiredHours": { "type": "number", "description": "要求学时(小时)" },
|
|||
|
|
"completedHours": { "type": "number", "description": "已完成学时(小时)" },
|
|||
|
|
"studyStatus": { "type": "integer", "description": "学习状态:0-未学习,1-学习中,2-已学完,3-已完成" },
|
|||
|
|
"examStatus": { "type": "integer", "description": "考试状态:0-不考试,1-待考试,2-考试未通过,3-考试通过,4-未参加" },
|
|||
|
|
"entryTime": { "type": "string", "description": "入班时间" }
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"SingleResponseBoolean": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"success": { "type": "boolean" },
|
|||
|
|
"code": { "type": "string", "description": "响应码" },
|
|||
|
|
"message": { "type": "string", "description": "响应消息" },
|
|||
|
|
"errMessage": { "type": "string", "description": "错误响应消息" },
|
|||
|
|
"data": { "type": "boolean" }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|