Skip to content

国资房产

建筑信息

描述

建筑信息

支持的模式

  • client_credentials

请求方法

GET

请求地址

https://api.ecnu.edu.cn/api/v1/asset/buildings

请求参数

参数名是否必填备注
pageNum分页第几页,从1开始
pageSize每页的数量

返回参数

参数名类型备注
totalNumnumber总共的条目数
pageSizenumber每页的大小
rowsobject array具体的返回
buildingIdstring建筑物编号
buildingNamestring建筑物名称
siteNamestring校区名称

请求示例

curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v1/asset/buildings?pageNum=1&pageSize=5"

返回示例

json
{
  "data": {
    "totalNum": 245,
    "pageSize": 5,
    "rows": [
      {
        "buildingName": "国际交流中心油炉",
        "siteName": "中山北路校区",
        "buildingId": "1"
      },
      {
        "buildingName": "科教楼",
        "siteName": "中山北路校区",
        "buildingId": "100"
      },
      {
        "buildingName": "中北变电站",
        "siteName": "中山北路校区",
        "buildingId": "11"
      },
      {
        "buildingName": "阿伟酒家",
        "siteName": "中山北路校区",
        "buildingId": "110"
      },
      {
        "buildingName": "印刷厂大楼",
        "siteName": "中山北路校区",
        "buildingId": "113"
      }
    ],
    "pageNum": 1
  },
  "errCode": 0,
  "requestId": "6a0f0e4b16251931256192991e5280",
  "errMsg": "success",
  "apiLog": null
}

房间详细信息

描述

房间详细信息

支持的模式

  • client_credentials

请求方法

GET

请求地址

https://api.ecnu.edu.cn/api/v1/asset/room/detail

请求参数

参数名是否必填备注
roomUUID房间编码

返回参数

参数名类型备注
roomUUIDstring房间唯一编码
buildingIdstring建筑物编码
buildingNamestring建筑物名称
siteNamestring校区名称
floorstring楼层
roomIdstring房间号
buildingAreanumber建筑面积,单位:M2
usableAreanumber使用面积,单位:M2
dvIdstring单位编码
dvNamestring使用单位
dpIdstring部门编码
dpNamestring部门名称
dvManagestring管理部门
roomTypestring类别代码
roomTypeNamestring类别名称
roomCatTypestring类型代码
roomCatNamestring类型名称
roomUseTypestring大类代码
roomUseNamestring大类名称
roomNamestring房间名称
roomUserCountint教职工人数

请求示例

curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v1/asset/room/detail?roomUUID=129_F04_421"

返回示例

json
{
  "data": [
    {
      "dvId": "002",
      "dpName": "",
      "roomUseType": "30",
      "dpId": "",
      "roomUseName": "生活用房",
      "roomTypeName": "学生居室",
      "buildingArea": 74.46,
      "siteName": "中山北路校区",
      "roomCatName": "学生宿舍",
      "roomId": "421",
      "roomName": "学生宿舍",
      "buildingId": "129",
      "buildingName": "第五宿舍",
      "dvManage": "后勤保障部",
      "dvName": "宿舍",
      "usableArea": 50.13,
      "roomUserCount": 0,
      "roomCatType": "301",
      "floor": "F04",
      "roomUUID": "129_F04_421",
      "roomType": "30101"
    }
  ],
  "requestId": "6a0f0ef016251937292311292e05d1",
  "errCode": 0,
  "errMsg": "success",
  "apiLog": null
}

根据使用人查询房间信息

描述

根据使用人查询房间信息

支持的模式

  • authorization_code
  • client_credentials
  • password

请求方法

GET

请求地址

https://api.ecnu.edu.cn/api/v1/asset/room/user

请求参数

参数名是否必填备注
userId学工号,当授权为authorization_code和password模式时可省略

返回参数

参数名类型备注
roomUUIDstring房间唯一编码
buildingIdstring建筑物编码
buildingNamestring建筑物名称
siteNamestring校区名称
floorstring楼层
roomIdstring房间号
roomNamestring房间名称
buildingAreanumber建筑面积,单位:M2
usableAreanumber使用面积,单位:M2
roomUserCountint教职工人数

请求示例

curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v1/asset/room/user?userId=201****7"

返回示例

json
{
  "data": [
    {
      "buildingName": "闵行图书馆",
      "usableArea": 95.34,
      "siteName": "闵行校区",
      "buildingArea": 146.68,
      "roomUserCount": 5,
      "floor": "F02",
      "roomUUID": "1029_F02_A202",
      "roomId": "A202",
      "roomName": "办公室",
      "buildingId": "1029"
    }
  ],
  "errCode": 0,
  "requestId": "65841f9216252046320577924e7bbe",
  "errMsg": "success",
  "apiLog": null
}

根据建筑查询房间信息

描述

根据建筑查询房间信息

支持的模式

  • client_credentials

请求方法

GET

请求地址

https://api.ecnu.edu.cn/api/v1/asset/room/building

请求参数

参数名是否必填备注
pageNum分页第几页,从1开始
pageSize每页的数量
buildingId建筑物编码
roomCatType房间类型编码(若不填则返回所有)

返回参数

参数名类型备注
totalNumnumber总共的条目数
pageSizenumber每页的大小
rowsobject array具体的返回
buildingIdstring建筑物编号
buildingNamestring建筑物名称
siteNamestring校区名称
roomUUIDstring房间唯一编码
floorstring楼层
roomIdstring房间号
roomNamestring房间名称
roomCatTypestring房间类型编码
roomCatNamestring房间类型名称

请求示例

curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v1/asset/room/building?buildingId=1029"

返回示例

json
{
  "data": {
    "totalNum": 5,
    "pageSize": 10,
    "rows": [
      {
        "buildingName": "春华阁(研究生食堂)",
        "siteName": "闵行校区",
        "roomCatType": "303",
        "floor": "F01",
        "roomUUID": "1001_F01_101",
        "roomCatName": "生活福利及附属用房",
        "roomId": "101",
        "roomName": "学生活动室",
        "buildingId": "1001"
      },
      {
        "buildingName": "春华阁(研究生食堂)",
        "siteName": "闵行校区",
        "roomCatType": "303",
        "floor": "F01",
        "roomUUID": "1001_F01_102-104",
        "roomCatName": "生活福利及附属用房",
        "roomId": "102-104",
        "roomName": "上海教育超市",
        "buildingId": "1001"
      },
      {
        "buildingName": "春华阁(研究生食堂)",
        "siteName": "闵行校区",
        "roomCatType": "303",
        "floor": "F01",
        "roomUUID": "1001_F01_106",
        "roomCatName": "生活福利及附属用房",
        "roomId": "106",
        "roomName": "物业办公室",
        "buildingId": "1001"
      },
      {
        "buildingName": "春华阁(研究生食堂)",
        "siteName": "闵行校区",
        "roomCatType": "303",
        "floor": "F01",
        "roomUUID": "1001_F01_X101",
        "roomCatName": "生活福利及附属用房",
        "roomId": "X101",
        "roomName": "银行",
        "buildingId": "1001"
      },
      {
        "buildingName": "春华阁(研究生食堂)",
        "siteName": "闵行校区",
        "roomCatType": "303",
        "floor": "F01",
        "roomUUID": "1001_F01_X103",
        "roomCatName": "生活福利及附属用房",
        "roomId": "X103",
        "roomName": "银行",
        "buildingId": "1001"
      }
    ],
    "pageNum": 1
  },
  "errCode": 0,
  "requestId": "0bc1742116488070513461537e4847",
  "errMsg": "success"
}

根据房间号查使用人工号

描述

根据房间号查使用人工号

支持的模式

  • client_credentials

请求方法

GET

请求地址

https://api.ecnu.edu.cn/api/v1/asset/roomuser

请求参数

参数名是否必填备注
roomUUID房间编码

返回参数

参数名类型备注
userIdstring使用人工号
roomUUIDstring房间唯一编码

请求示例

curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v1/asset/roomuser?roomUUID=1029_F02_A202"

返回示例

json
{
  "data": [
    {
      "userId": "20*****0",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****2",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****8",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****3",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****9",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****6",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****7",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****5",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****3",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****1",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****5",
      "roomUUID": "1029_F02_A202"
    },
    {
      "userId": "20*****6",
      "roomUUID": "1029_F02_A202"
    }
  ],
  "errCode": 0,
  "requestId": "65841f9216252059301317078e7bbb",
  "errMsg": "success",
  "apiLog": null
}