Commit 1c09beaa by 朱亚东

update

parent 66a702c1
No preview for this file type
No preview for this file type
{
{
"info": {
"_postman_id": "87c7c4a6-6093-4cfa-bb1a-0a6bd120b91b",
"name": "默认应用",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "用户登录",
"event": [
{
"listen": "test",
"script": {
"id": "104d4846-b5c6-46b1-a08b-3b6e7000cc25",
"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"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": {{userPassword}},\n \"equipment\": \"32bba7423e5f3feca\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
},
{
"name": "查看自定义应用",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"townId\": {{townId}},\n \"blockType\": {{blockType}}\n}"
},
"url": "{{gateway-user}}/account/apply/list"
},
"response": []
},
{
"name": "自定义应用新增",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"townId\": {{townId}},\n \"applyLibraryId\": {{applyLibraryId}},\n \"blockType\": {{blockType}}\n}"
},
"url": "{{gateway-user}}/account/apply"
},
"response": []
},
{
"name": "默认应用保存到用户应用表中",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"value": "{{access-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"townId\": {{townId}},\n \"blockType\": {{blockType}}\n}"
},
"url": "{{gateway-user}}/account/apply/save"
},
"response": []
},
{
"name": "获取所有\b默认应用",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"townId\": {{townId}},\n \"blockType\": {{blockType}}\n}"
},
"url": "{{gateway-user}}/default/apply/library/list/{{townId}}/{{block_type}}"
},
"response": []
}
]
}
\ No newline at end of file
{
{
"id": "3c9e9a00-bc69-4365-8add-e413a618c6b0",
"name": "默认应用_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true
},
{
"key": "user_phone",
"value": "13093585508",
"enabled": true
},
{
"key": "access-Token",
"value": "279ff93460e3426caeccf8de526dbd75",
"enabled": true
},
{
"key": "townId",
"value": "58",
"enabled": true
},
{
"key": "userPassword",
"value": "\"dong123\"",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "blockType",
"value": "\"ENTERPRISE\"",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "applyLibraryId",
"value": "12",
"description": "",
"enabled": true
},
{
"key": "block_type",
"value": "ENTERPRISE",
"type": "text",
"description": "",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2019-01-07T03:30:25.527Z",
"_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