{"info":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6817046","collectionId":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","publishedId":"SzKWuHJh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-02-25T13:29:36.000Z"},"item":[{"name":"user","item":[{"name":"register","id":"a83378de-9a25-4de2-9c91-748e1c8afd02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account\": \"1234567\",\n\t\"password\": \"123456\"\n}"},"url":"http://localhost:8080/api/user/register","description":"<p>用户注册</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","register"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"871ca6a9-670f-4bd3-9ce8-c523a0d3885c","name":"注册成功","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account\": \"123456\",\n\t\"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/user/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"234"},{"key":"Date","value":"Wed, 12 Feb 2020 14:58:49 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"role\": \"student\",\n        \"id\": 2,\n        \"account\": \"16031210106\",\n        \"password\": \"$2a$10$bdNrQu4gGJSWxJ6/HLD/RO/zr1XJ3UsUGNR1pUp61bT8asdpBSWEu\",\n        \"updatedAt\": \"2020-02-12T14:58:48.994Z\",\n        \"createdAt\": \"2020-02-12T14:58:48.994Z\"\n    },\n    \"msg\": \"\"\n}"},{"id":"f0ea1524-e3fd-426a-9b96-82f0fffdb006","name":"已被注册","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account\": \"123456\",\n\t\"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/user/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"Date","value":"Wed, 12 Feb 2020 15:16:40 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"data\": {},\n    \"msg\": \"该学号/职工号已被注册\"\n}"}],"_postman_id":"a83378de-9a25-4de2-9c91-748e1c8afd02"},{"name":"login","id":"029f9bc9-5d37-4003-81e9-0968078004d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account\": \"123456\",\n\t\"password\": \"123456\"\n}"},"url":"http://localhost:8080/api/user/login","description":"<p>用户登录</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","login"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"029f9bc9-5d37-4003-81e9-0968078004d7"},{"name":"info","id":"b4287e5d-a330-49b3-80ac-862cc2d69f60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/user/info","description":"<p>获取用户信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","info"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"1ffe5b0c-85dd-4b25-9d9a-63463d74567b","name":"用户是学生但是没有分配宿舍","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"http://localhost:8080/api/user/info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"Date","value":"Fri, 14 Feb 2020 10:21:19 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 1,\n        \"account\": \"123456\",\n        \"password\": \"$2a$10$w/dUmqJHRZftMY.qE1M0q.J1qFDZxaxskIc3LtRaHxRndB7l.Whqe\",\n        \"role\": \"student\",\n        \"name\": null,\n        \"createdAt\": \"2020-02-14T09:58:11.000Z\",\n        \"updatedAt\": \"2020-02-14T09:58:11.000Z\",\n        \"deletedAt\": null,\n        \"roomId\": null\n    },\n    \"msg\": \"\"\n}"},{"id":"3d011ba5-5cb8-4295-9a42-8956400fbf22","name":"获取成功","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"http://localhost:8080/api/user/info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"258"},{"key":"Date","value":"Thu, 13 Feb 2020 09:12:15 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 3,\n        \"account\": \"123456\",\n        \"password\": \"$2a$10$OY2f3uO4LbJ0AFReElOVYeQSB36dViu1sYjELPR4DP2lryNHecYKu\",\n        \"role\": \"student\",\n        \"name\": null,\n        \"createdAt\": \"2020-02-12T15:01:36.000Z\",\n        \"updatedAt\": \"2020-02-12T15:01:36.000Z\",\n        \"deletedAt\": null\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"b4287e5d-a330-49b3-80ac-862cc2d69f60"},{"name":"updateInfo","id":"3cab4246-340f-42ac-af7c-3fe1bdd87878","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"王花\",\n\t\"phone\": \"122333\",\n\t\"roomId\": 1\n}"},"url":"http://localhost:8080/api/user/updateInfo","description":"<p>更新用户信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","updateInfo"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"5373f5d7-8539-4ee1-abd6-56e64849c52c","name":"修改用户信息","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"王花花\",\n\t\"phone\": \"12233322333\",\n\t\"roomId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/user/updateInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"337"},{"key":"Date","value":"Fri, 14 Feb 2020 16:01:14 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 1,\n        \"account\": \"123456\",\n        \"password\": \"$2a$10$9ytdZBgit6yPLzS3/.rayeSUV1UQMODSMD9WTdiSdWVySZaTfIwli\",\n        \"role\": \"student\",\n        \"name\": \"王花花\",\n        \"phone\": \"12233322333\",\n        \"checkTime\": \"2020-02-14T16:00:05.000Z\",\n        \"createdAt\": \"2020-02-14T15:59:19.000Z\",\n        \"updatedAt\": \"2020-02-14T16:00:16.000Z\",\n        \"deletedAt\": null,\n        \"roomId\": 1\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"3cab4246-340f-42ac-af7c-3fe1bdd87878"},{"name":"getStudents","id":"0a86dc14-5bc9-4a61-ab86-90229fb16640","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/user/getStudents?roomId=1","description":"<p>获取学生用户，传递的 url query 分为以下情况：</p>\n<ol>\n<li>空参数：获取系统内所有的学生用户</li>\n<li>?buildingId=[]: 获取对应宿舍楼的学生用户</li>\n<li>?floorId=[]: 获取对应楼层的学生用户</li>\n<li>?roomId=[]: 获取对应房间的学生用户</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","getStudents"],"host":["http://localhost:8080/api"],"query":[{"disabled":true,"key":"floorId","value":"1"},{"disabled":true,"key":"buildingId","value":"1"},{"key":"roomId","value":"1"}],"variable":[]}},"response":[{"id":"26359e9e-f5c5-4716-bf50-0a3a4a873f13","name":"获取学生信息","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/user/getStudents?roomId=1","host":["http://localhost:8080/api"],"path":["user","getStudents"],"query":[{"key":"floorId","value":"1","disabled":true},{"key":"buildingId","value":"1","disabled":true},{"key":"roomId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"647"},{"key":"Date","value":"Sat, 15 Feb 2020 09:43:02 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"users\": [\n            {\n                \"id\": 1,\n                \"account\": \"123456\",\n                \"role\": \"student\",\n                \"name\": \"王大壮\",\n                \"phone\": \"123455677\",\n                \"checkTime\": \"2020-02-14T16:31:02.000Z\",\n                \"createdAt\": \"2020-02-14T15:59:19.000Z\",\n                \"updatedAt\": \"2020-02-14T16:31:02.000Z\",\n                \"roomId\": 1,\n                \"roomNumber\": 101,\n                \"floorId\": 1,\n                \"floorLayer\": 1,\n                \"buildingId\": 1,\n                \"buildingName\": \"通天苑\"\n            },\n            {\n                \"id\": 4,\n                \"account\": \"16031210105\",\n                \"role\": \"student\",\n                \"name\": \"姬广锐\",\n                \"phone\": \"15670023772\",\n                \"checkTime\": \"2020-02-15T06:55:47.000Z\",\n                \"createdAt\": \"2020-02-15T06:55:05.000Z\",\n                \"updatedAt\": \"2020-02-15T06:55:47.000Z\",\n                \"roomId\": 1,\n                \"roomNumber\": 101,\n                \"floorId\": 1,\n                \"floorLayer\": 1,\n                \"buildingId\": 1,\n                \"buildingName\": \"通天苑\"\n            }\n        ]\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"0a86dc14-5bc9-4a61-ab86-90229fb16640"},{"name":"searchAdmin","id":"e2465cd9-51e6-4895-b0fe-52acc53bd177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/user/searchAdmin?keywords=a","description":"<p>查找系统内的管理员</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","searchAdmin"],"host":["http://localhost:8080/api"],"query":[{"key":"keywords","value":"a"}],"variable":[]}},"response":[],"_postman_id":"e2465cd9-51e6-4895-b0fe-52acc53bd177"},{"name":"getAdminTableData","id":"b399f6bb-52f1-4881-b34b-3dd6855cd47f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/user/getAdminTableData","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","getAdminTableData"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"3285dc22-70b4-40d9-901d-1f0ef32c5c01","name":"请求成功","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":"http://localhost:8080/api/user/getAdminTableData"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1364"},{"key":"Date","value":"Sun, 23 Feb 2020 09:02:40 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"admins\": [\n            {\n                \"id\": 2,\n                \"account\": \"admin\",\n                \"password\": \"$2a$10$NNZoAxHHO.NJq1AJLzp.4eRBMCRWfJbiPltpJdV3yNV4iP2cASB.K\",\n                \"role\": \"admin\",\n                \"name\": \"王晓鹏\",\n                \"phone\": \"1233333\",\n                \"checkTime\": null,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"roomId\": null,\n                \"buildings\": [\n                    {\n                        \"id\": 1,\n                        \"name\": \"通天苑\",\n                        \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                        \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                        \"deletedAt\": null,\n                        \"admins\": {\n                            \"createdAt\": \"2020-02-22T10:46:28.000Z\",\n                            \"updatedAt\": \"2020-02-22T10:46:28.000Z\",\n                            \"buildingId\": 1,\n                            \"userId\": 2\n                        }\n                    },\n                    {\n                        \"id\": 3,\n                        \"name\": \"于心苑\",\n                        \"createdAt\": \"2020-02-21T11:36:05.000Z\",\n                        \"updatedAt\": \"2020-02-21T11:36:07.000Z\",\n                        \"deletedAt\": null,\n                        \"admins\": {\n                            \"createdAt\": \"2020-02-22T14:47:30.000Z\",\n                            \"updatedAt\": \"2020-02-22T14:47:30.000Z\",\n                            \"buildingId\": 3,\n                            \"userId\": 2\n                        }\n                    },\n                    {\n                        \"id\": 6,\n                        \"name\": \"测试楼层\",\n                        \"createdAt\": \"2020-02-22T14:58:45.000Z\",\n                        \"updatedAt\": \"2020-02-22T14:58:45.000Z\",\n                        \"deletedAt\": null,\n                        \"admins\": {\n                            \"createdAt\": \"2020-02-22T14:59:08.000Z\",\n                            \"updatedAt\": \"2020-02-22T14:59:08.000Z\",\n                            \"buildingId\": 6,\n                            \"userId\": 2\n                        }\n                    }\n                ]\n            },\n            {\n                \"id\": 3,\n                \"account\": \"superAdmin\",\n                \"password\": \"$2a$10$UzYrrpiCanig0CFGdqONRe.c65B9d9sEOiD1wH6B/oZCXubJKLi6m\",\n                \"role\": \"superAdmin\",\n                \"name\": \"李达康\",\n                \"phone\": null,\n                \"checkTime\": null,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"roomId\": null,\n                \"buildings\": []\n            }\n        ],\n        \"total\": 2\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"b399f6bb-52f1-4881-b34b-3dd6855cd47f"},{"name":"getStudentInfoByIdOrAccount","id":"8e85e4fe-a6b3-4527-bbcd-11e204568775","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/user/getStudentInfoByIdOrAccount?type=id&value=1","description":"<p>由Id或account获取学生用户信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["user","getStudentInfoByIdOrAccount"],"host":["http://localhost:8080/api"],"query":[{"description":{"content":"<p>id or account</p>\n","type":"text/plain"},"key":"type","value":"id"},{"key":"value","value":"1"}],"variable":[]}},"response":[{"id":"062bcc0b-1ce1-4a6b-a96f-953a53c209e1","name":"请求成功","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/user/getStudentInfoByIdOrAccount?type=id&value=1","host":["http://localhost:8080/api"],"path":["user","getStudentInfoByIdOrAccount"],"query":[{"key":"type","value":"id","description":"id or account"},{"key":"value","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"391"},{"key":"Date","value":"Sun, 23 Feb 2020 15:40:14 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 1,\n        \"account\": \"123456\",\n        \"role\": \"student\",\n        \"name\": \"王麻\",\n        \"phone\": \"12222222222\",\n        \"checkTime\": \"2020-02-15T14:57:14.000Z\",\n        \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n        \"updatedAt\": \"2020-02-19T15:46:09.000Z\",\n        \"roomId\": 1,\n        \"roomNumber\": 101,\n        \"floorId\": 1,\n        \"floorLayer\": 1,\n        \"buildingId\": 1,\n        \"buildingName\": \"通天苑\",\n        \"getupProb\": \"0.1111\",\n        \"backProb\": \"0.4444\",\n        \"cleanProb\": \"0.4444\"\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"8e85e4fe-a6b3-4527-bbcd-11e204568775"}],"id":"800cc337-6280-45c3-a91e-57055ae7cca1","_postman_id":"800cc337-6280-45c3-a91e-57055ae7cca1","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"building","item":[{"name":"getBuildings","id":"f46bfb13-128b-4b4d-83d5-8d2f5439a8dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/building/getBuildings","description":"<p>获取所有的宿舍楼</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","getBuildings"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"62cc8a0b-7977-433d-bc14-6b4203248bc9","name":"获取所有宿舍楼","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{token}}"}],"url":"http://localhost:8080/api/building/getBuildings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"304"},{"key":"Date","value":"Fri, 14 Feb 2020 13:10:04 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"通天苑\",\n            \"layers\": 10,\n            \"createdAt\": \"2020-02-14T13:09:56.000Z\",\n            \"updatedAt\": \"2020-02-14T13:09:56.000Z\",\n            \"deletedAt\": null\n        },\n        {\n            \"id\": 2,\n            \"name\": \"大西门\",\n            \"layers\": 10,\n            \"createdAt\": \"2020-02-14T13:09:56.000Z\",\n            \"updatedAt\": \"2020-02-14T13:09:56.000Z\",\n            \"deletedAt\": null\n        }\n    ],\n    \"msg\": \"\"\n}"},{"id":"97894da6-7cc6-4675-a7e4-d94826150726","name":"获取成功","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"http://localhost:8080/api/building/getBuildings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"728"},{"key":"Date","value":"Fri, 21 Feb 2020 16:22:41 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"buildings\": [\n            {\n                \"id\": 1,\n                \"name\": \"通天苑\",\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"floorCount\": 10,\n                \"roomCount\": 1,\n                \"studentCount\": 3\n            },\n            {\n                \"id\": 2,\n                \"name\": \"大西门\",\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"floorCount\": 0,\n                \"roomCount\": 0,\n                \"studentCount\": 0\n            },\n            {\n                \"id\": 3,\n                \"name\": \"于心苑\",\n                \"createdAt\": \"2020-02-21T11:36:05.000Z\",\n                \"updatedAt\": \"2020-02-21T11:36:07.000Z\",\n                \"deletedAt\": null,\n                \"floorCount\": 1,\n                \"roomCount\": 1,\n                \"studentCount\": 2\n            },\n            {\n                \"id\": 6,\n                \"name\": \"凤凰苑\",\n                \"createdAt\": \"2020-02-21T15:47:19.000Z\",\n                \"updatedAt\": \"2020-02-21T15:47:19.000Z\",\n                \"deletedAt\": null,\n                \"floorCount\": 10,\n                \"roomCount\": 150,\n                \"studentCount\": 0\n            }\n        ]\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"f46bfb13-128b-4b4d-83d5-8d2f5439a8dd"},{"name":"getManageBuildings","id":"8de58613-b070-423a-9ae6-11f4ab6dbf08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/building/getManageBuildings","description":"<p>获取可以管理的宿舍楼，超级管理员可以管理所有宿舍楼</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","getManageBuildings"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"8de58613-b070-423a-9ae6-11f4ab6dbf08"},{"name":"getBuildingInfo","id":"f799c982-fc64-4421-b20a-a7c36841772c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":"http://localhost:8080/api/building/getBuildingInfo","description":"<p>获取宿舍楼的详细信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","getBuildingInfo"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"f799c982-fc64-4421-b20a-a7c36841772c"},{"name":"addBuildingWithRoom","id":"53d13c8f-36e2-4cfa-9d7a-dabe1e0ef519","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"2333\",\n\t\"floorCount\": 10,\n\t\"roomCount\": 11\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/building/addBuildingWithRoom","description":"<p>添加宿舍楼，包含宿舍与房间信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","addBuildingWithRoom"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"53d13c8f-36e2-4cfa-9d7a-dabe1e0ef519"},{"name":"delBuilding","id":"7c4bf623-823f-4724-8e2b-fdaf3eeda436","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/building/delBuilding?id","description":"<p>删除宿舍楼</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","delBuilding"],"host":["http://localhost:8080/api"],"query":[{"key":"id","value":""}],"variable":[]}},"response":[],"_postman_id":"7c4bf623-823f-4724-8e2b-fdaf3eeda436"},{"name":"getAdminTableData","id":"5c9a8313-7334-40a3-8c89-151dddf1636b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/building/getAdminTableData?buildingId=1","description":"<p>由buildingid获取对应宿舍楼的管理员表格信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","getAdminTableData"],"host":["http://localhost:8080/api"],"query":[{"key":"buildingId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"5c9a8313-7334-40a3-8c89-151dddf1636b"},{"name":"getCleanerTableData","id":"90db52f7-d1ff-4b01-b48c-9f0f95dd0a44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/building/getCleanerTableData?buildingId=1","description":"<p>由buildingid获取对应宿舍楼的管理员表格信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","getCleanerTableData"],"host":["http://localhost:8080/api"],"query":[{"key":"buildingId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"90db52f7-d1ff-4b01-b48c-9f0f95dd0a44"},{"name":"addAdminToBuilding","id":"28862aef-d17e-4ddb-a26c-3a8110913f64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"adminId\": 2,\n\t\"buildingId\": 1\n}"},"url":"http://localhost:8080/api/building/addAdminToBuilding","description":"<p>为宿舍楼添加管理员</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","addAdminToBuilding"],"host":["http://localhost:8080/api"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"16efedb5-141e-45aa-82d1-70038951c69e","name":"添加成功","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{suToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"adminId\": 2,\n\t\"buildingId\": 3\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/building/addAdminToBuilding","host":["http://localhost:8080/api"],"path":["building","addAdminToBuilding"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"140"},{"key":"Date","value":"Sat, 22 Feb 2020 09:52:10 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"buildingId\": 3,\n            \"userId\": 2,\n            \"createdAt\": \"2020-02-22T09:52:10.509Z\",\n            \"updatedAt\": \"2020-02-22T09:52:10.509Z\"\n        }\n    ],\n    \"msg\": \"\"\n}"},{"id":"26501d98-0f0c-4dbe-967f-a6af62740d7c","name":"添加失败","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{suToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"adminId\": 2,\n\t\"buildingId\": 3\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/building/addAdminToBuilding","host":["http://localhost:8080/api"],"path":["building","addAdminToBuilding"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"99"},{"key":"Date","value":"Sat, 22 Feb 2020 09:54:22 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"data\": {},\n    \"msg\": \"目标管理员已为当前宿舍楼的管理员，添加失败\"\n}"}],"_postman_id":"28862aef-d17e-4ddb-a26c-3a8110913f64"},{"name":"removeBuildingAdmin","id":"0aee07c3-c671-412f-9327-4cf6da178f15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/building/removeBuildingAdmin?adminId=2&buildingId=1","description":"<p>移除宿舍楼管理员</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","removeBuildingAdmin"],"host":["http://localhost:8080/api"],"query":[{"key":"adminId","value":"2"},{"key":"buildingId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"0aee07c3-c671-412f-9327-4cf6da178f15"},{"name":"getStatistic","id":"e37da420-0221-464d-9a39-bcff5e79a614","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/building/getStatistic?buildingId=1","description":"<p>获取入住楼宇的学生数据信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["building","getStatistic"],"host":["http://localhost:8080/api"],"query":[{"key":"buildingId","value":"1"}],"variable":[]}},"response":[{"id":"086a44cf-0e7f-408a-8d0f-eb619ed7c7f5","name":"获取成功","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/building/statistic?buildingId=1","host":["http://localhost:8080/api"],"path":["building","statistic"],"query":[{"key":"buildingId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"276"},{"key":"Date","value":"Fri, 28 Apr 2023 08:54:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"studentCount\": 3,\n        \"sex\": {\n            \"boysCount\": 2,\n            \"girlsCount\": 1\n        },\n        \"faculty\": [\n            {\n                \"name\": \"电子信息工程学院\",\n                \"count\": 1\n            },\n            {\n                \"name\": \"计算机科学与技术学院\",\n                \"count\": 2\n            }\n        ],\n        \"major\": [\n            {\n                \"name\": \"通信工程\",\n                \"count\": 1\n            },\n            {\n                \"name\": \"软件工程\",\n                \"count\": 2\n            }\n        ]\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"e37da420-0221-464d-9a39-bcff5e79a614"}],"id":"d6aab3a7-eed7-43c1-8017-09436baaaf4f","_postman_id":"d6aab3a7-eed7-43c1-8017-09436baaaf4f","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"floor","item":[{"name":"getFloors","id":"c9d332fd-521e-4520-8199-dd54429204d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/floor/getFloors?buildingId=1","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["floor","getFloors"],"host":["http://localhost:8080/api"],"query":[{"key":"buildingId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"c9d332fd-521e-4520-8199-dd54429204d1"},{"name":"getFloorsDetail","id":"4184f582-3580-4f65-8049-b297c33c7b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/floor/getFloorsDetail?buildingId=1","description":"<p>获取宿舍楼层的详细信息，包含了宿舍楼的保洁员与宿舍信息</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["floor","getFloorsDetail"],"host":["http://localhost:8080/api"],"query":[{"key":"buildingId","value":"1"}],"variable":[]}},"response":[{"id":"a0a4cd05-0b9c-4c6d-82d4-7b1d2d07445a","name":"请求成功","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/floor/getFloorsDetail?buildingId=1","host":["http://localhost:8080/api"],"path":["floor","getFloorsDetail"],"query":[{"key":"buildingId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2118"},{"key":"Date","value":"Sat, 22 Feb 2020 14:17:25 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"floors\": [\n            {\n                \"id\": 1,\n                \"layer\": 1,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": 1,\n                \"cleaner\": {\n                    \"id\": 1,\n                    \"name\": \"凉风阿姨\",\n                    \"phone\": \"13822222222\",\n                    \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                    \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                    \"deletedAt\": null,\n                    \"buildingId\": 1\n                },\n                \"rooms\": [\n                    {\n                        \"id\": 1,\n                        \"number\": 101,\n                        \"buildingId\": 1,\n                        \"status\": 1,\n                        \"peopleNum\": 6,\n                        \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                        \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                        \"deletedAt\": null,\n                        \"floorId\": 1,\n                        \"studentCount\": 3\n                    }\n                ]\n            },\n            {\n                \"id\": 2,\n                \"layer\": 2,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 3,\n                \"layer\": 3,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 4,\n                \"layer\": 4,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 5,\n                \"layer\": 5,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 6,\n                \"layer\": 6,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 7,\n                \"layer\": 7,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 8,\n                \"layer\": 8,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 9,\n                \"layer\": 9,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            },\n            {\n                \"id\": 10,\n                \"layer\": 10,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"cleanerId\": null,\n                \"cleaner\": null,\n                \"rooms\": []\n            }\n        ],\n        \"count\": 10\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"4184f582-3580-4f65-8049-b297c33c7b3c"},{"name":"addCleanerToFloor","id":"4c3181ee-302d-404c-8e66-0fa0cbfd258b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/floor/addCleanerToFloor","description":"<p>为楼层添加保洁人员</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["floor","addCleanerToFloor"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c3181ee-302d-404c-8e66-0fa0cbfd258b"}],"id":"fff92e53-1106-4e21-8b84-2c01f89a5ecc","_postman_id":"fff92e53-1106-4e21-8b84-2c01f89a5ecc","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"room","item":[{"name":"getRooms","id":"00042e26-581d-404c-a3c7-bbd1627bac3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/room/getRooms?buildingId=1","description":"<p>获取房间，根据传递的 params 不同，分为以下情况：</p>\n<ol>\n<li>query为空：获取系统内所有的 room</li>\n<li>?floorId=[Number]：获取改楼层的所有 room</li>\n<li>?buildingId=[Number]: 获取该宿舍楼的所有 room</li>\n<li>?buildingId=[Number]&amp;layer=[Number]: 获取该宿舍楼某一楼层的所有 room</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["room","getRooms"],"host":["http://localhost:8080/api"],"query":[{"key":"buildingId","value":"1"},{"disabled":true,"key":"layer","value":"1"}],"variable":[]}},"response":[{"id":"c3358fb1-f2d7-4218-9df0-73a1ae38ee09","name":"查看宿舍楼id为1的宿舍楼1层的宿舍","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/room/getRooms?buildingId=1&layer=1","host":["http://localhost:8080/api"],"path":["room","getRooms"],"query":[{"key":"buildingId","value":"1"},{"key":"layer","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"199"},{"key":"Date","value":"Fri, 14 Feb 2020 13:34:30 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"rooms\": [\n            {\n                \"id\": 1,\n                \"number\": 101,\n                \"status\": 1,\n                \"buildingId\": 1,\n                \"createdAt\": \"2020-02-14T13:09:56.000Z\",\n                \"updatedAt\": \"2020-02-14T13:09:56.000Z\",\n                \"deletedAt\": null,\n                \"floorId\": 1\n            }\n        ]\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"00042e26-581d-404c-a3c7-bbd1627bac3f"},{"name":"getRoomInfo","id":"2356b535-4413-4929-bbb4-e76c07f4a240","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/room/getRoomInfo?roomId=1","description":"<p>获取房间的所有信息，包含学生、宿舍楼、楼层</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["room","getRoomInfo"],"host":["http://localhost:8080/api"],"query":[{"key":"roomId","value":"1"}],"variable":[]}},"response":[{"id":"68e59d86-a29a-4ef9-81c6-5ae4b75779e9","name":"获取成功","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/room/getRoomInfo?roomId=1","host":["http://localhost:8080/api"],"path":["room","getRoomInfo"],"query":[{"key":"roomId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1410"},{"key":"Date","value":"Sun, 23 Feb 2020 10:29:51 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 1,\n        \"number\": 101,\n        \"buildingId\": 1,\n        \"status\": 1,\n        \"peopleNum\": 6,\n        \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n        \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n        \"deletedAt\": null,\n        \"floorId\": 1,\n        \"floor\": {\n            \"id\": 1,\n            \"layer\": 1,\n            \"buildingId\": 1,\n            \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n            \"updatedAt\": \"2020-02-22T16:08:44.000Z\",\n            \"deletedAt\": null,\n            \"cleanerId\": 2\n        },\n        \"building\": {\n            \"id\": 1,\n            \"name\": \"通天苑\",\n            \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n            \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n            \"deletedAt\": null\n        },\n        \"users\": [\n            {\n                \"id\": 1,\n                \"account\": \"123456\",\n                \"password\": \"$2a$10$t9RBETUL6ix9Qzc2djw1JOsHn4YFmuKaurGI0UTEz06rnGd..oKei\",\n                \"role\": \"student\",\n                \"name\": \"王麻\",\n                \"phone\": \"12222222222\",\n                \"checkTime\": \"2020-02-15T14:57:14.000Z\",\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-19T15:46:09.000Z\",\n                \"deletedAt\": null,\n                \"roomId\": 1\n            },\n            {\n                \"id\": 4,\n                \"account\": \"111111\",\n                \"password\": \"$2a$10$Zm41SRjOlSYl2ph3.YwL/.X340x5PBdr46MOOeKDJjblHBbAYqEl2\",\n                \"role\": \"student\",\n                \"name\": \"哇水水\",\n                \"phone\": \"123456789011\",\n                \"checkTime\": \"2020-02-15T14:34:55.000Z\",\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"roomId\": 1\n            },\n            {\n                \"id\": 5,\n                \"account\": \"222222\",\n                \"password\": \"$2a$10$JAeYA769PDtIL6oqHvv7TOTaFOJZGK7iOwXsxJiMxcZb/VYNXbtrK\",\n                \"role\": \"student\",\n                \"name\": \"王大拿\",\n                \"phone\": \"123456789011\",\n                \"checkTime\": \"2020-02-15T14:34:55.000Z\",\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"roomId\": 1\n            }\n        ]\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"2356b535-4413-4929-bbb4-e76c07f4a240"},{"name":"updateInfo","id":"37e86466-a5f2-486b-ac6d-7299647ed5e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"roomId\": 1,\n    \"peopleNum\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/room/updateInfo?=","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["room","updateInfo"],"host":["http://localhost:8080/api"],"query":[{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"37e86466-a5f2-486b-ac6d-7299647ed5e3"}],"id":"40763603-cfe0-4910-986e-569c27e1bd71","_postman_id":"40763603-cfe0-4910-986e-569c27e1bd71","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"evaluate","item":[{"name":"getEvaluates","id":"ffa5c325-e685-4b7e-8fbd-2eab31c3bdf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/evaluate/getEvaluates?userId=2","description":"<p>获取评价信息，传入的 url query 分为以下情况：</p>\n<ol>\n<li>?userId=[] 获取创建者创建的评价</li>\n<li>?roomId=[] 获取该房间的评价</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["evaluate","getEvaluates"],"host":["http://localhost:8080/api"],"query":[{"key":"userId","value":"2"},{"disabled":true,"key":"roomId","value":"1"}],"variable":[]}},"response":[{"id":"ab23cdf2-6bb6-4344-9241-baa8c12a291b","name":"获取评价信息","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/evaluate/getEvaluate?userId=2","host":["http://localhost:8080/api"],"path":["evaluate","getEvaluate"],"query":[{"key":"userId","value":"2"},{"key":"roomId","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"230"},{"key":"Date","value":"Sat, 15 Feb 2020 14:54:51 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"evaluates\": [\n            {\n                \"id\": 1,\n                \"score\": 98,\n                \"note\": \"宿舍不错\",\n                \"createdAt\": \"2020-02-15T14:34:55.000Z\",\n                \"updatedAt\": \"2020-02-15T14:34:55.000Z\",\n                \"deletedAt\": null,\n                \"userId\": 2,\n                \"roomId\": 1,\n                \"userName\": \"王晓鹏\"\n            }\n        ]\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"ffa5c325-e685-4b7e-8fbd-2eab31c3bdf8"}],"id":"7eb47a0a-3b32-41f3-a1ff-4ce0faffaf80","_postman_id":"7eb47a0a-3b32-41f3-a1ff-4ce0faffaf80","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"record","item":[{"name":"addRecord","id":"be7736a3-fe81-4c07-904b-979d492f641d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": \"getup\"\n}"},"url":"http://localhost:8080/api/record/addRecord","description":"<p>添加一条记录，post 数据如下</p>\n<ul>\n<li>type:string 记录的类型，为 <code>getup</code> <code>clean</code> <code>back</code> 这三个值</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["record","addRecord"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"be7736a3-fe81-4c07-904b-979d492f641d"},{"name":"getUserRecords","id":"72297930-6745-49bb-8db4-122dae66ab35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/record/getUserRecords?type=clean&userId=1&days=7","description":"<p>获取用户的记录，传入的 url query 分为以下几个必传参数：</p>\n<ol>\n<li>type: 查询的记录类型，可能指为 <code>getup</code> <code>back</code> <code>clean</code></li>\n<li>userId: 查询的用户id</li>\n<li>days: 查询的天数</li>\n<li>pure: 是否获取未被填充的纯洁的数据</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["record","getUserRecords"],"host":["http://localhost:8080/api"],"query":[{"description":{"content":"<p>查询的记录类型</p>\n","type":"text/plain"},"key":"type","value":"clean"},{"description":{"content":"<p>查询的用户id</p>\n","type":"text/plain"},"key":"userId","value":"1"},{"description":{"content":"<p>查询的天数</p>\n","type":"text/plain"},"key":"days","value":"7"},{"disabled":true,"key":"pure","value":"true"}],"variable":[]}},"response":[{"id":"5622b3e4-a267-4e49-b4a5-83d388b010ff","name":"获取用户最近7天的起床记录","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/record/getUserRecords?type=getup&userId=1&days=7","host":["http://localhost:8080/api"],"path":["record","getUserRecords"],"query":[{"key":"type","value":"getup","description":"查询的记录类型"},{"key":"userId","value":"1","description":"查询的用户id"},{"key":"days","value":"7","description":"查询的天数"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1074"},{"key":"Date","value":"Sun, 16 Feb 2020 14:54:37 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": {\r\n        \"records\": [\r\n            {\r\n                \"id\": \"fake0\",\r\n                \"roomId\": 1,\r\n                \"userId\": \"1\",\r\n                \"createdAt\": \"2020-02-09T16:00:00.000Z\",\r\n                \"time\": null,\r\n                \"date\": \"2020-02-10\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            },\r\n            {\r\n                \"id\": \"fake1\",\r\n                \"roomId\": 1,\r\n                \"userId\": \"1\",\r\n                \"createdAt\": \"2020-02-10T16:00:00.000Z\",\r\n                \"time\": null,\r\n                \"date\": \"2020-02-11\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            },\r\n            {\r\n                \"id\": \"fake2\",\r\n                \"roomId\": 1,\r\n                \"userId\": \"1\",\r\n                \"createdAt\": \"2020-02-11T16:00:00.000Z\",\r\n                \"time\": null,\r\n                \"date\": \"2020-02-12\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            },\r\n            {\r\n                \"id\": \"fake3\",\r\n                \"roomId\": 1,\r\n                \"userId\": \"1\",\r\n                \"createdAt\": \"2020-02-12T16:00:00.000Z\",\r\n                \"time\": null,\r\n                \"date\": \"2020-02-13\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            },\r\n            {\r\n                \"id\": \"fake4\",\r\n                \"roomId\": 1,\r\n                \"userId\": \"1\",\r\n                \"createdAt\": \"2020-02-13T16:00:00.000Z\",\r\n                \"time\": null,\r\n                \"date\": \"2020-02-14\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            },\r\n            {\r\n                \"id\": 8,\r\n                \"createdAt\": \"2020-02-15T12:11:17.000Z\",\r\n                \"userId\": 1,\r\n                \"roomId\": 1,\r\n                \"time\": \"20:02\",\r\n                \"date\": \"2020-02-15\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            },\r\n            {\r\n                \"id\": 9,\r\n                \"createdAt\": \"2020-02-16T12:12:00.000Z\",\r\n                \"userId\": 1,\r\n                \"roomId\": 1,\r\n                \"time\": \"20:02\",\r\n                \"date\": \"2020-02-16\",\r\n                \"userName\": \"杰克王\",\r\n                \"roomNumber\": 101\r\n            }\r\n        ]\r\n    },\r\n    \"msg\": \"\"\r\n}"}],"_postman_id":"72297930-6745-49bb-8db4-122dae66ab35"},{"name":"getRoomRecords","id":"68c16055-ef39-4950-9869-15eb068c7b4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/record/getRoomRecords?type=clean&roomId=1&days=7&pure=true","description":"<p>获取宿舍相关的记录，传入的 url query 参数如下：</p>\n<ol>\n<li>type: 可能值为 <code>clean</code> <code>getup</code> <code>back</code></li>\n<li>roomId: 宿舍的ID</li>\n<li>days: 查询天数</li>\n<li>pure: 是否获取未被填充的纯洁的数据</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["record","getRoomRecords"],"host":["http://localhost:8080/api"],"query":[{"description":{"content":"<p>可能值为 clean getup back</p>\n","type":"text/plain"},"key":"type","value":"clean"},{"description":{"content":"<p>宿舍的ID</p>\n","type":"text/plain"},"key":"roomId","value":"1"},{"description":{"content":"<p>查询天数</p>\n","type":"text/plain"},"key":"days","value":"7"},{"key":"pure","value":"true"}],"variable":[]}},"response":[{"id":"debaa4a4-78a0-48d3-8b03-2e7966a3ed93","name":"宿舍的打扫记录","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{token}}"}],"url":{"raw":"http://localhost:8080/api/record/getRoomRecords?type=clean&roomId=1&days=7&pure=true","host":["http://localhost:8080/api"],"path":["record","getRoomRecords"],"query":[{"key":"type","value":"clean","description":"可能值为 clean getup back"},{"key":"roomId","value":"1","description":"宿舍的ID"},{"key":"days","value":"7","description":"查询天数"},{"key":"pure","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"496"},{"key":"Date","value":"Wed, 19 Feb 2020 14:17:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"records\": [\n            {\n                \"id\": 1,\n                \"createdAt\": \"2020-02-12T21:46:16.000Z\",\n                \"userId\": 1,\n                \"roomId\": 1,\n                \"date\": \"2020-02-13\",\n                \"time\": \"05:46\",\n                \"userName\": \"杰克王\",\n                \"roomNumber\": 101\n            },\n            {\n                \"id\": 2,\n                \"createdAt\": \"2020-02-16T21:46:36.000Z\",\n                \"userId\": 1,\n                \"roomId\": 1,\n                \"date\": \"2020-02-17\",\n                \"time\": \"05:46\",\n                \"userName\": \"杰克王\",\n                \"roomNumber\": 101\n            },\n            {\n                \"id\": 3,\n                \"createdAt\": \"2020-02-19T14:12:22.000Z\",\n                \"userId\": 4,\n                \"roomId\": 1,\n                \"date\": \"2020-02-19\",\n                \"time\": \"22:12\",\n                \"userName\": \"哇水水\",\n                \"roomNumber\": 101\n            }\n        ],\n        \"type\": \"clean\"\n    },\n    \"msg\": \"\"\n}"},{"id":"f3580480-facf-4ead-9af3-5380ada63ad5","name":"查询宿舍最近7天的起床情况","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/record/getRoomRecords?type=getup&roomId=1&days=7","host":["http://localhost:8080/api"],"path":["record","getRoomRecords"],"query":[{"key":"type","value":"getup","description":"可能值为 clean getup back"},{"key":"roomId","value":"1","description":"宿舍的ID"},{"key":"days","value":"7","description":"查询天数"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3178"},{"key":"Date","value":"Sun, 16 Feb 2020 14:52:40 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true,\r\n    \"data\": {\r\n        \"records\": {\r\n            \"杰克王\": [\r\n                {\r\n                    \"id\": \"fake0\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 1,\r\n                    \"createdAt\": \"2020-02-09T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-10\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake1\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 1,\r\n                    \"createdAt\": \"2020-02-10T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-11\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake2\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 1,\r\n                    \"createdAt\": \"2020-02-11T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-12\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake3\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 1,\r\n                    \"createdAt\": \"2020-02-12T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-13\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake4\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 1,\r\n                    \"createdAt\": \"2020-02-13T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-14\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": 8,\r\n                    \"createdAt\": \"2020-02-15T12:11:17.000Z\",\r\n                    \"userId\": 1,\r\n                    \"roomId\": 1,\r\n                    \"time\": \"20:02\",\r\n                    \"date\": \"2020-02-15\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": 9,\r\n                    \"createdAt\": \"2020-02-16T12:12:00.000Z\",\r\n                    \"userId\": 1,\r\n                    \"roomId\": 1,\r\n                    \"time\": \"20:02\",\r\n                    \"date\": \"2020-02-16\",\r\n                    \"userName\": \"杰克王\",\r\n                    \"roomNumber\": 101\r\n                }\r\n            ],\r\n            \"哇水水\": [\r\n                {\r\n                    \"id\": \"fake0\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-09T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-10\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake1\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-10T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-11\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake2\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-11T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-12\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake3\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-12T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-13\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake4\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-13T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-14\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake5\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-14T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-15\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake6\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 4,\r\n                    \"createdAt\": \"2020-02-15T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-16\",\r\n                    \"userName\": \"哇水水\",\r\n                    \"roomNumber\": 101\r\n                }\r\n            ],\r\n            \"王大拿\": [\r\n                {\r\n                    \"id\": \"fake0\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-09T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-10\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake1\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-10T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-11\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake2\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-11T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-12\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake3\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-12T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-13\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake4\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-13T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-14\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake5\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-14T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-15\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                },\r\n                {\r\n                    \"id\": \"fake6\",\r\n                    \"roomId\": 1,\r\n                    \"userId\": 5,\r\n                    \"createdAt\": \"2020-02-15T16:00:00.000Z\",\r\n                    \"time\": null,\r\n                    \"date\": \"2020-02-16\",\r\n                    \"userName\": \"王大拿\",\r\n                    \"roomNumber\": 101\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    \"msg\": \"\"\r\n}"}],"_postman_id":"68c16055-ef39-4950-9869-15eb068c7b4b"},{"name":"getLineChartData","id":"319d01ba-66bf-401a-90e9-b8f063c06273","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/record/getLineChartData?type=back&roomId=1","description":"<p>获取一个宿舍的折线图，参数如下：</p>\n<ol>\n<li>type: 获取的折线图类型，可选值为 <code>getup</code> <code>back</code> <code>clean</code></li>\n<li>roomId: 获取数据的宿舍id</li>\n</ol>\n<p>概率计算：</p>\n<ul>\n<li>起床概率，在一天中每天在05:00到08:00之间打卡的被视为早起，大于08:00的被视为晚起</li>\n<li>归宿概率，在一天中每天在19:00到22:00之间打卡的被视为早归，大于22:00的被视为晚归</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["record","getLineChartData"],"host":["http://localhost:8080/api"],"query":[{"key":"type","value":"back"},{"key":"roomId","value":"1"}],"variable":[]}},"response":[{"id":"10deeaf7-654a-4c32-88c3-6ac771ed989e","name":"折线图记录","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/record/getLineChartData?type=getup&roomId=1","host":["http://localhost:8080/api"],"path":["record","getLineChartData"],"query":[{"key":"type","value":"getup"},{"key":"roomId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"Date","value":"Mon, 17 Feb 2020 13:03:12 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"charData\": {\n            \"columns\": [\n                \"周期\",\n                \"杰克王\",\n                \"哇水水\",\n                \"王大拿\"\n            ],\n            \"rows\": [\n                {\n                    \"周期\": \"最近7天\",\n                    \"杰克王\": \"0.1429\",\n                    \"哇水水\": \"0.0000\",\n                    \"王大拿\": \"0.0000\"\n                },\n                {\n                    \"周期\": \"最近14天\",\n                    \"杰克王\": \"0.0714\",\n                    \"哇水水\": \"0.0000\",\n                    \"王大拿\": \"0.0000\"\n                },\n                {\n                    \"周期\": \"最近21天\",\n                    \"杰克王\": \"0.0476\",\n                    \"哇水水\": \"0.0000\",\n                    \"王大拿\": \"0.0000\"\n                },\n                {\n                    \"周期\": \"最近28天\",\n                    \"杰克王\": \"0.0357\",\n                    \"哇水水\": \"0.0000\",\n                    \"王大拿\": \"0.0000\"\n                },\n                {\n                    \"周期\": \"最近35天\",\n                    \"杰克王\": \"0.0286\",\n                    \"哇水水\": \"0.0000\",\n                    \"王大拿\": \"0.0000\"\n                }\n            ]\n        }\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"319d01ba-66bf-401a-90e9-b8f063c06273"},{"name":"getUserProbability","id":"f80384b6-d88c-4142-bd47-9ea39527853c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/record/getUserProbability?userId=1","description":"<p>获取用户的早起率、早归率、打扫频率，参数如下：</p>\n<ol>\n<li>?userId=[] 用户ID</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["record","getUserProbability"],"host":["http://localhost:8080/api"],"query":[{"key":"userId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"f80384b6-d88c-4142-bd47-9ea39527853c"},{"name":"getRecordTableData","id":"9a7193f4-a8ef-4bca-9f65-0750d26c585d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/record/getRecordTableData?type=getup&buildingId=1&startTime=1577808000000&endTime=1580400000000","description":"<p>获取记录表格数据：</p>\n<ul>\n<li>type: 获取的记录类型（必选）</li>\n<li>current: 当前页（可选，默认1）</li>\n<li>step: 分页间隔（可选，默认10）</li>\n<li>buildingId （可选）</li>\n<li>floorId（可选）</li>\n<li>roomId (可选)</li>\n<li>userId(可选)</li>\n<li>startTime: 起始时间（可选）</li>\n<li>endTime：结束时间（可选）</li>\n</ul>\n<p>返回数据：</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"current\": 1,\n    \"step\": 10,\n    \"total\": 100,\n    \"records\": [\n        {\n            \"id\": 1,\n            \"userId\": 1,\n            \"userName\": \"王麻子\",\n            \"buildingId\": 1,\n            \"buildingName\": \"于欣苑\",\n            \"roomId\": 1,\n            \"roomNumber\": 203,\n            \"createdAt\": Date,\n            \"date\": \"2019-10-10\",\n            \"time\": \"18:00\",\n            \"early\": true\n        }\n    ],\n    \"type\": \"getup\"\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["record","getRecordTableData"],"host":["http://localhost:8080/api"],"query":[{"key":"type","value":"getup"},{"disabled":true,"key":"step","value":"3"},{"disabled":true,"key":"current","value":"1"},{"disabled":true,"key":"userId","value":"1"},{"disabled":true,"key":"roomId","value":"1"},{"disabled":true,"key":"floorId","value":"1"},{"key":"buildingId","value":"1"},{"key":"startTime","value":"1577808000000"},{"key":"endTime","value":"1580400000000"}],"variable":[]}},"response":[],"_postman_id":"9a7193f4-a8ef-4bca-9f65-0750d26c585d"}],"id":"ab5ab302-5168-43aa-9b01-60dbec2161b5","_postman_id":"ab5ab302-5168-43aa-9b01-60dbec2161b5","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"cleaner","item":[{"name":"addCleaner","id":"c28c9156-7fd7-4f87-9a7c-3954960dee7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"巫山阿姨\",\n\t\"phone\": \"12233333333\"\n}"},"url":"http://localhost:8080/api/cleaner/addCleaner","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["cleaner","addCleaner"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c28c9156-7fd7-4f87-9a7c-3954960dee7e"},{"name":"delCleaner","id":"62973206-e0e8-4c47-85e4-d1ad87d93ba1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/cleaner/delCleaner?cleanerId=2","description":"<p>删除一个保洁员</p>\n","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["cleaner","delCleaner"],"host":["http://localhost:8080/api"],"query":[{"key":"cleanerId","value":"2"}],"variable":[]}},"response":[{"id":"1b0209be-dea1-4a54-a0e3-e903c6a6e3f5","name":"删除失败","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/cleaner/delCleaner?cleanerId=2","host":["http://localhost:8080/api"],"path":["cleaner","delCleaner"],"query":[{"key":"cleanerId","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"Date","value":"Sat, 22 Feb 2020 11:12:14 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"effectRow\": 0\n    },\n    \"msg\": \"\"\n}"},{"id":"5ef1a04e-5e67-4d04-8b26-855afbfc33c5","name":"删除成功","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{suToken}}","type":"text"}],"url":{"raw":"http://localhost:8080/api/cleaner/delCleaner?cleanerId=2","host":["http://localhost:8080/api"],"path":["cleaner","delCleaner"],"query":[{"key":"cleanerId","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"Date","value":"Sat, 22 Feb 2020 11:12:42 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"effectRow\": 1\n    },\n    \"msg\": \"\"\n}"}],"_postman_id":"62973206-e0e8-4c47-85e4-d1ad87d93ba1"}],"id":"66c77237-4c87-4ecb-889c-41d8cfa080e9","_postman_id":"66c77237-4c87-4ecb-889c-41d8cfa080e9","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"faculty","item":[{"name":"list","id":"b8028cfe-2b81-4e5a-8d43-228b8cfeeae8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/faculty/list","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["faculty","list"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8028cfe-2b81-4e5a-8d43-228b8cfeeae8"}],"id":"9414c46c-341b-443c-bd8f-464c1f2dccb6","_postman_id":"9414c46c-341b-443c-bd8f-464c1f2dccb6","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}},{"name":"visitor","item":[{"name":"list","id":"ed9c09b9-5d18-4359-982a-e99a7a1fc9a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/visitor/list","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}},"urlObject":{"path":["visitor","list"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed9c09b9-5d18-4359-982a-e99a7a1fc9a3"}],"id":"d296d82d-fd0a-41f3-b701-e06963a15989","_postman_id":"d296d82d-fd0a-41f3-b701-e06963a15989","description":"","auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":true,"source":{"_postman_id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","id":"bbcd80b0-26a4-4f1b-bdce-f8bc16c3b175","name":"DormitoryManagement","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"token":"<token>"}},"event":[{"listen":"prerequest","script":{"id":"c74a9dcd-0ba3-4f87-bcf8-e4fa723050f9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"61829c1a-e6d0-46d2-a2fd-e5b270cefde1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"http://localhost:8080/api","type":"string"}]}