Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xhyx_shop_request
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈海枫
xhyx_shop_request
Commits
d294affc
Commit
d294affc
authored
Nov 24, 2023
by
陈海枫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
d49087c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1060 additions
and
0 deletions
+1060
-0
xinhuabast.postman_collection.json
+1060
-0
No files found.
xinhuabast.postman_collection.json
0 → 100644
View file @
d294affc
{
"info"
:
{
"_postman_id"
:
"7fdef111-a0a1-4edf-9895-ae26da664830"
,
"name"
:
"xinhuabast"
,
"schema"
:
"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item"
:
[
{
"name"
:
"优选商城"
,
"item"
:
[
{
"name"
:
"商城登录"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
"var jsondata =JSON.parse(responseBody);
\r
"
,
"//提取响应作为JSON
\r
"
,
"pm.globals.set(
\"
SESSION_ID
\"
, jsondata.data.SESSION_ID)
\r
"
,
"//提取jsonData中的SESSION_ID做为全局变量SESSION_ID
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"xhyxshop"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
account
\"
:
\"
13037555524
\"
,
\r\n
\"
password
\"
:
\"
Zxcvbnm123.
\"
,
\r\n
\"
loginType
\"
: 0
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://m.xinhuabest.com/xhyx_prod/innerApi/shopApiService/login"
,
"protocol"
:
"https"
,
"host"
:
[
"m"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"xhyx_prod"
,
"innerApi"
,
"shopApiService"
,
"login"
]
}
},
"response"
:
[]
},
{
"name"
:
"商城搜索商品-全网搜"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"xhyxshop"
,
"type"
:
"text"
},
{
"key"
:
"Authorization"
,
"value"
:
"{{SESSION_ID}}"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
searchWord
\"
:
\"
做对选择
\"
,
\r\n
\"
categoryName
\"
:
\"\"
,
\r\n
\"
categoryBigImg
\"
: null,
\r\n
\"
categoryId
\"
:
\"\"
,
\r\n
\"
sortColumn
\"
: 9,
\r\n
\"
sortType
\"
:
\"
1
\"
,
\r\n
\"
colorList
\"
: [],
\r\n
\"
sizeList
\"
: [],
\r\n
\"
page
\"
: 1,
\r\n
\"
couponId
\"
:
\"\"
,
\r\n
\"
rows
\"
: 6,
\r\n
\"
goodsSpecificationIds
\"
: [],
\r\n
\"
categoryIncludeChild
\"
: true,
\r\n
\"
whetherFindDistributionCommission
\"
: 1,
\r\n
\"
whetherShowGoodsDefaultTagFlag
\"
: 1,
\r\n
\"
whetherFindMultiShopFlag
\"
: 0,
\r\n
\"
whetherQueryGoodsAttributeFlag
\"
: 1,
\r\n
\"
whetherQueryCollectCount
\"
: true,
\r\n
\"
whetherUseVirtualSalesQty
\"
: true,
\r\n
\"
whetherUseVirtualCollectCount
\"
: true,
\r\n
\"
whetherToEnableQuickPurchase
\"
:
\"
0
\"
,
\r\n
\"
searchScopeFlag
\"
: 1
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://m.xinhuabest.com/xhyx_prod/innerApi/shopApiService/product/select_product_info_on_es"
,
"protocol"
:
"https"
,
"host"
:
[
"m"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"xhyx_prod"
,
"innerApi"
,
"shopApiService"
,
"product"
,
"select_product_info_on_es"
]
}
},
"response"
:
[]
},
{
"name"
:
"商城搜索商品-门店搜"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"xhyxshop"
,
"type"
:
"text"
},
{
"key"
:
"Authorization"
,
"value"
:
"{{SESSION_ID}}"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
searchWord
\"
:
\"
做对选择
\"
,
\r\n
\"
categoryName
\"
:
\"\"
,
\r\n
\"
categoryBigImg
\"
: null,
\r\n
\"
categoryId
\"
:
\"\"
,
\r\n
\"
sortColumn
\"
: 10,
\r\n
\"
sortType
\"
: 0,
\r\n
\"
colorList
\"
: [],
\r\n
\"
sizeList
\"
: [],
\r\n
\"
page
\"
: 1,
\r\n
\"
couponId
\"
:
\"\"
,
\r\n
\"
rows
\"
: 6,
\r\n
\"
goodsSpecificationIds
\"
: [],
\r\n
\"
categoryIncludeChild
\"
: true,
\r\n
\"
whetherFindDistributionCommission
\"
: 1,
\r\n
\"
whetherShowGoodsDefaultTagFlag
\"
: 1,
\r\n
\"
whetherFindMultiShopFlag
\"
: 1,
\r\n
\"
whetherQueryGoodsAttributeFlag
\"
: 1,
\r\n
\"
whetherQueryCollectCount
\"
: true,
\r\n
\"
whetherUseVirtualSalesQty
\"
: true,
\r\n
\"
whetherUseVirtualCollectCount
\"
: true,
\r\n
\"
whetherToEnableQuickPurchase
\"
: false,
\r\n
\"
searchScopeFlag
\"
: 0
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://m.xinhuabest.com/xhyx_prod/innerApi/shopApiService/product/select_product_info_on_es"
,
"protocol"
:
"https"
,
"host"
:
[
"m"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"xhyx_prod"
,
"innerApi"
,
"shopApiService"
,
"product"
,
"select_product_info_on_es"
]
}
},
"response"
:
[]
},
{
"name"
:
"商城下单"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"xhyxshop"
,
"type"
:
"text"
},
{
"key"
:
"Authorization"
,
"value"
:
"{{SESSION_ID}}"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
searchWord
\"
:
\"
做对选择
\"
,
\r\n
\"
categoryName
\"
:
\"\"
,
\r\n
\"
categoryBigImg
\"
: null,
\r\n
\"
categoryId
\"
:
\"\"
,
\r\n
\"
sortColumn
\"
: 10,
\r\n
\"
sortType
\"
: 0,
\r\n
\"
colorList
\"
: [],
\r\n
\"
sizeList
\"
: [],
\r\n
\"
page
\"
: 1,
\r\n
\"
couponId
\"
:
\"\"
,
\r\n
\"
rows
\"
: 6,
\r\n
\"
goodsSpecificationIds
\"
: [],
\r\n
\"
categoryIncludeChild
\"
: true,
\r\n
\"
whetherFindDistributionCommission
\"
: 1,
\r\n
\"
whetherShowGoodsDefaultTagFlag
\"
: 1,
\r\n
\"
whetherFindMultiShopFlag
\"
: 1,
\r\n
\"
whetherQueryGoodsAttributeFlag
\"
: 1,
\r\n
\"
whetherQueryCollectCount
\"
: true,
\r\n
\"
whetherUseVirtualSalesQty
\"
: true,
\r\n
\"
whetherUseVirtualCollectCount
\"
: true,
\r\n
\"
whetherToEnableQuickPurchase
\"
: false,
\r\n
\"
searchScopeFlag
\"
: 0
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://m.xinhuabest.com/xhyx_prod/innerApi/shopApiService/product/select_product_info_on_es"
,
"protocol"
:
"https"
,
"host"
:
[
"m"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"xhyx_prod"
,
"innerApi"
,
"shopApiService"
,
"product"
,
"select_product_info_on_es"
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"管理后台"
,
"item"
:
[
{
"name"
:
"管理后台登录"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
"var jsondata =JSON.parse(responseBody);
\r
"
,
"//提取响应作为JSON
\r
"
,
"pm.globals.set(
\"
Mayi-Token
\"
, jsondata.data.token)
\r
"
,
"//提取jsonData中的token做为全局变量Mayi-Token
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"TZYLX"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
username
\"
:
\"
13037555524
\"
,
\r\n
\"
password
\"
:
\"
123456
\"
,
\r\n
\"
loginType
\"
: 1
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.xinhuabest.com/innerApi/baseService/employeeInfo/loginByRole"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"innerApi"
,
"baseService"
,
"employeeInfo"
,
"loginByRole"
]
}
},
"response"
:
[]
},
{
"name"
:
"手机号查询客户"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
sourceOrgIds
\"
: [],
\r\n
\"
tIds
\"
: [],
\r\n
\"
tagIds
\"
: [],
\r\n
\"
tagIdsAll
\"
: [],
\r\n
\"
isMerge
\"
: false,
\r\n
\"
isPublic
\"
: false,
\r\n
\"
createTimeFrom
\"
:
\"\"
,
\r\n
\"
createTimeTo
\"
:
\"\"
,
\r\n
\"
enterpriseFlag
\"
: false,
\r\n
\"
cardIds
\"
: [],
\r\n
\"
name
\"
:
\"\"
,
\r\n
\"
contactWay
\"
:
\"
13037555524
\"
,
\r\n
\"
cardVersion
\"
: 1
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.xinhuabest.com/innerApi/userService/customerInfo/query"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"innerApi"
,
"userService"
,
"customerInfo"
,
"query"
]
}
},
"response"
:
[]
},
{
"name"
:
"客户名称查询客户"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
sourceOrgIds
\"
: [],
\r\n
\"
tIds
\"
: [],
\r\n
\"
tagIds
\"
: [],
\r\n
\"
tagIdsAll
\"
: [],
\r\n
\"
isMerge
\"
: false,
\r\n
\"
isPublic
\"
: false,
\r\n
\"
createTimeFrom
\"
:
\"\"
,
\r\n
\"
createTimeTo
\"
:
\"\"
,
\r\n
\"
enterpriseFlag
\"
: false,
\r\n
\"
cardIds
\"
: [],
\r\n
\"
name
\"
:
\"
陈
\"
,
\r\n
\"
contactWay
\"
:
\"\"
,
\r\n
\"
cardVersion
\"
: 1
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"订单号查询订单"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
page
\"
: 1,
\r\n
\"
rows
\"
: 10,
\r\n
\"
total
\"
: 1,
\r\n
\"
tabType
\"
:
\"
already_success
\"
,
\r\n
\"
orgIds
\"
: [],
\r\n
\"
placeOrderOrgIds
\"
: [],
\r\n
\"
orderSn
\"
:
\"
ORD2023092810123000039852
\"
,
\r\n
\"
customerNicknameOrPhone
\"
:
\"\"
,
\r\n
\"
provinceId
\"
: null,
\r\n
\"
cityId
\"
: null,
\r\n
\"
regionId
\"
: null,
\r\n
\"
plusBuyId
\"
:
\"\"
,
\r\n
\"
tagIds
\"
: [],
\r\n
\"
tagIdsAll
\"
: [],
\r\n
\"
createDatetimeFrom
\"
: null,
\r\n
\"
createDatetimeTo
\"
: null,
\r\n
\"
paidDatetimeFrom
\"
: null,
\r\n
\"
paidDatetimeTo
\"
: null,
\r\n
\"
erpSyncDatetimeFrom
\"
: null,
\r\n
\"
erpSyncDatetimeTo
\"
: null,
\r\n
\"
tIds
\"
: [],
\r\n
\"
supplierIds
\"
: [],
\r\n
\"
shipmentStatuses
\"
: [],
\r\n
\"
paymentStatuses
\"
: [],
\r\n
\"
transportTypes
\"
: [],
\r\n
\"
orderTypes
\"
: [],
\r\n
\"
brandIds
\"
: [],
\r\n
\"
customerOrderAreaIds
\"
: [],
\r\n
\"
whetherClose
\"
:
\"
0
\"\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.xinhuabest.com/innerApi/orderService/order/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"innerApi"
,
"orderService"
,
"order"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"店铺名称搜索店铺"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
whetherDelete
\"
: 0,
\r\n
\"
whetherWxMall
\"
: 0,
\r\n
\"
proviceid
\"
: null,
\r\n
\"
cityId
\"
: null,
\r\n
\"
regionId
\"
: null,
\r\n
\"
startDate
\"
: null,
\r\n
\"
endDate
\"
: null,
\r\n
\"
shopName
\"
:
\"
杭州有赞
\"\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.xinhuabest.com/innerApi/baseService/shopInfo/queryForPageExcludeMultiMerchants"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"innerApi"
,
"baseService"
,
"shopInfo"
,
"queryForPageExcludeMultiMerchants"
]
}
},
"response"
:
[]
},
{
"name"
:
"商品名称搜索商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
isDataPermission
\"
: true,
\r\n
\"
preferredSupplierNames
\"
: [],
\r\n
\"
productAttributeSearchType
\"
:
\"\"
,
\r\n
\"
productAttributeIds
\"
: [],
\r\n
\"
channelSource
\"
:
\"\"
,
\r\n
\"
brandIdsStr
\"
:
\"\"
,
\r\n
\"
productSaleType
\"
:
\"\"
,
\r\n
\"
productCategoryIdsStr
\"
:
\"\"
,
\r\n
\"
builtInFlag
\"
: 0,
\r\n
\"
productName
\"
:
\"
共产党
\"\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.xinhuabest.com/innerApi/goodsService/product/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"商品货号搜索商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
isDataPermission
\"
: true,
\r\n
\"
preferredSupplierNames
\"
: [],
\r\n
\"
productAttributeSearchType
\"
:
\"\"
,
\r\n
\"
productAttributeIds
\"
: [],
\r\n
\"
channelSource
\"
:
\"\"
,
\r\n
\"
brandIdsStr
\"
:
\"\"
,
\r\n
\"
productSaleType
\"
:
\"\"
,
\r\n
\"
productCategoryIdsStr
\"
:
\"\"
,
\r\n
\"
builtInFlag
\"
: 0,
\r\n
\"
productName
\"
:
\"\"
,
\r\n
\"
productCode
\"
:
\"
9787010257617001
\"\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"商品名称查询库存"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"//响应状态码200断言
\r
"
,
"
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
queryType
\"
: 1,
\r\n
\"
pageName
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
goodsCode
\"
:
\"
中国共产党百年扶贫的理论与实践
\"
,
\r\n
\"
productName
\"
:
\"
中国共产党百年扶贫的理论与实践
\"
,
\r\n
\"
productCode
\"
:
\"
中国共产党百年扶贫的理论与实践
\"
,
\r\n
\"
orgName
\"
:
\"
河北省新华书店总部店
\"
,
\r\n
\"
orgCode
\"
:
\"
河北省新华书店总部店
\"
,
\r\n
\"
actualInventoryUp
\"
:
\"\"
,
\r\n
\"
actualInventoryDown
\"
:
\"\"
,
\r\n
\"
salesInventoryUp
\"
:
\"\"
,
\r\n
\"
salesInventoryDown
\"
:
\"\"
,
\r\n
\"
ascAndDescPhysicalInventoryFlag
\"
: 0,
\r\n
\"
ascAndDescSaleInventoryFlag
\"
: 0,
\r\n
\"
productCategoryIds
\"
:
\"\"
,
\r\n
\"
brandIds
\"
: []
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.xinhuabest.com/innerApi/inventoryService/inventory/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"xinhuabest"
,
"com"
],
"path"
:
[
"innerApi"
,
"inventoryService"
,
"inventory"
,
"page"
]
}
},
"response"
:
[]
}
]
}
]
}
\ 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