{"info":{"_postman_id":"84a2042a-1911-4033-945f-9c982be85789","name":"Ripple","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10330430","collectionId":"84a2042a-1911-4033-945f-9c982be85789","publishedId":"UVeCQobd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-01-30T12:15:17.000Z"},"item":[{"name":"获取验证码","id":"3612e8d5-58e9-4339-9e24-951cd5c2cbf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/captcha?email=zunicoco@163.com","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"84a2042a-1911-4033-945f-9c982be85789","id":"84a2042a-1911-4033-945f-9c982be85789","name":"Ripple","type":"collection"}},"urlObject":{"path":["users","captcha"],"host":["http://localhost:8080/api"],"query":[{"key":"email","value":"zunicoco@163.com"}],"variable":[]}},"response":[{"id":"ac1d2bfa-4674-44ac-b6d0-43089181c762","name":"获取成功","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/users/captcha?email=13670210824@163.com","host":["http://localhost:8080/api"],"path":["users","captcha"],"query":[{"key":"email","value":"13670210824@163.com"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"61f663e968f29cff08e9263b\",\n        \"captcha\": \"686495\",\n        \"createdAt\": \"2022-01-30T10:09:45.109Z\",\n        \"updatedAt\": \"2022-01-30T13:30:11.318Z\"\n    },\n    \"msg\": \"验证码获取成功\",\n    \"code\": 1\n}"},{"id":"458f5bf4-baa3-44d5-836f-f58f94858b08","name":"获取失败","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/users/captcha?email=123","host":["http://localhost:8080/api"],"path":["users","captcha"],"query":[{"key":"email","value":"123"}]}},"status":"Precondition Failed","code":412,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"stack\": \"PreconditionFailedError: Precondition Failed\\n    at Object.throw (/Users/uni/2022/project/ripple/server/node_modules/koa/lib/context.js:97:11)\\n    at getCaptcha (/Users/uni/2022/project/ripple/server/controllers/tips.js:34:22)\\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\\n    at async /Users/uni/2022/project/ripple/server/app.js:35:3\\n    at async serve (/Users/uni/2022/project/ripple/server/node_modules/koa-static/index.js:53:9)\\n    at async logger (/Users/uni/2022/project/ripple/server/node_modules/koa-logger/index.js:67:7)\\n    at async verifyParam (/Users/uni/2022/project/ripple/server/node_modules/koa-parameter/index.js:52:7)\\n    at async bodyParser (/Users/uni/2022/project/ripple/server/node_modules/koa-bodyparser/index.js:95:5)\",\n    \"message\": \"Precondition Failed\",\n    \"data\": 10001,\n    \"msg\": \"邮箱发送失败，请校验邮箱正确性\",\n    \"code\": 0,\n    \"name\": \"PreconditionFailedError\",\n    \"status\": 412\n}"}],"_postman_id":"3612e8d5-58e9-4339-9e24-951cd5c2cbf1"},{"name":"用户注册","event":[{"listen":"test","script":{"id":"42deaa9b-1f2b-4980-9ee4-b26e42fa7e67","exec":["var jsonData = pm.response.json()","pm.globals.set(\"token\", jsonData.data.token)"],"type":"text/javascript"}}],"id":"60983f7a-1963-4137-8bed-2bff144a0043","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"AClim\",\n    \"password\": \"2\",\n    \"captcha\": \"192459\",\n    \"email\": \"zunicoco@163.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"84a2042a-1911-4033-945f-9c982be85789","id":"84a2042a-1911-4033-945f-9c982be85789","name":"Ripple","type":"collection"}},"urlObject":{"path":["users","register"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"31c929bc-70b6-4c30-ae0d-f1c3539cd025","name":"失败：验证码错误","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"Uni\",\n    \"password\": \"123\",\n    \"captcha\": \"283787\",\n    \"email\": \"13670210824@163.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": 10002,\n    \"msg\": \"验证码错误\",\n    \"code\": 0\n}"},{"id":"ecaefcaf-575e-4a16-b815-2f1483101ac1","name":"成功：用户注册成功，返回token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"Uni\",\n    \"password\": \"123\",\n    \"captcha\": \"283788\",\n    \"email\": \"13670210824@163.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxZjZjNmQxNjU4NDA5NzE0ZWUxNzVhNyIsInVzZXJuYW1lIjoiVW5pIiwiaWF0IjoxNjQzNTYyNzA1LCJleHAiOjE2NDM2NDkxMDV9.l4PShoG039q50V3k3syEx6ntZ-QoP8hiR2Ylg_K04LQ\"\n    },\n    \"msg\": \"注册成功\",\n    \"code\": 1\n}"},{"id":"bb41d3fb-a0f5-4433-b845-aa67e559c5dc","name":"失败：用户邮箱占用","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"Uni\",\n    \"password\": \"123\",\n    \"captcha\": \"283788\",\n    \"email\": \"13670210824@163.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": 10003,\n    \"msg\": \"邮箱已被占用\",\n    \"code\": 0\n}"}],"_postman_id":"60983f7a-1963-4137-8bed-2bff144a0043"},{"name":"辅助接口：删除用户","id":"2bcb1144-5c5d-4b2b-83f5-02974ac2d208","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/delete?email=13670210824@163.com","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"84a2042a-1911-4033-945f-9c982be85789","id":"84a2042a-1911-4033-945f-9c982be85789","name":"Ripple","type":"collection"}},"urlObject":{"path":["users","delete"],"host":["http://localhost:8080/api"],"query":[{"key":"email","value":"13670210824@163.com"}],"variable":[]}},"response":[{"id":"1d62aa8e-4d84-477c-8486-68bdf8cb84eb","name":"失败：删除不存在用户","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/users/delete?email=13670210824@163.com","host":["http://localhost:8080/api"],"path":["users","delete"],"query":[{"key":"email","value":"13670210824@163.com"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"stack\": \"NotFoundError: 用户不存在\\n    at Object.throw (/Users/uni/2022/project/ripple/server/node_modules/koa/lib/context.js:97:11)\\n    at delete (/Users/uni/2022/project/ripple/server/controllers/users.js:76:22)\\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\\n    at async /Users/uni/2022/project/ripple/server/app.js:35:3\\n    at async serve (/Users/uni/2022/project/ripple/server/node_modules/koa-static/index.js:53:9)\\n    at async logger (/Users/uni/2022/project/ripple/server/node_modules/koa-logger/index.js:67:7)\\n    at async verifyParam (/Users/uni/2022/project/ripple/server/node_modules/koa-parameter/index.js:52:7)\\n    at async bodyParser (/Users/uni/2022/project/ripple/server/node_modules/koa-bodyparser/index.js:95:5)\",\n    \"message\": \"用户不存在\",\n    \"name\": \"NotFoundError\",\n    \"status\": 404\n}"},{"id":"2b4c2249-d49e-4773-a2df-8215076b083d","name":"成功：删除用户（204，无响应实体）","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/api/users/delete?email=13670210824@163.com","host":["http://localhost:8080/api"],"path":["users","delete"],"query":[{"key":"email","value":"13670210824@163.com"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2bcb1144-5c5d-4b2b-83f5-02974ac2d208"},{"name":"用户登录","event":[{"listen":"test","script":{"id":"28caf98e-9033-4b26-8de9-4f14a651c710","exec":["var jsonData = pm.response.json()","if (jsonData.data.token) {","    pm.globals.set(\"token\", jsonData.data.token)","}"],"type":"text/javascript"}}],"id":"ea7ec3e1-3a02-432e-8a0d-c48915dbb4fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"13670210824@163.com\",\n    \"password\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"84a2042a-1911-4033-945f-9c982be85789","id":"84a2042a-1911-4033-945f-9c982be85789","name":"Ripple","type":"collection"}},"urlObject":{"path":["users","login"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"9100653e-86b2-4393-91ff-afceeee2638a","name":"失败","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"13670210824@163.com\",\n    \"password\": \"1232\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/login"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": 10004,\n    \"msg\": \"用户邮箱或密码错误\",\n    \"code\": 0\n}"},{"id":"abe57978-4822-4bcc-bd0f-96f5463e7a0f","name":"成功","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"13670210824@163.com\",\n    \"password\": \"123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/login"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"61f72fc4011289fdfce8026a\",\n        \"email\": \"13670210824@163.com\",\n        \"username\": \"Uni\",\n        \"createdAt\": \"2022-01-31T00:39:32.641Z\",\n        \"updatedAt\": \"2022-01-31T00:39:32.641Z\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxZjcyZmM0MDExMjg5ZmRmY2U4MDI2YSIsInVzZXJuYW1lIjoiVW5pIiwiaWF0IjoxNjQzNTkzOTYwLCJleHAiOjE2NDM2ODAzNjB9.oVB1xEpSMDP5wsivvoFHxMp8obrsAljWA7YEmtn8E3o\"\n    },\n    \"msg\": \"登录成功\",\n    \"code\": 1\n}"}],"_postman_id":"ea7ec3e1-3a02-432e-8a0d-c48915dbb4fa"},{"name":"上传图片","id":"3753f342-a976-4d41-9bf3-dda5df38e919","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/uni/可爱女生/1241635646945_.pic.jpg"}]},"url":"http://localhost:8080/api/users/upload","urlObject":{"path":["users","upload"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"643015cc-ddef-47cf-bfda-08beefd07f8b","name":"上传图片: 分发图片地址","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/uni/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/9f696f113aa4385f00f26ea63b6a033c/Message/MessageTemp/9e20f478899dc29eb19741386f9343c8/Image/1861643363546_.pic.jpg"}]},"url":"http://localhost:8080/api/users/upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"url\": \"http://localhost:8080/uploads/upload_990b41c8ca2e9c5ca5478dec6580520e.jpg\"\n    },\n    \"msg\": \"图像地址分发成功\",\n    \"code\": 1\n}"}],"_postman_id":"3753f342-a976-4d41-9bf3-dda5df38e919"},{"name":"更改用户信息","event":[{"listen":"test","script":{"id":"b15126e1-58a9-46d6-a968-39182ab7a93f","exec":[""],"type":"text/javascript"}}],"id":"aac88738-b1e8-4a5c-bbc1-897945ade0b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"Uni\",\n    \"password\": \"1\",\n    \"avatar_url\": \"http://localhost:8080/uploads/upload_990b41c8ca2e9c5ca5478dec6580520e.jpg\",\n    \"headline\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/61f72fc4011289fdfce8026a/modify","urlObject":{"path":["users","61f72fc4011289fdfce8026a","modify"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"b83fb470-3b5f-4a45-8c87-bc2eb962f991","name":"更改用户信息","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"Uni\",\n    \"password\": \"1\",\n    \"avatar_url\": \"http://localhost:8080/uploads/upload_990b41c8ca2e9c5ca5478dec6580520e.jpg\",\n    \"headline\": \"冲\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/61f72fc4011289fdfce8026a/modify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"username\": \"Uni\",\n        \"password\": \"1\",\n        \"avatar_url\": \"http://localhost:8080/uploads/upload_990b41c8ca2e9c5ca5478dec6580520e.jpg\",\n        \"headline\": \"冲\"\n    },\n    \"msg\": \"个人信息修改成功\",\n    \"code\": 1\n}"}],"_postman_id":"aac88738-b1e8-4a5c-bbc1-897945ade0b4"},{"name":"辅助接口：列出所有用户信息","id":"64751740-5e46-4ce3-9a13-15295fc03829","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/retrieve","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"84a2042a-1911-4033-945f-9c982be85789","id":"84a2042a-1911-4033-945f-9c982be85789","name":"Ripple","type":"collection"}},"urlObject":{"path":["users","retrieve"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"a09ba1f3-4f42-4616-af16-ac44cc35e339","name":"辅助接口：列出所有用户信息","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/retrieve"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"61f72fc4011289fdfce8026a\",\n        \"email\": \"13670210824@163.com\",\n        \"username\": \"Uni\",\n        \"createdAt\": \"2022-01-31T00:39:32.641Z\",\n        \"updatedAt\": \"2022-02-01T16:54:23.493Z\"\n    },\n    {\n        \"_id\": \"61f965325c67d1d071be56e7\",\n        \"email\": \"liuchenhao01@corp.netease.com\",\n        \"username\": \"内啡肽\",\n        \"createdAt\": \"2022-02-01T16:52:02.442Z\",\n        \"updatedAt\": \"2022-02-01T16:52:02.442Z\"\n    }\n]"}],"_postman_id":"64751740-5e46-4ce3-9a13-15295fc03829"},{"name":"查找用户","id":"f6b28387-5f0e-4f05-8b3b-6e36bb057454","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/users/search?email=13670210824@163.com","urlObject":{"path":["users","search"],"host":["http://localhost:8080/api"],"query":[{"key":"email","value":"13670210824@163.com"}],"variable":[]}},"response":[{"id":"3d90b088-923a-4e7f-881a-4404e3d97fb0","name":"查找用户","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/users/search?email=13670210824@163.com","host":["http://localhost:8080/api"],"path":["users","search"],"query":[{"key":"email","value":"13670210824@163.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"61f72fc4011289fdfce8026a\",\n        \"email\": \"13670210824@163.com\",\n        \"username\": \"Uni\",\n        \"createdAt\": \"2022-01-31T00:39:32.641Z\",\n        \"updatedAt\": \"2022-02-01T18:10:45.946Z\",\n        \"avatar_url\": \"http://localhost:8080/uploads/upload_990b41c8ca2e9c5ca5478dec6580520e.jpg\",\n        \"headline\": \"冲\"\n    },\n    \"code\": 1\n}"}],"_postman_id":"f6b28387-5f0e-4f05-8b3b-6e36bb057454"},{"name":"建立信友关系","id":"e7e98e94-e201-4a51-a3d4-e88036fe7bbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"request_id\": \"61f72fc4011289fdfce8026a\",\n    \"remark_msg\": \"我是 coco，加我\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/request","urlObject":{"path":["users","request"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"8551088b-6554-4573-b74e-686629b4130f","name":"发送好友请求","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"request_id\": \"61f965325c67d1d071be56e7\",\n    \"remark_msg\": \"加我123\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/users/:id/request","host":["http://localhost:8080/api"],"path":["users",":id","request"],"variable":[{"key":"id","value":"61f72fc4011289fdfce8026a"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"request_id\": \"61f72fc4011289fdfce8026a\",\n        \"remark_msg\": \"我是 coco，加我\",\n        \"user_id\": \"61fa9fe9d25d1e655d4c5cf3\"\n    },\n    \"msg\": \"好友请求发送成功\",\n    \"code\": 1\n}"}],"_postman_id":"e7e98e94-e201-4a51-a3d4-e88036fe7bbf"},{"name":"更新区域","id":"aa0f2550-acfe-434a-a941-2b374f8e026c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"61fa9fe9d25d1e655d4c5cf3\",\n    \"type_id\": 1,\n    \"status\": 2\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/response","urlObject":{"path":["users","response"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"fe24a9c1-82b0-404f-8dc1-117f54e20704","name":"同意好友请求","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"61f72fc4011289fdfce8026a\",\n    \"type_id\": 1,\n    \"status\": 1\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8080/api/users/:id/response","host":["http://localhost:8080/api"],"path":["users",":id","response"],"variable":[{"key":"id","value":"61f965325c67d1d071be56e7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user_id\": \"61fa9fe9d25d1e655d4c5cf3\"\n    },\n    \"msg\": \"好友添加成功\",\n    \"code\": 1\n}"},{"id":"7f74b723-3951-45e4-8709-626337644fcc","name":"拒绝好友请求","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"61fa9fe9d25d1e655d4c5cf3\",\n    \"type_id\": 1,\n    \"status\": 2\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/response"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user_id\": \"61fa9fe9d25d1e655d4c5cf3\"\n    },\n    \"msg\": \"已拒绝\",\n    \"code\": 1\n}"}],"_postman_id":"aa0f2550-acfe-434a-a941-2b374f8e026c"},{"name":"回复信件","id":"3eafc818-7ad3-481c-8cf6-24d0c05fdc07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"图文动态都有哈\",\n    \"img_url\": [\n        \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n        \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/moments/post","urlObject":{"path":["moments","post"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[{"id":"428f114e-174d-489e-96ab-6a168431473e","name":"发布图文动态","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"这是动态213123文字内容123\",\n    \"img_url\": [\n        \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n        \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/moments/post"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"__v\": 0,\n        \"img_url\": [\n            \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n        ],\n        \"user_id\": \"61f72fc4011289fdfce8026a\",\n        \"likers\": [],\n        \"_id\": \"61fa954daa569f8b0ecf786b\",\n        \"createdAt\": \"2022-02-02T14:29:33.809Z\",\n        \"updatedAt\": \"2022-02-02T14:29:33.809Z\"\n    },\n    \"msg\": \"动态发布成功\",\n    \"code\": 1\n}"},{"id":"6988936e-6a99-443b-ba8b-90026f4be35d","name":"纯文字动态","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"发个纯文字动态哈\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/moments/post"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"__v\": 0,\n        \"img_url\": [],\n        \"user_id\": \"61f72fc4011289fdfce8026a\",\n        \"text\": \"发个纯文字动态哈\",\n        \"likers\": [],\n        \"_id\": \"61fb820930e5607d014dcb4a\",\n        \"createdAt\": \"2022-02-03T07:19:37.195Z\",\n        \"updatedAt\": \"2022-02-03T07:19:37.195Z\"\n    },\n    \"msg\": \"动态发布成功\",\n    \"code\": 1\n}"},{"id":"6d098c67-8b1d-4cb6-9cae-e4c53515b6bd","name":"纯图片动态","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"img_url\": [\n        \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n        \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/moments/post"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"__v\": 0,\n        \"img_url\": [\n            \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n            \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n        ],\n        \"user_id\": \"61f72fc4011289fdfce8026a\",\n        \"likers\": [],\n        \"_id\": \"61fb825230e5607d014dcb4e\",\n        \"createdAt\": \"2022-02-03T07:20:50.113Z\",\n        \"updatedAt\": \"2022-02-03T07:20:50.113Z\"\n    },\n    \"msg\": \"动态发布成功\",\n    \"code\": 1\n}"}],"_postman_id":"3eafc818-7ad3-481c-8cf6-24d0c05fdc07"},{"name":"获取信件","id":"953e65e7-5e8f-4fe1-ac56-f6d9cd90b04b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/moments/list?page=1","urlObject":{"path":["moments","list"],"host":["http://localhost:8080/api"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"7113cc19-28d3-4b6c-93b7-b2c127c64c74","name":"获取动态","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/api/moments/list?page=2","host":["http://localhost:8080/api"],"path":["moments","list"],"query":[{"key":"page","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"61fa954daa569f8b0ecf786b\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"likers\": [\n                {\n                    \"_id\": \"61f965325c67d1d071be56e7\",\n                    \"email\": \"liuchenhao01@corp.netease.com\",\n                    \"username\": \"内啡肽\",\n                    \"createdAt\": \"2022-02-01T16:52:02.442Z\",\n                    \"updatedAt\": \"2022-02-02T14:01:20.856Z\"\n                },\n                {\n                    \"_id\": \"61fa9fe9d25d1e655d4c5cf3\",\n                    \"email\": \"zunicoco@163.com\",\n                    \"username\": \"AClim\",\n                    \"createdAt\": \"2022-02-02T15:14:49.907Z\",\n                    \"updatedAt\": \"2022-02-02T16:27:00.270Z\"\n                },\n                {\n                    \"email\": \"13670210824@163.com\",\n                    \"username\": \"Uni\",\n                    \"friends\": [],\n                    \"moments\": [],\n                    \"groups\": [],\n                    \"_id\": \"61f72fc4011289fdfce8026a\",\n                    \"updatedAt\": \"2022-02-02T16:27:00.265Z\",\n                    \"createdAt\": \"2022-01-31T00:39:32.641Z\"\n                }\n            ],\n            \"createdAt\": \"2022-02-02T14:29:33.809Z\",\n            \"updatedAt\": \"2022-02-02T16:38:05.354Z\",\n            \"__v\": 5\n        },\n        {\n            \"_id\": \"61fa951faa569f8b0ecf7864\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\"\n            ],\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T14:28:47.398Z\",\n            \"updatedAt\": \"2022-02-02T14:28:47.398Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa94fad637a1ca84ad733a\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\"\n            ],\n            \"text\": \"bnnnnnb\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T14:28:10.532Z\",\n            \"updatedAt\": \"2022-02-02T14:28:10.532Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa94eed637a1ca84ad7336\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\"\n            ],\n            \"text\": \"Uni's moments123\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T14:27:58.086Z\",\n            \"updatedAt\": \"2022-02-02T14:27:58.086Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa94c8d637a1ca84ad732f\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"text\": \"Uni's moments\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T14:27:20.432Z\",\n            \"updatedAt\": \"2022-02-02T14:27:20.432Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa8eb096b3bf9e2d959704\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"text\": \"这是动态213123文字内321312容123\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T14:01:20.842Z\",\n            \"updatedAt\": \"2022-02-02T14:01:20.842Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa8c8df7a4b154c6a5e210\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"text\": \"这是动态213123文字内容123\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T13:52:13.075Z\",\n            \"updatedAt\": \"2022-02-02T13:52:13.075Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa8c80d7cafa6a063e5c48\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"text\": \"这是动态213123文字内容123\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T13:52:00.492Z\",\n            \"updatedAt\": \"2022-02-02T13:52:00.492Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa8c5ffad1d3cd749857fa\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"text\": \"这是动态213123文字内容123\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T13:51:27.082Z\",\n            \"updatedAt\": \"2022-02-02T13:51:27.082Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61fa8324c47ed70c61282d7c\",\n            \"img_url\": [\n                \"http://localhost:8080/uploads/upload_b4f9ce6a680a3fb89bc699dd02e1cb82.jpg\",\n                \"http://localhost:8080/uploads/upload_8baebb4083e9baae669697faafad2983.jpg\"\n            ],\n            \"text\": \"这是动态213123文字内容123\",\n            \"likers\": [],\n            \"createdAt\": \"2022-02-02T13:12:04.924Z\",\n            \"updatedAt\": \"2022-02-02T13:12:04.924Z\",\n            \"__v\": 0\n        }\n    ],\n    \"msg\": \"获取动态列表成功\",\n    \"code\": 1\n}"}],"_postman_id":"953e65e7-5e8f-4fe1-ac56-f6d9cd90b04b"},{"name":"位置更新","id":"ca741e9b-1de1-44b0-ba33-10d827a2b593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"url":"http://localhost:8080/api/moments/:id/like","urlObject":{"path":["moments",":id","like"],"host":["http://localhost:8080/api"],"query":[],"variable":[{"type":"any","value":"61fa954daa569f8b0ecf786b","key":"id"}]}},"response":[{"id":"635961e5-9635-469a-87e1-5f9c9d9f9781","name":"取消点赞动态","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"http://localhost:8080/api/moments/:id/like","host":["http://localhost:8080/api"],"path":["moments",":id","like"],"variable":[{"key":"id","value":"61fa954daa569f8b0ecf786b"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"取消点赞成功\",\n    \"code\": 1\n}"},{"id":"fbf476ef-41d0-46ca-a118-c1af7415758f","name":"点赞或取消点赞动态","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"刘辰浩爱读书\",\n    \"content\": \"喜欢看侦探类小说、个人成长、幻想类小说、计算机读物\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloudapi.bytedance.net/faas/services/tt1805w6bnl3cmo538/invoke/extractKeyWords"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"点赞成功\",\n    \"code\": 1\n}"}],"_postman_id":"ca741e9b-1de1-44b0-ba33-10d827a2b593"},{"name":"权限初始化校验","id":"834b3911-52b0-4ecc-a55b-958b09266680","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/users/auth","urlObject":{"path":["users","auth"],"host":["http://localhost:8080/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"834b3911-52b0-4ecc-a55b-958b09266680"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"69f4a268-bbd7-40e5-8e86-6a0e63506aee","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e95fde8c-3df6-4f03-89c6-b9cd978397da","type":"text/javascript","exec":["var jsonData = pm.response.json()","if (jsonData.data.token) {","    pm.globals.set(\"token\", jsonData.data.token)","}"]}}],"variable":[{"key":"host","value":"http://localhost:8080/api"}]}