Commit fbbff246 by zhongJF

应用,小管家(未完成),公告

parent 3ab7d57a
{
{
"info": {
"_postman_id": "74f78d95-8179-4955-8690-8d377ebf87d2",
"name": "公告",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "用户登录",
"event": [
{
"listen": "test",
"script": {
"id": "24a49e27-fbcd-41a8-865d-6fdec230b6ca",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": false
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
},
{
"name": "app获取某一个公告详情",
"event": [
{
"listen": "test",
"script": {
"id": "e4fc5315-c305-4584-ad3d-af98a2344dd3",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/announcement/{{id}}"
},
"response": []
},
{
"name": "app获取公告列表,根据小镇",
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "",
"value": "",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{gateway-user}}/app/announcement/town/{{townId}}/{{blockType}}?p=1&c=20",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"announcement",
"town",
"{{townId}}",
"{{blockType}}"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "20"
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "20bc16cd-c6b6-445a-aaf2-c16a31904b3e",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "5a2b9827-d23f-4a11-ba0e-3c462d9ee0c6",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
\ No newline at end of file
{
{
"id": "b45846c5-c249-4b4b-8034-273051cd048d",
"name": "公告_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true
},
{
"key": "user_phone",
"value": "13869562701",
"enabled": true
},
{
"key": "access-Token",
"value": "428a34d48125473f9bccf91b9a905c50",
"enabled": true
},
{
"key": "townId",
"value": "58",
"enabled": true
},
{
"key": "id",
"value": "278",
"enabled": true
},
{
"key": "userPassword",
"value": "123456",
"description": "",
"enabled": true
},
{
"key": "blockType",
"value": "ENTERPRISE",
"type": "text",
"description": "",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-12-19T02:18:06.230Z",
"_postman_exported_using": "Postman/6.6.1"
}
\ No newline at end of file
{
{
"info": {
"_postman_id": "e1d090fd-dc28-46f6-905c-b8529180dfa1",
"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",
"type": "text/javascript",
"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;",
"}",
""
]
}
},
{
"listen": "prerequest",
"script": {
"id": "b4215bcf-fbff-4e3d-9f19-538d7af903ee",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
},
{
"name": "根据终端获取和用户id获取 消息类型菜单+该类型下最新一条未读信息",
"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}}/msgmenu"
},
"response": []
},
{
"name": "查询最新的两个用户动态信息(id为小镇id)",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"id\":58,\"blockType\":\"ENTERPRISE\"}"
},
"url": {
"raw": "{{gateway-user}}/app/topic/details/count?p=3&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"topic",
"details",
"count"
],
"query": [
{
"key": "p",
"value": "3"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
{
"name": "分页获取分类活动数据(先按分类、后按时间)",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{gateway-user}}/app/new/activity/list/by/class/{{townId}}/{{blockType}}?p=2&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"new",
"activity",
"list",
"by",
"class",
"{{townId}}",
"{{blockType}}"
],
"query": [
{
"key": "p",
"value": "2"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
{
"name": "获取碧合通知列表",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"menuId\":1,\"townId\":null}"
},
"url": "{{gateway-user}}/msgrecord/menu"
},
"response": []
},
{
"name": "根据用户id+菜单id更新所有未读消息为已读",
"request": {
"method": "PUT",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/msgrecord/menu/{{menuId}}/readed"
},
"response": []
},
{
"name": "APP端二维码获取活动详情",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/new/activity/get/info/{{id}}"
},
"response": []
},
{
"name": "APP端获取活动评论列表",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{gateway-user}}/app/new/activity/list/comment/{{activityId}}?p=1&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"new",
"activity",
"list",
"comment",
"{{activityId}}"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
{
"name": "活动优惠券",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{gateway-user}}/app/new/activity/card/{{activityId}}?p=1&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"new",
"activity",
"card",
"{{activityId}}"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
{
"name": "条形码查询",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/pay/user/getcardstockmarket/voucherid/{{voucherid}}"
},
"response": []
},
{
"name": "已领取卡券列表",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{gateway-user}}/pay/user/alreadyreceived/voucherid/{{voucherid}}?p=1&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"pay",
"user",
"alreadyreceived",
"voucherid",
"{{voucherid}}"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
{
"name": "APP端活动评论",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"activityId\":378,\"commentType\":\"ACTIVITY\",\"comment\":\"1\",\"commentStatus\":\"COMMENT\",\"commentImg\":[]}"
},
"url": "{{gateway-user}}/app/new/activity/comment"
},
"response": []
},
{
"name": "APP端活动点赞",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"activityId\":378,\"status\":\"ENABLE\",\"thumbsUpType\":\"ACTIVITY\"}"
},
"url": "{{gateway-user}}/app/new/activity/thumbs/up"
},
"response": []
}
]
}
\ No newline at end of file
{
{
"id": "34350f46-606b-4362-bd05-3ca501ea6002",
"name": "小管家_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true
},
{
"key": "user_phone",
"value": "13516712770",
"enabled": true
},
{
"key": "access-Token",
"value": "848599047f1248ad8fab5982205c8aa2",
"enabled": true
},
{
"key": "townId",
"value": "58",
"enabled": true
},
{
"key": "userPassword",
"value": "123456",
"description": "",
"enabled": true
},
{
"key": "blockType",
"value": "ENTERPRISE",
"description": "",
"enabled": true
},
{
"key": "menuId",
"value": "1",
"description": "",
"enabled": true
},
{
"key": "id",
"value": "378",
"description": "",
"enabled": true
},
{
"key": "activityId",
"value": "378",
"description": "",
"enabled": true
},
{
"key": "voucherid",
"value": "8015d9eb-f6dc-11e8-b36e-00163e04b8ca",
"type": "text",
"description": "",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-12-19T02:17:59.470Z",
"_postman_exported_using": "Postman/6.6.1"
}
\ No newline at end of file
{
{
"info": {
"_postman_id": "5bec560a-5374-409e-bd0d-544741d9f6c0",
"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",
"type": "text/javascript",
"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;",
"}",
""
]
}
},
{
"listen": "prerequest",
"script": {
"id": "b4215bcf-fbff-4e3d-9f19-538d7af903ee",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
},
{
"name": "app端展示应用属性和应用",
"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": {
"raw": "{{gateway-user}}/apply/property/town/app/list/{{townId}}/{{blockType}}",
"host": [
"{{gateway-user}}"
],
"path": [
"apply",
"property",
"town",
"app",
"list",
"{{townId}}",
"{{blockType}}"
],
"query": [
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "根据人员ID小镇ID查看人员自定义应用",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"townId\":58,\"blockType\":\"ENTERPRISE\"}"
},
"url": {
"raw": "{{gateway-user}}/account/apply/list",
"host": [
"{{gateway-user}}"
],
"path": [
"account",
"apply",
"list"
],
"query": [
{
"key": "",
"value": "",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "根据应用标识urlSchemes查询线上应用信息",
"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}}/apply/library/online/urlschemes/{{urlSchemes}}"
},
"response": []
},
{
"name": "根据urlSchemes查看权限应用",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"townId\":58,\"urlSchemes\":\"uasTechnology\",\"applyPublishType\":\"WORK\"}"
},
"url": "{{gateway-user}}/town/apply/get/by/urlSchemes"
},
"response": []
},
{
"name": "校验用户是否授权第三方应用的接口",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"townId\":58,\"urlSchemes\":\"uasTechnology\",\"applyPublishType\":\"WORK\"}"
},
"url": "{{gateway-user}}/oauth/check/authorization/"
},
"response": []
},
{
"name": "默认Add用户应用",
"request": {
"method": "POST",
"header": [
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"townId\":58,\"blockType\":\"ENTERPRISE\"}"
},
"url": "{{gateway-user}}/account/apply/save/"
},
"response": []
}
]
}
\ No newline at end of file
{
{
"id": "5c6446b3-d2d3-4178-bacb-08ee679cd67b",
"name": "应用_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true
},
{
"key": "user_phone",
"value": "13516712770",
"enabled": true
},
{
"key": "access-Token",
"value": "848599047f1248ad8fab5982205c8aa2",
"enabled": true
},
{
"key": "townId",
"value": "58",
"enabled": true
},
{
"key": "urlSchemes",
"value": "uasTechnology",
"enabled": true
},
{
"key": "userPassword",
"value": "123456",
"description": "",
"enabled": true
},
{
"key": "blockType",
"value": "ENTERPRISE",
"description": "",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-12-19T02:17:56.212Z",
"_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