Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangjingdong
/
bihe_interface_test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0408bcdd
authored
Jan 08, 2019
by
朱亚东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 我是业主
parent
83e8972a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
464 additions
and
0 deletions
+464
-0
碧合app/我是业主/我是业主.postman_collection.json
+408
-0
碧合app/我是业主/我是业主_manage.postman_environment.json
+56
-0
No files found.
碧合app/我是业主/我是业主.postman_collection.json
0 → 100644
View file @
0408bcdd
{
{
"info"
:
{
"_postman_id"
:
"a2d5eb80-beb2-446f-86cc-ee5683db0bd2"
,
"name"
:
"我是业主"
,
"schema"
:
"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item"
:
[
{
"name"
:
"用户登录"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"id"
:
"ab616fda-d96b-4f71-a9aa-6c59ce279e71"
,
"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
\"
:
\"
c5d93c486a95d658
\"
,
\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"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n\t\"
townId
\"
: {{townId}},
\n\t\"
areaId
\"
:
\"
185301
\"
,
\n\t\"
areaName
\"
:
\"
顺德碧桂园东苑
\"
,
\n\t\"
yname
\"
:
\"
顺德碧桂园东苑
\"
,
\n\t\"
bldId
\"
:
\"
39
\"
,
\n\t\"
bldName
\"
:
\"
风信路12座
\"
,
\n\t\"
roomId
\"
:
\"
18530100000871
\"
,
\n\t\"
roomName
\"
:
\"
风信路12座408
\"
,
\n\t\"
cellphone
\"
:
\"
13612444562
\"
,
\n\t\"
cardId
\"
:
\"
445281198412072441
\"
,
\n\t\"
cstname
\"
:
\"
吴其旋
\"\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/certificate"
},
"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"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n\t\"
areaId
\"
:
\"
185301
\"
,
\n\t\"
yname
\"
:
\"
顺德碧桂园东苑
\"
,
\n\t\"
bldId
\"
:
\"
39
\"\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/room"
},
"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"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n\t\"
areaId
\"
:
\"
185301
\"
,
\n\t\"
yname
\"
:
\"
顺德碧桂园东苑
\"\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/bld"
},
"response"
:
[]
},
{
"name"
:
"根据楼盘id获取苑区"
,
"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"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n\t\"
areaId
\"
:
\"
185301
\"\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/yname"
},
"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"
:
"GET"
,
"header"
:
[
{
"key"
:
"Content-Type"
,
"value"
:
"application/json"
},
{
"key"
:
"access-token"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
""
},
"url"
:
"{{gateway-user}}/houseproperty/housemember/{{roomId}}"
},
"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"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
townIdList
\"
: [
\n
1
\n
]
\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/area"
},
"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"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
townIdList
\"
: [
\n
1
\n
]
\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/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"
:
"PUT"
,
"header"
:
[
{
"key"
:
"Content-Type"
,
"value"
:
"application/json"
},
{
"key"
:
"access-token"
,
"type"
:
"text"
,
"value"
:
"{{access-Token}}"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
townId
\"
: {{townId}},
\n
\"
roomId
\"
:
\"
18530100000871
\"\n
}"
},
"url"
:
"{{gateway-user}}/houseproperty/defaulthouse"
},
"response"
:
[]
}
]
}
\ No newline at end of file
碧合app/我是业主/我是业主_manage.postman_environment.json
0 → 100644
View file @
0408bcdd
{
{
"id"
:
"a974048a-1deb-4c0b-a494-e200ca04ed15"
,
"name"
:
"我是业主_manage"
,
"values"
:
[
{
"key"
:
"gateway-user"
,
"value"
:
"https://usergwtest.bgycc.com"
,
"enabled"
:
true
},
{
"key"
:
"user_phone"
,
"value"
:
"13093585508"
,
"enabled"
:
true
},
{
"key"
:
"access-Token"
,
"value"
:
"cd1d92ffdfbc4b6e96714b98d8097469"
,
"enabled"
:
true
},
{
"key"
:
"townId"
,
"value"
:
"1"
,
"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"
:
"roomId"
,
"value"
:
"18530100000871"
,
"type"
:
"text"
,
"description"
:
""
,
"enabled"
:
true
}
],
"_postman_variable_scope"
:
"environment"
,
"_postman_exported_at"
:
"2019-01-08T08:10:40.234Z"
,
"_postman_exported_using"
:
"Postman/6.6.1"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment