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
6fdbf3ab
authored
Jan 07, 2019
by
朱亚东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 软文
parent
52aa7b8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
0 deletions
+152
-0
.DS_Store
+0
-0
碧合app/软文管理/软文管理.postman_collection.json
+103
-0
碧合app/软文管理/软文管理_manage.postman_environment.json
+49
-0
No files found.
.DS_Store
View file @
6fdbf3ab
No preview for this file type
碧合app/软文管理/软文管理.postman_collection.json
0 → 100644
View file @
6fdbf3ab
{
{
"info"
:
{
"_postman_id"
:
"6151a046-aa7e-4583-a9f1-571b1e20bfac"
,
"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"
}
}
],
"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}}/softmanagement/20"
},
"response"
:
[]
}
]
}
\ No newline at end of file
碧合app/软文管理/软文管理_manage.postman_environment.json
0 → 100644
View file @
6fdbf3ab
{
{
"id"
:
"0bd66f89-631e-43d4-8904-710f511796c8"
,
"name"
:
"软文管理_manage"
,
"values"
:
[
{
"key"
:
"gateway-user"
,
"value"
:
"https://operationgw.bgycc.com"
,
"enabled"
:
true
},
{
"key"
:
"user_phone"
,
"value"
:
"13093585508"
,
"enabled"
:
true
},
{
"key"
:
"access-Token"
,
"value"
:
"fad6d8a240cc44cda351538b9b2621b9"
,
"enabled"
:
true
},
{
"key"
:
"townId"
,
"value"
:
"58"
,
"enabled"
:
true
},
{
"key"
:
"userPassword"
,
"value"
:
"
\"
dong123
\"
"
,
"description"
:
{
"content"
:
""
,
"type"
:
"text/plain"
},
"enabled"
:
true
},
{
"key"
:
"id"
,
"value"
:
"20"
,
"description"
:
{
"content"
:
""
,
"type"
:
"text/plain"
},
"enabled"
:
true
}
],
"_postman_variable_scope"
:
"environment"
,
"_postman_exported_at"
:
"2019-01-07T09:10:14.016Z"
,
"_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