71 lines
3.7 KiB
JSON
71 lines
3.7 KiB
JSON
|
|
{
|
|||
|
|
"openapi": "3.0.1",
|
|||
|
|
"info": {
|
|||
|
|
"title": "分页查询班级学员",
|
|||
|
|
"version": "1.0.0",
|
|||
|
|
"description": "同步自 Apifox 项目(api-503642503),班级学员"
|
|||
|
|
},
|
|||
|
|
"paths": {
|
|||
|
|
"/safetyEval/classStudent/page": {
|
|||
|
|
"get": {
|
|||
|
|
"summary": "分页查询班级学员",
|
|||
|
|
"tags": ["班级学员"],
|
|||
|
|
"parameters": [
|
|||
|
|
{ "name": "current", "in": "query", "description": "当前页(默认1)", "required": false, "schema": { "type": "integer" } },
|
|||
|
|
{ "name": "size", "in": "query", "description": "每页条数(默认10)", "required": false, "schema": { "type": "integer" } },
|
|||
|
|
{ "name": "classId", "in": "query", "description": "关联班级ID(后端 Long;前端按字符串传递保证精度)", "required": false, "schema": { "type": "string" } },
|
|||
|
|
{ "name": "studentName", "in": "query", "description": "姓名", "required": false, "schema": { "type": "string" } },
|
|||
|
|
{ "name": "phone", "in": "query", "description": "手机号", "required": false, "schema": { "type": "string" } },
|
|||
|
|
{ "name": "studyStatus", "in": "query", "description": "学习状态", "required": false, "schema": { "type": "integer" } },
|
|||
|
|
{ "name": "examStatus", "in": "query", "description": "考试状态", "required": false, "schema": { "type": "integer" } }
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": { "$ref": "#/components/schemas/PageResponseClassStudentVO" }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"components": {
|
|||
|
|
"schemas": {
|
|||
|
|
"PageResponseClassStudentVO": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"success": { "type": "boolean", "description": "是否成功" },
|
|||
|
|
"code": { "type": "string", "description": "响应码" },
|
|||
|
|
"message": { "type": "string", "description": "响应消息" },
|
|||
|
|
"errMessage": { "type": "string", "description": "错误响应消息" },
|
|||
|
|
"data": { "type": "array", "items": { "$ref": "#/components/schemas/ClassStudentVO" }, "description": "响应数据" },
|
|||
|
|
"total": { "type": "integer", "description": "总条数" }
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"ClassStudentVO": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": { "type": "string", "description": "主键" },
|
|||
|
|
"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": "入班时间" },
|
|||
|
|
"createTime": { "type": "string", "description": "创建时间" },
|
|||
|
|
"updateTime": { "type": "string", "description": "修改时间" }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|