文档
测试

获取教师班级列表

GET
/teacher/class/index/{attribute_id}

接口描述

班级列表

响应参数

参数名
类型
描述
必填
code
int
返回状态码
必填
msg
string
返回描述
必填
data
array
返回数据
必填
id
int
班级ID
必填
title
string
班级名称
必填

说明 / 示例

{ "code": 200, "msg": "操作成功", "data": [ { "id": "2", "title": "7年级2班", "studentNum": "9", "updatedTime": "1653079621", "teacherIds": "", "is_manager": null, "grade_id": "8" }, { "id": "7", "title": "7年级3班", "studentNum": "13", "updatedTime": "1651916751", "teacherIds": "", "is_manager": null, "grade_id": "8" }, { "id": "19", "title": "靖安县官庄中心小学通用班", "studentNum": "3", "updatedTime": "1654116422", "teacherIds": "", "is_manager": null, "grade_id": "8" }, { "id": "40", "title": "初二1班", "studentNum": "0", "updatedTime": "1654116422", "teacherIds": "[\"9\",\"3\"]", "is_manager": null, "grade_id": "13" } ] }