教室课表信息
最近更新时间: 2023年06月26日 05时38分49秒
实时
描述
通过教室id查询课表
支持的模式
客户端模式
请求方法
GET
请求地址
https://api.tongji.edu.cn/v1/rt/onetongji/classroom/get_timetable_by_classroom
数据来源
教务系统
请求参数
参数名 | 是否必填 | 备注 |
---|---|---|
calendarId | 否 | 学期编号,为空默认为当前学期 |
classroomIds | 否 | 教室编号列表,支持批量,用英文逗号分隔 |
返回参数
参数名 | 类型 | 备注 | 码表 |
---|---|---|---|
calendarId | string | 学期代码 | |
calendarName | string | 学期名称 | |
campus | string | 校区代码 | |
campusI18n | string | 校区名称 | |
classroomId | string | 教室id | |
classroomName | string | 教室名称 | |
occupiedExplain | string | 课程说明 | |
timeStart | string | 一日中从第几节课开始上课,如5表示第5节课 | |
timeEnd | string | 一日中从第几节课下课 | |
weekDay | string | 上课周,如2表示周二 | |
weekStart | string | 一学期从第几周开始上课,如1表示第1周 | |
weekEnd | string | 一学期该课程到第几周结课,如9表示第9周 | |
usageCode | string | 用途代码 | |
usageCodeI18n | string | 用途名称 | |
classCapacity | string | ||
capacity | string | ||
createTime | string | 创建时间 | |
updateTime | string | 更新时间 | |
deleteStatus | string | 删除标识 | |
dic | string | ||
isShared | string | ||
occupiedBusinessId | string | ||
id | string | ||
pageNum_ | string | ||
pageSize_ | string | ||
remark | string | ||
timeBit | string | ||
timeRange | string | ||
weekBit | string |
请求示例
curl -X GET \
'https://api.tongji.edu.cn/v1/rt/onetongji/classroom/get_timetable_by_classroom' \
-H 'calendarId: ' \
-H 'classroomIds: '
返回示例
{
"code": "A00000",
"data": {
"data": [
{
"calendarName": "2022-2023第2学期",
"campus": "1",
"campusI18n": "四平路校区",
"classCapacity": 20,
"classroomName": "C508",
"classroomOccupationList": [
{
"calendarId": null,
"capacity": null,
"classroomId": null,
"createTime": null,
"deleteStatus": null,
"dic": true,
"id": null,
"isShared": null,
"occupiedBusinessId": null,
"occupiedExplain": "专题设计(Ⅳ)(2000163001411)排课 星期一5-8[1-9]",
"pageNum_": 1,
"pageSize_": 10,
"remark": null,
"timeBit": 240,
"timeEnd": 8,
"timeRange": null,
"timeStart": 5,
"updateTime": null,
"usageCode": "01",
"usageCodeI18n": "排课",
"weekBit": 511,
"weekDay": 1,
"weekEnd": 9,
"weekStart": 1
},
{
"calendarId": null,
"capacity": null,
"classroomId": null,
"createTime": null,
"deleteStatus": null,
"dic": true,
"id": null,
"isShared": null,
"occupiedBusinessId": null,
"occupiedExplain": "专题设计(Ⅳ)(2000163001411)排课 星期四1-4[1-9]",
"pageNum_": 1,
"pageSize_": 10,
"remark": null,
"timeBit": 15,
"timeEnd": 4,
"timeRange": null,
"timeStart": 1,
"updateTime": null,
"usageCode": "01",
"usageCodeI18n": "排课",
"weekBit": 511,
"weekDay": 4,
"weekEnd": 9,
"weekStart": 1
}
],
"examCapacity": 10,
"towerCode": "126_yjs",
"towerName": "城规学院C",
"type": "0",
"typeI18n": "非公共教室"
}
],
"size": 1
},
"msg": "操作成功"
}