{"info":{"_postman_id":"eb27ac35-d6b1-4f94-a4b2-d4112fdbe3aa","name":"Uni-Chat-ApiTest","description":"<html><head></head><body><h1 id=\"uni-chatapi\">Uni-Chat即时通讯的API</h1>\n<h2 id=\"积极开发中ing。。。\">积极开发中ing。。。</h2>\n<p><a href=\"https://www.getpostman.com/collections/5506be3cae4dd3d33622\">https://www.getpostman.com/collections/5506be3cae4dd3d33622</a></p>\n<p> 现在写好的在<code>Dev</code>这个文件夹里面</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Uni-Chat即时通讯的API","slug":"uni-chatapi"}],"owner":"9354871","collectionId":"eb27ac35-d6b1-4f94-a4b2-d4112fdbe3aa","publishedId":"SW14Vx63","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-11-04T16:02:43.000Z"},"item":[{"name":"Dev","item":[{"name":"用户注册","event":[{"listen":"prerequest","script":{"id":"0e1d2233-f363-4de0-9548-238d4fc2f080","exec":[""],"type":"text/javascript"}}],"id":"32b28212-085f-4629-bbdd-9278f32110d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":" text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3","type":"text"},{"key":"Accept-Encoding","value":" gzip, deflate, br","type":"text"},{"key":"Accept-Language","value":" zh-CN,zh;q=0.9,fr-FR;q=0.8,fr;q=0.7,zh-TW;q=0.6,en;q=0.5","type":"text"},{"key":"Cache-Control","value":" max-age=0","type":"text"},{"key":"Connection","value":" keep-alive","type":"text"},{"key":"DNT","value":" 1","type":"text"},{"key":"Host","value":" 127.0.0.1:10010","type":"text"},{"key":"Sec-Fetch-Mode","value":" navigate","type":"text"},{"key":"Sec-Fetch-Site","value":" none","type":"text"},{"key":"Sec-Fetch-User","value":" ?1","type":"text"},{"key":"Upgrade-Insecure-Requests","value":" 1","type":"text"},{"key":"User-Agent","value":" Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"nickname","value":"unichat","type":"text"},{"key":"password","value":"unichatunichat","type":"text"},{"key":"emailAddr","value":"1197750415@qq.com","type":"text"},{"key":"profile","value":"","type":"text","disabled":true},{"key":"captcha","value":"hw","type":"text"}]},"url":"http://{{apiServer}}:10010/signup","description":"<h2 id=\"用户注册逻辑\">用户注册逻辑</h2>\n<h3 id=\"post-请求\"><code>POST</code> 请求</h3>\n","urlObject":{"protocol":"http","port":"10010","path":["signup"],"host":["{{apiServer}}"],"query":[],"variable":[]}},"response":[{"id":"8818e929-051b-4710-9542-82a12acc66ba","name":"用户注册成功","originalRequest":{"method":"POST","header":[{"key":"Accept","value":" text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3","type":"text"},{"key":"Accept-Encoding","value":" gzip, deflate, br","type":"text"},{"key":"Accept-Language","value":" zh-CN,zh;q=0.9,fr-FR;q=0.8,fr;q=0.7,zh-TW;q=0.6,en;q=0.5","type":"text"},{"key":"Cache-Control","value":" max-age=0","type":"text"},{"key":"Connection","value":" keep-alive","type":"text"},{"key":"Cookie","value":" connect.sid=s%3AWhg5YQ3C6Z-4PID0oVhU8Hv5Z-VVJIFY.zvVbcneLW4kl%2FpKy3dWBiMTmS8c%2FZl0YuLjv7E4TcsM","type":"text"},{"key":"DNT","value":" 1","type":"text"},{"key":"Host","value":" 47.102.140.37:10010","type":"text"},{"key":"Sec-Fetch-Mode","value":" navigate","type":"text"},{"key":"Sec-Fetch-Site","value":" none","type":"text"},{"key":"Sec-Fetch-User","value":" ?1","type":"text"},{"key":"Upgrade-Insecure-Requests","value":" 1","type":"text"},{"key":"User-Agent","value":" Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36","type":"text"}],"url":{"raw":"https://47.102.140.37:10010/signup?nickname=unichat&password=unichatunichat&emailAddr=1111133u@dad.com&captcha=4","protocol":"https","host":["47","102","140","37"],"port":"10010","path":["signup"],"query":[{"key":"nickname","value":"unichat"},{"key":"password","value":"unichatunichat"},{"key":"emailAddr","value":"1111133u@dad.com"},{"key":"profile","value":"","type":"text","disabled":true},{"key":"captcha","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"81"},{"key":"ETag","value":"W/\"51-UEcPALjnaYgZbMIUre8ZAMcNKb0\""},{"key":"Set-Cookie","value":"connect.sid=s%3AWhg5YQ3C6Z-4PID0oVhU8Hv5Z-VVJIFY.zvVbcneLW4kl%2FpKy3dWBiMTmS8c%2FZl0YuLjv7E4TcsM; Path=/; Expires=Sat, 18 Jan 2020 01:13:10 GMT; HttpOnly; Secure"},{"key":"Date","value":"Tue, 19 Nov 2019 01:13:10 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"ok\",\"desc\":{\"nickname\":\"unichat\",\"uid\":31524353},\"msg\":\"注册成功\"}"},{"id":"baa52c9f-897c-4397-8aa5-7d13397201ad","name":"用户注册昵称被占用","originalRequest":{"method":"POST","header":[{"key":"Accept","value":" text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3","type":"text"},{"key":"Accept-Encoding","value":" gzip, deflate, br","type":"text"},{"key":"Accept-Language","value":" zh-CN,zh;q=0.9,fr-FR;q=0.8,fr;q=0.7,zh-TW;q=0.6,en;q=0.5","type":"text"},{"key":"Cache-Control","value":" max-age=0","type":"text"},{"key":"Connection","value":" keep-alive","type":"text"},{"key":"Cookie","value":"connect.sid=s%3AWhg5YQ3C6Z-4PID0oVhU8Hv5Z-VVJIFY.zvVbcneLW4kl%2FpKy3dWBiMTmS8c%2FZl0YuLjv7E4TcsM; Path=/; Expires=Sat, 18 Jan 2020 01:15:00 GMT; HttpOnly; Secure","type":"text"},{"key":"DNT","value":" 1","type":"text"},{"key":"Host","value":" 47.102.140.37:10010","type":"text"},{"key":"Sec-Fetch-Mode","value":" navigate","type":"text"},{"key":"Sec-Fetch-Site","value":" none","type":"text"},{"key":"Sec-Fetch-User","value":" ?1","type":"text"},{"key":"Upgrade-Insecure-Requests","value":" 1","type":"text"},{"key":"User-Agent","value":" Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36","type":"text"}],"url":{"raw":"https://47.102.140.37:10010/signup?nickname=unichat&password=unichatunichat&emailAddr=1111133u@dad.com&captcha=61","protocol":"https","host":["47","102","140","37"],"port":"10010","path":["signup"],"query":[{"key":"nickname","value":"unichat","description":"昵称"},{"key":"password","value":"unichatunichat","description":"密码"},{"key":"emailAddr","value":"1111133u@dad.com","description":"邮箱地址"},{"key":"profile","value":"","type":"text","disabled":true},{"key":"captcha","value":"61","description":"验证码"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"99"},{"key":"ETag","value":"W/\"63-uFxjBn1ifKPGzOwnaYW6JRR2fgc\""},{"key":"Set-Cookie","value":"connect.sid=s%3AWhg5YQ3C6Z-4PID0oVhU8Hv5Z-VVJIFY.zvVbcneLW4kl%2FpKy3dWBiMTmS8c%2FZl0YuLjv7E4TcsM; Path=/; Expires=Sat, 18 Jan 2020 01:15:59 GMT; HttpOnly; Secure"},{"key":"Date","value":"Tue, 19 Nov 2019 01:15:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\"status\":\"failed\",\"desc\":\"nickname [unichat] has been taken.\",\"msg\":\"昵称[unichat]已被占用\"}"}],"_postman_id":"32b28212-085f-4629-bbdd-9278f32110d3"},{"name":"获取验证码","id":"5fccc4e7-c972-4f09-a780-8dbc7bbd33c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{apiServer}}:10010/captcha","description":"<h2 id=\"验证码验证\">验证码验证</h2>\n","urlObject":{"protocol":"http","port":"10010","path":["captcha"],"host":["{{apiServer}}"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"5fccc4e7-c972-4f09-a780-8dbc7bbd33c0"},{"name":"登录","event":[{"listen":"prerequest","script":{"id":"3b15ac36-318d-469b-8f52-a85c7c1f792a","exec":["let  password = \"unichatunichat\";","let yzm = \"fd\";","let  sha256Password   = CryptoJS.SHA256(password).toString();","sha256Password  =CryptoJS.SHA256(sha256Password + yzm);","pm.environment.set(\"sha256Password\", sha256Password.toString());","","console.log(sha256Password);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"36c8f0e3-c19e-4626-aa3e-41a8d7c94af6","exec":["console.log(\"Test\")"],"type":"text/javascript"}}],"id":"6af448e7-1723-4eb8-bc85-eb34a8f43e55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"nickname","value":"unichat","type":"text"},{"key":"emailAddr","value":"1111133u@dad.com","type":"text","disabled":true},{"key":"passwordHash","value":"{{sha256Password}}","type":"text"},{"key":"captcha","value":"fd","type":"text"}]},"url":"http://{{apiServer}}:10010/signin","description":"<h2 id=\"登录应该是post\">登录应该是Post</h2>\n","urlObject":{"protocol":"http","port":"10010","path":["signin"],"host":["{{apiServer}}"],"query":[{"disabled":true,"key":"nickname","value":"unichat"},{"disabled":true,"key":"emailAddr","value":"1111133u@dad.com"},{"disabled":true,"key":"passwordHash","value":"{{sha256Password}}"},{"disabled":true,"key":"captcha","value":"da"}],"variable":[]}},"response":[{"id":"65ce7e49-dc5a-4418-9613-b3550c8084a0","name":"登录成功","originalRequest":{"method":"GET","header":[{"key":"Accept","value":" text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3","type":"text"},{"key":"Accept-Encoding","value":" gzip, deflate, br","type":"text"},{"key":"Accept-Language","value":" zh-CN,zh;q=0.9,fr-FR;q=0.8,fr;q=0.7,zh-TW;q=0.6,en;q=0.5","type":"text"},{"key":"Cache-Control","value":" max-age=0","type":"text"},{"key":"Connection","value":" keep-alive","type":"text"},{"key":"Cookie","value":"connect.sid=s%3AWhg5YQ3C6Z-4PID0oVhU8Hv5Z-VVJIFY.zvVbcneLW4kl%2FpKy3dWBiMTmS8c%2FZl0YuLjv7E4TcsM; Path=/; Expires=Sat, 18 Jan 2020 01:15:00 GMT; HttpOnly; Secure","type":"text"},{"key":"DNT","value":" 1","type":"text"},{"key":"Host","value":" 47.102.140.37:10010","type":"text"},{"key":"Sec-Fetch-Mode","value":" navigate","type":"text"},{"key":"Sec-Fetch-Site","value":" none","type":"text"},{"key":"Sec-Fetch-User","value":" ?1","type":"text"},{"key":"Upgrade-Insecure-Requests","value":" 1","type":"text"},{"key":"User-Agent","value":" Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36","type":"text"}],"url":{"raw":"https://47.102.140.37:10010/signin?nickname=unichat&emailAddr=1111133u@dad.com&passwordHash=e446dfdcb948542766245e5d81d387f9c336f9133728e31eb760c2f7218b6b5b&captcha=-5","protocol":"https","host":["47","102","140","37"],"port":"10010","path":["signin"],"query":[{"key":"nickname","value":"unichat","description":"昵称"},{"key":"emailAddr","value":"1111133u@dad.com","description":"邮箱地址"},{"key":"passwordHash","value":"e446dfdcb948542766245e5d81d387f9c336f9133728e31eb760c2f7218b6b5b","description":"密码的 hash "},{"key":"captcha","value":"-5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-+hLezto138/wb7+bhw2orbO/lzY\""},{"key":"Set-Cookie","value":"connect.sid=s%3AWhg5YQ3C6Z-4PID0oVhU8Hv5Z-VVJIFY.zvVbcneLW4kl%2FpKy3dWBiMTmS8c%2FZl0YuLjv7E4TcsM; Path=/; Expires=Sat, 18 Jan 2020 01:23:19 GMT; HttpOnly; Secure"},{"key":"Date","value":"Tue, 19 Nov 2019 01:23:19 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ok\",\n    \"msg\": \"登陆成功\"\n}"}],"_postman_id":"6af448e7-1723-4eb8-bc85-eb34a8f43e55"}],"id":"ac668dc5-1371-42db-be91-fb9a73b75f8b","_postman_id":"ac668dc5-1371-42db-be91-fb9a73b75f8b","description":""},{"name":"files_文件相关的API","item":[{"name":"获取所有的用户目录","id":"79881cc3-7004-4b28-ab2c-ae0bb91ac661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{apiServer}}:10010/files/dirs","description":"<h2 id=\"返回\">返回</h2>\n<ol>\n<li>用户文件夹名称 </li>\n<li>文件夹下文件个数 </li>\n<li>文件夹创建时间</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"userDir\": \"1197750415\",\n   \"count\": 3,\n   \"createTime\": \"2019-12-06T04:31:25.616Z\"\n}\n</code></pre>\n","urlObject":{"protocol":"http","port":"10010","path":["files","dirs"],"host":["{{apiServer}}"],"query":[],"variable":[]}},"response":[{"id":"9a45abcd-e271-44bd-9f0e-deb8c8122add","name":"获取所有的用户目录","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/files/dirs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"174"},{"key":"ETag","value":"W/\"ae-iI/W42UB4Nj6fQyQcSvBDIzcKdo\""},{"key":"Date","value":"Fri, 06 Dec 2019 07:00:18 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": \"OK\",\n    \"data\": [\n        {\n            \"userDir\": \"1197750415\",\n            \"count\": 3,\n            \"createTime\": \"2019-12-06T04:31:25.616Z\"\n        },\n        {\n            \"userDir\": \"1545690583\",\n            \"count\": 2,\n            \"createTime\": \"2019-12-06T06:39:42.722Z\"\n        }\n    ]\n}"}],"_postman_id":"79881cc3-7004-4b28-ab2c-ae0bb91ac661"},{"name":"上传文件","id":"8c890303-e5ed-4adb-a1b8-1841e9fe1217","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>选择要上传的文件</p>\n","type":"file","src":"/home/cherry/音乐/player.png"}]},"url":"http://{{apiServer}}:10010/files/upload","description":"<h2 id=\"file那里是要上传的文件-可以上传多个\">file那里是要上传的文件 <code>可以上传多个</code></h2>\n","urlObject":{"protocol":"http","port":"10010","path":["files","upload"],"host":["{{apiServer}}"],"query":[],"variable":[]}},"response":[{"id":"a718ac7a-59b7-40ee-8bc2-aaa14f4055da","name":"上传文件成功","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"选择要上传的文件","type":"file","src":"/home/cherry/下载/music.m4a"}]},"url":"http://localhost:3000/files/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-pHh/yHRAtYoGFY7T0Q40zab0SzE\""},{"key":"Date","value":"Fri, 06 Dec 2019 06:50:23 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"A001\",\n    \"data\": \"上传成功！\"\n}"}],"_postman_id":"8c890303-e5ed-4adb-a1b8-1841e9fe1217"},{"name":"下载文件","id":"0818036c-05a7-499d-a073-ff08a7403385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{apiServer}}:10010/files/getFile?filename=gnotes.pdf","urlObject":{"protocol":"http","port":"10010","path":["files","getFile"],"host":["{{apiServer}}"],"query":[{"key":"filename","value":"gnotes.pdf"}],"variable":[]}},"response":[{"id":"63234df2-9a61-4d7f-96cd-ebffbd3753a3","name":"下载文件失败","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/files/getFile?filename=gnotes.pdf","protocol":"http","host":["localhost"],"port":"3000","path":["files","getFile"],"query":[{"key":"filename","value":"gnotes.pdf"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-Sy+cnCiLb7uUB3ihdMjcmva5KkM\""},{"key":"Date","value":"Fri, 06 Dec 2019 07:00:45 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": \"Fail\",\n    \"error_msg\": \"指定文件不存在\"\n}"}],"_postman_id":"0818036c-05a7-499d-a073-ff08a7403385"},{"name":"获取指定用户上传的文件信息","id":"7b192c41-70c9-496d-9174-a33fb4c6dd08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{apiServer}}:10010/files/getFileInfo?limit=5&start=0&getAll=true","urlObject":{"protocol":"http","port":"10010","path":["files","getFileInfo"],"host":["{{apiServer}}"],"query":[{"disabled":true,"description":{"content":"<p>需要查找文件信息的用户的名字</p>\n","type":"text/plain"},"key":"name","value":"1545690583"},{"description":{"content":"<p>限制返回个数</p>\n","type":"text/plain"},"key":"limit","value":"5"},{"description":{"content":"<p>查询记录的开始点</p>\n","type":"text/plain"},"key":"start","value":"0"},{"description":{"content":"<p>是否查找所有的文件为true时limit不生效</p>\n","type":"text/plain"},"key":"getAll","value":"true"}],"variable":[]}},"response":[],"_postman_id":"7b192c41-70c9-496d-9174-a33fb4c6dd08"},{"name":"删除指定文件","id":"67e59a05-ef41-4e2b-93b6-264d3dbf5568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"filename","value":"..\\favicon.ico","type":"text"}]},"url":"http://{{apiServer}}:10010/files/del","urlObject":{"protocol":"http","port":"10010","path":["files","del"],"host":["{{apiServer}}"],"query":[],"variable":[]}},"response":[{"id":"108f0608-d511-4a02-a281-b40b35cac5b2","name":"删除指定文件_删除成功","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"filename","value":"证书.png","type":"text"}]},"url":"http://localhost:3000/files/del"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-JUUtRXM5LOfHl4f91XgcPpFaE5s\""},{"key":"Date","value":"Fri, 06 Dec 2019 07:22:04 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"error_msg\": \"删除成功！\"\n}"},{"id":"583afe43-2aa6-4c5f-8448-252f4bb61144","name":"删除指定文件_文件不存在","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"filename","value":"证书.png","type":"text"}]},"url":"http://localhost:3000/files/del"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-IrRHw/r0PkjxEuktDS++Q2EsMks\""},{"key":"Date","value":"Fri, 06 Dec 2019 07:17:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Fail\",\n    \"error_msg\": \"文件不存在！\"\n}"}],"_postman_id":"67e59a05-ef41-4e2b-93b6-264d3dbf5568"}],"id":"e9aaccdd-cd6f-4ff0-9a2f-ad07ae0de240","description":"<h2 id=\"文件相关api\">文件相关API</h2>\n<ul>\n<li>获取所有的用户目录</li>\n<li>文件上传(单文件, 多文件)</li>\n<li>文件下载</li>\n<li>删除上传的文件</li>\n<li>获取指定用户上传的文件信息</li>\n</ul>\n","_postman_id":"e9aaccdd-cd6f-4ff0-9a2f-ad07ae0de240"},{"name":"获取聊天消息","id":"96dee9ad-1cfa-4abb-ba38-63149135e49f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://uniapi.cheery.pro/query.php","description":"<h2 id=\"wuwuwu-库被偷了-mmp\"><code>WuWuWu</code> 库被偷了. MMP</h2>\n<h3 id=\"11-位的密码都能被偷\">11 位的密码都能被偷</h3>\n","urlObject":{"protocol":"https","path":["query.php"],"host":["uniapi","cheery","pro"],"query":[],"variable":[]}},"response":[{"id":"3562e814-f11c-48fc-b1fa-9fb2fd0b69a1","name":"获取聊天消息成功","originalRequest":{"method":"GET","header":[],"url":"https://uniapi.cheery.pro/query.php"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Nov 2019 06:39:05 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/5.6.40"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"cherrison\",\n        \"msg\": \"hellounichat\"\n    },\n    {\n        \"name\": \"vue\",\n        \"msg\": \"hello vue\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"Hello,Bob!\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"晚上什么课啊?\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"JAVA课的作业能不能借我copy一下!\"\n    },\n    {\n        \"name\": \"Bob\",\n        \"msg\": \"不行你还是自己写吧\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"不行你还是自己写吧\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"不行你还是自己写吧\"\n    },\n    {\n        \"name\": \"Bob\",\n        \"msg\": \"不会啊哥哥\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"hushuai\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"hushuai\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"尼玛的\"\n    },\n    {\n        \"name\": \"小海\",\n        \"msg\": \"大家好\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"php\",\n        \"msg\": \"test\"\n    },\n    {\n        \"name\": \"Alice\",\n        \"msg\": \"不会啊哥哥\"\n    }\n]"}],"_postman_id":"96dee9ad-1cfa-4abb-ba38-63149135e49f"},{"name":"发送聊天消息","id":"e4834705-58fd-4923-85d9-be04157112f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"<p>发送者的名字</p>\n","key":"usr_name","type":"text","value":"小海"},{"description":"<p>发送者的id</p>\n","key":"usr_id","type":"text","value":"123131"},{"description":"<p>接受者的id</p>\n","key":"receiver_id","type":"text","value":"Bob"},{"description":"<p>发送的消息</p>\n","key":"message","type":"text","value":"大家好"},{"description":"<p>发送时间</p>\n","key":"send_time","type":"text","value":"2019/11/3","disabled":true}]},"url":"https://uniapi.cheery.pro/sendmsg.php","description":"<h3 id=\"发送消息\">发送消息</h3>\n","urlObject":{"protocol":"https","path":["sendmsg.php"],"host":["uniapi","cheery","pro"],"query":[],"variable":[]}},"response":[{"id":"6723dcd4-dfc9-4247-ac3d-61c7c4e75674","name":"https://uniapi.cheery.pro/sendmsg.php","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"usr_name","value":"Alice","description":"发送者的名字","type":"text"},{"key":"usr_id","value":"123131","description":"发送者的id","type":"text"},{"key":"receiver_id","value":"Bob","description":"接受者的id","type":"text"},{"key":"message","value":"不行你还是自己写吧","description":"发送的消息","type":"text"},{"key":"send_time","value":"2019/11/3","description":"发送时间","type":"text","disabled":true}]},"url":"https://uniapi.cheery.pro/sendmsg.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 04 Nov 2019 16:17:23 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"close"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/5.6.40"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"新消息发送成功"}],"_postman_id":"e4834705-58fd-4923-85d9-be04157112f8"},{"name":"删除指定聊天信息","id":"3cc8271d-8708-467e-8d81-c77d546cf9d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>用户名字</p>\n","key":"usr_name","type":"text","value":""},{"description":"<p>删除的消息的id(实际用)</p>\n","key":"message_id","type":"text","value":"","disabled":true},{"description":"<p>删除的消息(只测试用)</p>\n","key":"message","type":"text","value":"hushuai"}]},"url":"https://uniapi.cheery.pro/delmsg.php","description":"<h3 id=\"删除数据\">删除数据</h3>\n","urlObject":{"protocol":"https","path":["delmsg.php"],"host":["uniapi","cheery","pro"],"query":[],"variable":[]}},"response":[{"id":"c08e59e9-54fc-44fe-9396-605d55d389f4","name":"删除指定聊天信息(测试)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"用户名字","key":"usr_name","type":"text","value":""},{"description":"删除的消息的id(实际用)","key":"message_id","type":"text","value":"","disabled":true},{"description":"删除的消息(只测试用)","key":"message","type":"text","value":"test"}]},"url":"https://uniapi.cheery.pro/delmsg.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Nov 2019 06:39:42 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/5.6.40"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"消息删除成功"}],"_postman_id":"3cc8271d-8708-467e-8d81-c77d546cf9d4"}],"event":[{"listen":"prerequest","script":{"id":"321c9e20-8b38-43fb-9bdf-972ddb525d52","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d4b064ab-7aed-46bf-b3e7-c09a6a6972be","type":"text/javascript","exec":[""]}}]}