Commit 9db070e7 by zhangjingdong

提交广场圈子

parent 85df6f81
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/活动/-活动_manage.postman_environment.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" afterDir="false" />
</list>
<list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -21,8 +17,8 @@
<file leaf-file-name="execute_automation_scripts.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="11" column="49" lean-forward="true" selection-start-line="11" selection-start-column="49" selection-end-line="11" selection-end-column="49" />
<state relative-caret-position="163">
<caret line="16" column="22" lean-forward="true" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" />
<folding>
<element signature="e#18#29#0" expanded="true" />
</folding>
......@@ -40,11 +36,6 @@
<provider selected="true" editor-type-id="text-editor" />
</entry>
</file>
<file leaf-file-name="活动_manage.postman_environment.json" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
......@@ -73,7 +64,7 @@
<component name="NodePackageJsonFileManager">
<packageJsonPaths />
</component>
<component name="ProjectFrameBounds" extendedState="6" fullScreen="true">
<component name="ProjectFrameBounds" fullScreen="true">
<option name="width" value="1440" />
<option name="height" value="900" />
</component>
......@@ -82,7 +73,6 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -93,11 +83,6 @@
<path>
<item name="bihe_interface_test" type="b2602c69:ProjectViewProjectNode" />
<item name="bihe_interface_test" type="462c0819:PsiDirectoryNode" />
<item name="venv" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="bihe_interface_test" type="b2602c69:ProjectViewProjectNode" />
<item name="bihe_interface_test" type="462c0819:PsiDirectoryNode" />
<item name="碧合app" type="462c0819:PsiDirectoryNode" />
</path>
<path>
......@@ -114,6 +99,7 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -180,17 +166,17 @@
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
<window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="2" weight="0.32969698" />
<window_info anchor="bottom" id="Version Control" order="7" />
<window_info anchor="bottom" id="Python Console" order="7" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32969698" />
<window_info anchor="bottom" id="Terminal" order="7" weight="0.32969698" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.26037195" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2639485" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="right" id="Database" order="3" />
<window_info anchor="right" id="SciView" order="3" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
......@@ -221,8 +207,8 @@
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="15" column="32" lean-forward="true" selection-start-line="15" selection-start-column="32" selection-end-line="15" selection-end-column="32" />
<state relative-caret-position="198">
<caret line="11" column="49" lean-forward="true" selection-start-line="11" selection-start-column="49" selection-end-line="11" selection-end-column="49" />
<folding>
<element signature="e#18#29#0" expanded="true" />
</folding>
......@@ -235,9 +221,23 @@
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json">
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="15" column="32" lean-forward="true" selection-start-line="15" selection-start-column="32" selection-end-line="15" selection-end-column="32" />
<folding>
<element signature="e#18#29#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" />
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
......@@ -254,16 +254,12 @@
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" />
<entry file="file://$PROJECT_DIR$/htmlOut.html" />
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" />
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="144">
......@@ -275,9 +271,7 @@
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/htmlOut.html" />
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" />
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor" />
</entry>
......@@ -291,8 +285,8 @@
<entry file="file://$PROJECT_DIR$/碧合app/活动2018-11-28_09:34:00.html" />
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="11" column="49" lean-forward="true" selection-start-line="11" selection-start-column="49" selection-end-line="11" selection-end-column="49" />
<state relative-caret-position="163">
<caret line="16" column="22" lean-forward="true" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" />
<folding>
<element signature="e#18#29#0" expanded="true" />
</folding>
......
No preview for this file type
{
{
......@@ -52,6 +52,26 @@
},
{
"name": "APP根据小镇查询企业列表",
"event": [
{
"listen": "test",
"script": {
"id": "ba7904fb-851b-4b1f-a3b1-e178a9fd6ad8",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}"
]
}
}
],
"request": {
"method": "POST",
"header": [
......@@ -94,6 +114,26 @@
},
{
"name": "APP 根据类型查询企业列表",
"event": [
{
"listen": "test",
"script": {
"id": "0c583316-a3c0-42f9-b265-20c880984cc6",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}"
]
}
}
],
"request": {
"method": "POST",
"header": [
......@@ -140,10 +180,18 @@
{
"listen": "test",
"script": {
"id": "abd52a73-7a0b-470d-bd6b-26b308776215",
"id": "7ee0c942-3b6a-4585-800d-15afb9405e7d",
"type": "text/javascript",
"exec": [
""
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}"
]
}
}
......
{
{
"info": {
"_postman_id": "1b88a215-5865-4eb5-8adf-5b5930aa07ba",
"name": "科技小镇圈子",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "用户登录",
"event": [
{
"listen": "test",
"script": {
"id": "a9c52209-1773-48db-86df-106c6ee71da4",
"exec": [
"// console.log(\"----------------responseBody--------------\"+responseBody);",
"var jsonData = JSON.parse(responseBody);",
"// console.log(\"----------------jsonData.data.accessToken--------------\"+jsonData.data.accessToken);",
"",
"if(jsonData.data !== null || jsonData.data !==\"\")",
"{",
" tests[\"accessToken\"] = true;",
" postman.setEnvironmentVariable(\"access-Token\",jsonData.data.accessToken);",
" ",
"}",
"else",
"{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"accessToken\"]=false;",
"}",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "b4215bcf-fbff-4e3d-9f19-538d7af903ee",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": {{password}},\n \"equipment\": \"c5d93c486a95d821\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
},
{
"name": "办公版查询所有的话题名称与其他信息",
"event": [
{
"listen": "test",
"script": {
"id": "cb1a9436-5320-4316-acab-ff1be3c75945",
"exec": [
"// 话题ID",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.data.list[0].id !== null || jsonData.data.list[0].id !==\"\")",
"{",
" tests[\"ID\"] = true;",
" postman.setEnvironmentVariable(\"ID\",jsonData.data.list[0].id);",
" ",
"}",
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "生活版查询所有的话题名称与其他信息",
"event": [
{
"listen": "test",
"script": {
"id": "6a2a18f5-47f9-4246-82c1-a30ff91fc53a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"blockType\": \"EXIST\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "查询所有的话题的数量",
"event": [
{
"listen": "test",
"script": {
"id": "5323c99a-91a0-412f-914d-26a1993b55dd",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/topic/count"
},
"response": []
},
{
"name": "临时接口获取科技小镇下属性配置的话题分类",
"event": [
{
"listen": "test",
"script": {
"id": "5323c99a-91a0-412f-914d-26a1993b55dd",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/topic/townid/58"
},
"response": []
},
{
"name": "app端获取当前用户的创建圈子【办公版】",
"event": [
{
"listen": "test",
"script": {
"id": "3d4be837-0658-4a4c-b991-881624274b70",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\": 0,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"townId\": 58\r\n}"
},
"url": "{{gateway-user}}/app/topic/my"
},
"response": []
},
{
"name": "app端获取当前用户的创建圈子【生活版】",
"event": [
{
"listen": "test",
"script": {
"id": "61383382-7bb3-4fac-b3a8-7b465524732a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\": 0,\r\n \"blockType\": \"EXIST\",\r\n \"townId\": 58\r\n}"
},
"url": "{{gateway-user}}/app/topic/my"
},
"response": []
},
{
"name": "app获取推荐的圈子【办公版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\":0,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"townId\":58\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/my/recommend?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"my",
"recommend"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "app获取推荐的圈子 【生活版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\":0,\r\n \"blockType\": \"EXIST\",\r\n \"townId\":58\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/my/recommend?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"my",
"recommend"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "查询所有的话题名称【办公版】 ",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\":0,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"townId\":58\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/name?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"name"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "查询所有的话题名称【生活版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\":0,\r\n \"blockType\": \"EXIST\",\r\n \"townId\":58\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/name?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"name"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "app查询对应的话题的详情",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/topic/top/{{ID}}"
},
"response": []
},
{
"name": "查询办公版动态",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 58,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/close?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"close"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "查询生活版动态",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 58,\r\n \"blockType\": \"EXIST\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/close?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"close"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "查询最新的两个用户动态信息【办公版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"// 话题IDS",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.data.list[0].topicPictureResponseDTO[0].id !== null || jsonData.data.list[0].topicPictureResponseDTO[0].id !==\"\")",
"{",
" tests[\"IDS\"] = true;",
" postman.setEnvironmentVariable(\"IDS\",jsonData.data.list[0].topicPictureResponseDTO[0].id);",
" ",
"}",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 58,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/count?p=1&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"count"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": [
{
"name": "查询最新的两个用户动态信息【办公版】",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 58,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/count?p=1&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"count"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.13.9"
},
{
"key": "Date",
"value": "Tue, 18 Dec 2018 07:03:17 GMT"
},
{
"key": "Content-Type",
"value": "application/json;charset=UTF-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "X-Application-Context",
"value": "phantom-gateway-user:test:7009"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=15724800; includeSubDomains;"
},
{
"key": "Content-Encoding",
"value": "gzip"
}
],
"cookie": [],
"body": "{\n \"code\": \"0\",\n \"data\": {\n \"page\": 1,\n \"count\": 346,\n \"list\": [\n {\n \"id\": 1660,\n \"userId\": 90967,\n \"userName\": \"测试\",\n \"userTelephone\": \"18027365045\",\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"嗯哦哦哦哦\",\n \"createTime\": \"2018-12-17 14:23:46\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [\n {\n \"id\": 1243,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/1545027819974ccc232bcbf264cacb8ebf57b5de067ab.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1244,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/1545027825354eb0d295f580441189c78a061017a4c45.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1245,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/1545027821266eb9c7b5b60fb4b28a1ff7832fc87ed3a.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1246,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/1545027821368cd4a3c4dec3640e4a1d20d5be0f7f2ff.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1247,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/1545027822516fc58d80c798c46b996cf60299a3f2777.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1248,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/15450278260089520747e984640a987f5e31bf4d0b098.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1249,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/15450278224805a1572d1ebd342eba7d5df854f689da8.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1250,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/15450278221586397e0d845d0471a84a83e7045d7e759.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n },\n {\n \"id\": 1251,\n \"detailsId\": 1660,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/1545027825122cdaa360cc5844a56b2c3d01f070ec759.png'\",\n \"createTime\": \"2018-12-17 14:23:46\"\n }\n ],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/154451309069097e5063396554f65aea42ea37e020a17.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 0,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-17 14:23:46\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"碧桂园物业公司\",\n \"ownerName\": null,\n \"userIdentity\": \"碧桂园物业公司\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1658,\n \"userId\": 91637,\n \"userName\": \"oAo\",\n \"userTelephone\": null,\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所奥术大师所多大所多撒所大多撒撒多撒多所大撒所大所\",\n \"createTime\": \"2018-12-13 23:36:12\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 1,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/1542943767461c390bc96635a414180d4237cbcc0eb09.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 0,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-13 23:36:12\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": null,\n \"ownerName\": null,\n \"userIdentity\": \"普通用户\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1657,\n \"userId\": 91637,\n \"userName\": \"oAo\",\n \"userTelephone\": null,\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"\",\n \"createTime\": \"2018-12-13 22:09:14\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [\n {\n \"id\": 1234,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/1.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1235,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/2.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1236,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/1.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1237,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/2.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1238,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/1.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1239,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/2.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1240,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/1.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1241,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/2.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n },\n {\n \"id\": 1242,\n \"detailsId\": 1657,\n \"pictureUrl\": \"http://120.79.249.19:789/2.png\",\n \"createTime\": \"2018-12-13 22:09:14\"\n }\n ],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/1542943767461c390bc96635a414180d4237cbcc0eb09.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 0,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-13 22:09:14\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": null,\n \"ownerName\": null,\n \"userIdentity\": \"普通用户\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1656,\n \"userId\": 91131,\n \"userName\": \"BH66781204\",\n \"userTelephone\": null,\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"来看看咯\",\n \"createTime\": \"2018-12-13 17:40:53\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 2,\n \"userUrl\": null,\n \"myOrOther\": 1,\n \"likeCount\": 1,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-13 17:40:53\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"东东的东东\",\n \"ownerName\": null,\n \"userIdentity\": \"东东的东东\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1655,\n \"userId\": 90483,\n \"userName\": \"。◕‿◕。\",\n \"userTelephone\": null,\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"来看看咯\",\n \"createTime\": \"2018-12-13 10:32:54\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/15301895583197f887a75e25348b28ecc5f1585f259f9.png\",\n \"myOrOther\": 1,\n \"likeCount\": 1,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-13 10:32:54\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"顺德科技小镇管理公司\",\n \"ownerName\": null,\n \"userIdentity\": \"顺德科技小镇管理公司\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1654,\n \"userId\": 91739,\n \"userName\": \"BH31384673\",\n \"userTelephone\": \"13006682089\",\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"嘎嘎嘎\",\n \"createTime\": \"2018-12-12 20:02:04\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 1,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/15433087446600d09f941f6eb43de8fcc2510106901f9.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 1,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-12 20:02:04\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"64757547\",\n \"ownerName\": null,\n \"userIdentity\": \"64757547\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1647,\n \"userId\": 91483,\n \"userName\": \"^_^^_^^_^\",\n \"userTelephone\": \"13410480251\",\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"刚刚好好\",\n \"createTime\": \"2018-12-12 16:47:40\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/15369279761131d8e5afb2d9040b69de3566328c9736b.png\",\n \"myOrOther\": 1,\n \"likeCount\": 1,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-12 16:47:40\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": null,\n \"ownerName\": null,\n \"userIdentity\": \"普通用户\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1646,\n \"userId\": 90967,\n \"userName\": \"测试\",\n \"userTelephone\": \"18027365045\",\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"dhdshfhddhd\",\n \"createTime\": \"2018-12-11 15:24:09\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/154451309069097e5063396554f65aea42ea37e020a17.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 3,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-11 15:24:09\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"碧桂园物业公司\",\n \"ownerName\": null,\n \"userIdentity\": \"碧桂园物业公司\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1645,\n \"userId\": 90837,\n \"userName\": \"BH87642418\",\n \"userTelephone\": null,\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"yjjhjjjj\",\n \"createTime\": \"2018-12-11 11:41:58\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [\n {\n \"id\": 1233,\n \"detailsId\": 1645,\n \"pictureUrl\": \"https://platformcdn.bgycc.com/test/154449972435957d8fc23569f4084b47f0995ab88475c.png'\",\n \"createTime\": \"2018-12-11 11:41:58\"\n }\n ],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/1544492284294c0433172c21740a48ffbda55bdfab722.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 2,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-11 11:41:58\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"机器人公司\",\n \"ownerName\": null,\n \"userIdentity\": \"机器人公司\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n },\n {\n \"id\": 1644,\n \"userId\": 90837,\n \"userName\": \"BH87642418\",\n \"userTelephone\": null,\n \"topicId\": 137,\n \"price\": null,\n \"topicName\": \"默认\",\n \"comment\": \"安咯咯啦咯\",\n \"createTime\": \"2018-12-11 09:33:37\",\n \"townId\": 58,\n \"townName\": \"科技小镇\",\n \"topicPictureResponseDTO\": [],\n \"detailsStatus\": \"ENABLE\",\n \"commentsCount\": 0,\n \"userUrl\": \"https://platformcdn.bgycc.com/test/1544492284294c0433172c21740a48ffbda55bdfab722.png'\",\n \"myOrOther\": 1,\n \"likeCount\": 1,\n \"blockType\": \"ENTERPRISE\",\n \"timeDesc\": \"2018-12-11 09:33:37\",\n \"likeStatus\": \"DISABLE\",\n \"companyName\": \"机器人公司\",\n \"ownerName\": null,\n \"userIdentity\": \"机器人公司\",\n \"address\": null,\n \"showStatus\": \"DISABLE\"\n }\n ]\n }\n}"
}
]
},
{
"name": "查询最新的两个用户动态信息【生活版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 58,\r\n \"blockType\": \"EXIST\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/count?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"count"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "app端根据话题id获取对应话题的详情【办公版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\":{{ID}},\r\n \"oldId\": 0,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/topicId?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"topicId"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "app端根据话题id获取对应话题的详情 【生活版】",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\":{{ID}},\r\n \"oldId\": 0,\r\n \"blockType\": \"EXIST\",\r\n \"userId\": 0\r\n}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/topicId?p=1&c=100",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"topicId"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "100"
}
]
}
},
"response": []
},
{
"name": "app端获取一个话题的详情",
"event": [
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/topic/details/{{IDS}}"
},
"response": []
}
]
}
\ No newline at end of file
{
{
"id": "f7639717-c908-40df-b90f-ac79c4cae380",
"name": "广场圈子_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true
},
{
"key": "user_phone",
"value": "13657354633",
"enabled": true
},
{
"key": "access-Token",
"value": "f9ea772305694369a1696c02d7b8f46c",
"enabled": true
},
{
"key": "password",
"value": "123789",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "ID",
"value": "42",
"enabled": true
},
{
"key": "IDS",
"value": "1243",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-12-18T07:20:50.334Z",
"_postman_exported_using": "Postman/6.6.1"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment