querySpaceAppointTime 座位预约情况

分时间段

请求 URL

POST https://aiot.fzu.edu.cn/api/ibs/spaceAppoint/app/querySpaceAppointTime

请求头

参数名类型必填描述
tokenstring用户认证令牌

请求参数

参数名类型必填描述备注
spaceIdstring座位编号示例:422
datestring预约日期格式:YYYY-MM-DD

响应参数

参数名类型描述
dataobject座位预约数据
data.spaceIdnumber座位编号
data.datestring日期
data.timeDiamondListarray时间段列表
data.timeDiamondList[].indexnumber时间段索引
data.timeDiamondList[].timeTextstring时间文本
data.timeDiamondList[].occupynumber占用状态(0-未占用,1-已占用)
data.timeDiamondList[].isCheckedboolean
codestring响应代码,"0"表示成功
msgstring响应消息
dataListnull数据列表(通常为null)
pageIndexnull页码(通常为null)
pageSizenull每页大小(通常为null)
currentPagenull当前页码(通常为null)
totalnull总记录数(通常为null)
otherDatanull其他数据(通常为null)
  • 'isChecked'
    • 在未到来的时间段中,表示是否被预约
      • True - 已被预约
      • False - 未被预约
    • 在已到来的时间段中,固定为 True

请求示例

{
    "spaceId": "549",
    "date": "2025-03-08",
}

响应示例

{
    "data": {
        "spaceId": 549,
        "date": "2025-03-08 00:00:00",
        "timeDiamondList": [
            { "index": 16, "timeText": "08:00", "occupy": 0, "isChecked": false },
            { "index": 17, "timeText": "08:30", "occupy": 0, "isChecked": false },
            { "index": 18, "timeText": "09:00", "occupy": 1, "isChecked": true },
            { "index": 19, "timeText": "09:30", "occupy": 1, "isChecked": true },
            { "index": 20, "timeText": "10:00", "occupy": 1, "isChecked": true },
            { "index": 21, "timeText": "10:30", "occupy": 1, "isChecked": true },
            { "index": 22, "timeText": "11:00", "occupy": 1, "isChecked": true },
            { "index": 23, "timeText": "11:30", "occupy": 1, "isChecked": true },
            { "index": 24, "timeText": "12:00", "occupy": 1, "isChecked": true },
            { "index": 25, "timeText": "12:30", "occupy": 0, "isChecked": false },
            { "index": 26, "timeText": "13:00", "occupy": 0, "isChecked": false },
            { "index": 27, "timeText": "13:30", "occupy": 0, "isChecked": false },
            { "index": 28, "timeText": "14:00", "occupy": 0, "isChecked": false },
            { "index": 29, "timeText": "14:30", "occupy": 0, "isChecked": false },
            { "index": 30, "timeText": "15:00", "occupy": 1, "isChecked": true },
            { "index": 31, "timeText": "15:30", "occupy": 1, "isChecked": true },
            { "index": 32, "timeText": "16:00", "occupy": 1, "isChecked": true },
            { "index": 33, "timeText": "16:30", "occupy": 1, "isChecked": true },
            { "index": 34, "timeText": "17:00", "occupy": 1, "isChecked": true },
            { "index": 35, "timeText": "17:30", "occupy": 1, "isChecked": true },
            { "index": 36, "timeText": "18:00", "occupy": 1, "isChecked": true },
            { "index": 37, "timeText": "18:30", "occupy": 1, "isChecked": true },
            { "index": 38, "timeText": "19:00", "occupy": 1, "isChecked": true },
            { "index": 39, "timeText": "19:30", "occupy": 0, "isChecked": false },
            { "index": 40, "timeText": "20:00", "occupy": 0, "isChecked": false },
            { "index": 41, "timeText": "20:30", "occupy": 0, "isChecked": false },
            { "index": 42, "timeText": "21:00", "occupy": 0, "isChecked": false },
            { "index": 43, "timeText": "21:30", "occupy": 0, "isChecked": false },
            { "index": 44, "timeText": "22:00", "occupy": 0, "isChecked": false },
            { "index": 45, "timeText": "22:30", "occupy": 0, "isChecked": false }
        ]
    },
    "dataList": null,
    "pageIndex": null,
    "pageSize": null,
    "currentPage": null,
    "total": null,
    "code": "0",
    "msg": "成功",
    "otherData": null
}