Commit 59fbedf2 by zhangjingdong

添加优化活动脚本

parent 17683e04
No preview for this file type
{
{
{
"info": {
"_postman_id": "74f78d95-8179-4955-8690-8d377ebf87d2",
"_postman_id": "e2b28eb5-603b-4c4e-91f9-0bfbc49df168",
"name": "公告",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
......@@ -49,8 +49,7 @@
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": false
"value": "application/json"
}
],
"body": {
......@@ -67,10 +66,18 @@
{
"listen": "test",
"script": {
"id": "e4fc5315-c305-4584-ad3d-af98a2344dd3",
"id": "19108a03-3979-42b4-ad24-3b129ea8f4e9",
"type": "text/javascript",
"exec": [
""
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
}
......@@ -97,6 +104,26 @@
},
{
"name": "app获取公告列表,根据小镇",
"event": [
{
"listen": "test",
"script": {
"id": "6547ca92-2273-499d-b7bd-dd5551fb02f3",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
}
],
"request": {
"method": "GET",
"header": [
......
{
{
{
"variables": [],
"info": {
"_postman_id": "80821847-e55a-4729-836f-77eff184865c",
"name": "推荐位",
"_postman_id": "a922a9c2-c0d4-8c50-45d4-2a54947151d8",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
......@@ -36,20 +34,18 @@
}
],
"request": {
"url": "{{gateway-user}}/app/login",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"ywb123\",\n \"equipment\": \"32bba7423e5f3feca\",\n \"channelId\": 1\n}"
},
"description": ""
"url": "{{gateway-user}}/app/login"
},
"response": []
},
......@@ -59,6 +55,7 @@
{
"listen": "test",
"script": {
"id": "359ff52c-2a24-49a2-b485-de8b802f66f0",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
......@@ -67,17 +64,22 @@
" tests[\"accountId\"] = true;",
" postman.setEnvironmentVariable(\"account_Id\",jsonData.data.accountId);",
" ",
"}",
"else{",
" tests[\"accountId\"+jsonData.msg]=false;",
"}"
]
}
}
],
"request": {
"url": " {{gateway-user}}/user/userinfo/phone/{{user_phone}}",
"method": "GET",
"header": [],
"body": {},
"description": ""
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/user/userinfo/phone/{{user_phone}}"
},
"response": []
},
......@@ -104,25 +106,46 @@
}
],
"request": {
"url": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"accountId\": {{account_Id}},\r\n \"blockType\": \"ENTERPRISE\",\r\n \"range\": \"PAGE\",\r\n \"status\": \"ENABLE\"\r\n}"
},
"description": ""
"url": {
"raw": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"host": [
"{{gateway-user}}"
],
"path": [
"recommendation",
"town",
"app",
"list",
"by",
"condition",
""
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "20"
}
]
}
},
"response": []
},
......@@ -148,25 +171,46 @@
}
],
"request": {
"url": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"accountId\": 90483,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"range\": \"PAGE\",\r\n \"status\": \"ENABLE\"\r\n}"
},
"description": ""
"url": {
"raw": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"host": [
"{{gateway-user}}"
],
"path": [
"recommendation",
"town",
"app",
"list",
"by",
"condition",
""
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "20"
}
]
}
},
"response": []
},
......@@ -193,25 +237,46 @@
}
],
"request": {
"url": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"accountId\": 90483,\r\n \"blockType\": \"EXIST\",\r\n \"range\": \"PAGE\",\r\n \"status\": \"ENABLE\"\r\n}"
},
"description": ""
"url": {
"raw": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"host": [
"{{gateway-user}}"
],
"path": [
"recommendation",
"town",
"app",
"list",
"by",
"condition",
""
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "20"
}
]
}
},
"response": []
}
......
{
{
{
"info": {
"_postman_id": "a02d4b69-e0ad-4bd2-b06b-0d83e9ea1035",
"_postman_id": "87fbf2f8-a2b2-49a5-9d1b-de38862e6a45",
"name": "活动",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
......@@ -54,7 +54,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": 18670340158,\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"ywb123\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
......@@ -66,13 +66,15 @@
{
"listen": "test",
"script": {
"id": "3c9905dc-9e88-48dc-81d6-52361e995629",
"id": "60ac0f6d-71ad-4812-b388-0c21a9d99029",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
" tests[\"data\"] = true;",
" postman.setEnvironmentVariable(\"activityID\",jsonData.data.list[0].id);",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
......@@ -84,7 +86,7 @@
}
],
"request": {
"method": "POST",
"method": "GET",
"header": [
{
"key": "access-token",
......@@ -97,9 +99,37 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"blockType\": \"ENTERPRISE\",\n \"townId\": 1\n}"
"raw": "{\n \"blockType\": \"ENTERPRISE\",\n \"townId\": {{townID}}\n}"
},
"url": "{{gateway-user}}/app/activity/town/user"
"url": {
"raw": "https://usergwtest.bgycc.com/app/new/activity/list/by/class/{{townId}}/ENTERPRISE?p=1&c=10",
"protocol": "https",
"host": [
"usergwtest",
"bgycc",
"com"
],
"path": [
"app",
"new",
"activity",
"list",
"by",
"class",
"{{townId}}",
"ENTERPRISE"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
......@@ -204,25 +234,65 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"activityId\":196,\n \"enrollStatus\": \"CONFIRM\",\n \"townId\": 1\n}"
"raw": "{\n \"activityId\":{{activityId}},\n \"enrollStatus\": \"CONFIRM\",\n \"townId\":{{townId}}\n}"
},
"url": "{{gateway-user}}/app/new/activity/enroll"
},
"response": []
},
{
"name": "app端获取活动详情",
"event": [
{
"listen": "test",
"script": {
"id": "2fd3ff6b-1da2-4b16-bf00-480169689fe1",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "access-Token",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/new/activity/get/comment/info/{{activityId}}"
},
"response": []
},
{
"name": "app活动评论",
"event": [
{
"listen": "test",
"script": {
"id": "192ef5c4-1ad4-45ff-86ad-a86b560df9a5",
"id": "800a6f30-7c25-481e-9dfe-b17eac02eebc",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
" postman.setEnvironmentVariable(\"data\",jsonData.data);",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
......@@ -247,19 +317,19 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"activityId\": {{activityId}},\n \"commentType\": \"ACTIVITY\",\n \"commentStatus\": \"COMMENT\",\n \"comment\": \"hahhaahhahahahahahahh\",\n \"commentImg\": [\n \"string\"\n ]\n}"
"raw": "{\n \"activityId\": {{activityId}},\n \"commentType\": \"ACTIVITY\",\n \"commentStatus\": \"COMMENT\",\n \"comment\": \"哇塞\"\n}"
},
"url": "{{gateway-user}}/app/new/activity/comment"
},
"response": []
},
{
"name": "app二维码获取活动详情",
"name": "app活动回复评论内容",
"event": [
{
"listen": "test",
"script": {
"id": "8ff40371-ba44-4c89-85ed-3f9def78095b",
"id": "0b197b97-786e-4eeb-8893-e801ae20b5ff",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
......@@ -277,20 +347,32 @@
}
],
"request": {
"method": "GET",
"header": [],
"body": {},
"url": "{{gateway-user}}/app/new/activity/get/code/info/{{activityId}}"
"method": "POST",
"header": [
{
"key": "access-Token",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"activityId\": {{activityId}},\n \"commentType\": \"COMMENT\",\n \"commentStatus\": \"REPLY\",\n \"newActivityCommentId\": {{data}},\n \"comment\": \"随便评论一下\"\n}"
},
"url": "{{gateway-user}}/app/new/activity/comment"
},
"response": []
},
{
"name": "app端获取活动详情",
"name": "app活动点赞",
"event": [
{
"listen": "test",
"script": {
"id": "2fd3ff6b-1da2-4b16-bf00-480169689fe1",
"id": "0b197b97-786e-4eeb-8893-e801ae20b5ff",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
......@@ -308,25 +390,32 @@
}
],
"request": {
"method": "GET",
"method": "POST",
"header": [
{
"key": "access-Token",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {},
"url": "{{gateway-user}}/app/new/activity/get/comment/info/{{activityId}}"
"body": {
"mode": "raw",
"raw": "{\n \"activityId\": {{activityId}},\n \"thumbsUpType\": \"ACTIVITY\",\n \"status\": \"ENABLE\"\n}"
},
"url": "{{gateway-user}}/app/new/activity/thumbs/up"
},
"response": []
},
{
"name": "app获取某一个活动详情",
"name": "app活动评论点赞",
"event": [
{
"listen": "test",
"script": {
"id": "93f6cff3-ef65-40e9-ba2b-716185de2860",
"id": "0b197b97-786e-4eeb-8893-e801ae20b5ff",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
......@@ -344,15 +433,56 @@
}
],
"request": {
"method": "GET",
"method": "POST",
"header": [
{
"key": "access-token",
"key": "access-Token",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"activityId\": {{activityId}},\n \"thumbsUpType\": \"COMMENT\",\n \"status\": \"ENABLE\",\n \"newActivityCommentId\":{{data}}\n}"
},
"url": "{{gateway-user}}/app/new/activity/thumbs/up"
},
"response": []
},
{
"name": "app二维码获取活动详情",
"event": [
{
"listen": "test",
"script": {
"id": "8ff40371-ba44-4c89-85ed-3f9def78095b",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
}
}
],
"body": {},
"url": "{{gateway-user}}/app/activity/{{activityId}}"
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/new/activity/get/code/info/{{activityId}}"
},
"response": []
},
......@@ -387,7 +517,10 @@
"value": "{{access-Token}}"
}
],
"body": {},
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/new/activity/get/top/one/1/ENTERPRISE"
},
"response": []
......
{
{
{
"variables": [],
"info": {
"_postman_id": "d179a4f7-a7c0-488b-a9f4-b2344874f608",
"name": "资讯",
"_postman_id": "0b136222-ee66-0a10-9241-df880eea79e8",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
......@@ -23,20 +21,18 @@
}
],
"request": {
"url": "https://usergwtest.bgycc.com/app/login",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"channelId\":4,\r\n \"equipment\": \"9999\",\r\n \"userPassword\": \"123456\",\r\n \"userPhone\": \"18027365045\"\r\n}"
},
"description": ""
"url": "https://usergwtest.bgycc.com/app/login"
},
"response": []
},
......@@ -65,22 +61,45 @@
}
],
"request": {
"url": "{{user_url}}manager/news/list/order/by/time/{{townId}}?p=1&c=10",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
"value": "application/x-www-form-urlencoded"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
}
],
"body": {},
"description": ""
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{user_url}}manager/news/list/order/by/time/{{townId}}?p=1&c=10",
"host": [
"{{user_url}}manager"
],
"path": [
"news",
"list",
"order",
"by",
"time",
"{{townId}}"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
......@@ -108,22 +127,22 @@
}
],
"request": {
"url": "{{user_url}}manager/news/getstartnewsclassifylist/townid/1",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
"value": "application/x-www-form-urlencoded"
},
{
"key": "townid",
"value": "{{townid}}",
"description": ""
"value": "{{townid}}"
}
],
"body": {},
"description": ""
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{user_url}}manager/news/getstartnewsclassifylist/townid/1"
},
"response": []
},
......@@ -150,30 +169,26 @@
}
],
"request": {
"url": "{{user_url}}manager/news/get/{{newid}}",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
"value": "application/json"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
},
{
"key": "newid",
"value": "{{newid}}",
"description": ""
"value": "{{newid}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"description": ""
"url": "{{user_url}}manager/news/get/{{newid}}"
},
"response": []
},
......@@ -200,22 +215,22 @@
}
],
"request": {
"url": "{{user_url}}town/news/access/get/12",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
"value": "application/x-www-form-urlencoded"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
}
],
"body": {},
"description": ""
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{user_url}}town/news/access/get/12"
},
"response": []
},
......@@ -242,22 +257,22 @@
}
],
"request": {
"url": "{{user_url}}app/news/commend",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
"value": "application/x-www-form-urlencoded"
},
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": ""
"value": "{{access-Token}}"
}
],
"body": {},
"description": ""
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{user_url}}app/news/commend"
},
"response": []
}
......
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