Skip to content

14. 电费

Vizards edited this page Mar 2, 2019 · 2 revisions

查询房间电费信息

Url

POST /api/living/electricity

Header

参数 类型 必需 描述 示例
Content-Type string application/json application/json
Accept string application/json application/json

Body

参数 类型 必需 描述
room string 房间代码

Response

{
    "code": 201,
    "data": {
        "retcode": "0",
        "areaId": null,
        "buiId": "9",
        "roomId": "4011",
        "roomName": "109236",
        "sydl": "48.04",
        "syje": "22.10",
        "msg": "查询成功"
    },
    "time": "2019-03-02T08:47:18Z",
    "msg": "Post Success"
}
参数名 描述 类型
data.roomName 房间号 String
data.buiId 楼栋号 String
data.sydl 剩余电量(度) String
data.syje 剩余电费(¥) String

其余数据均为学校接口返回的数据,暂时无法确定用途,保险起见一并返回给客户端

Note

房间号规则(引用自喜付 APP):

房间号构成:学历 + 楼栋号 + 单元号 + 房间号

  • 本科生学历:1
  • 研究生学历:2
  • 博士生学历:3

例如:您是博士生住在 1 栋 2 单元 305 房间,那么您需要绑定的房间号则为:30102305

提示:如果您非博士生,单元号忽略不填即可