safety-eval-service-frontend/.api/safetyEval-classManagement-.../spec.json

72 lines
3.0 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-503642496班级管理"
},
"paths": {
"/safetyEval/classManagement/modify": {
"post": {
"summary": "修改班级",
"tags": ["班级管理"],
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ClassManagementDTO" }
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/SingleResponseBoolean" }
}
}
}
}
}
}
},
"components": {
"schemas": {
"ClassManagementDTO": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "主键(后端 Long / Apifox int64前端按字符串保证精度修改时必传" },
"classCode": { "type": "string", "description": "班级编码" },
"className": { "type": "string", "description": "班级名称" },
"trainingType": { "type": "string", "description": "培训类型" },
"unitType": { "type": "integer", "description": "参训单位类型1本企业2相关方" },
"unitName": { "type": "string", "description": "参训单位名称" },
"recorder": { "type": "string", "description": "记录人员" },
"assessor": { "type": "string", "description": "考核人员" },
"safetyManager": { "type": "string", "description": "安全管理部门负责人" },
"startDate": { "type": "string", "description": "培训开始日期" },
"endDate": { "type": "string", "description": "培训结束日期" },
"openExam": { "type": "integer", "description": "是否开启考试0-否1-是)" },
"examFaceRecognition": { "type": "integer", "description": "考试前人脸识别0-否1-是)" },
"examCount": { "type": "integer", "description": "考试次数" },
"faceRecognition": { "type": "integer", "description": "是否人脸识别0-否1-是)" },
"faceRecognitionTime": { "type": "integer", "description": "人脸识别时间(分钟)" },
"shuffleQuestions": { "type": "integer", "description": "是否打乱试题顺序0-否1-是)" },
"status": { "type": "integer", "description": "班级状态0-未申请1-待开班2-培训中3-培训结束" },
"delayTime": { "type": "string", "description": "延期时间" }
}
},
"SingleResponseBoolean": {
"type": "object",
"properties": {
"success": { "type": "boolean" },
"code": { "type": "string", "description": "响应码" },
"message": { "type": "string", "description": "响应消息" },
"errMessage": { "type": "string" },
"data": { "type": "boolean" }
}
}
}
}
}