Commit d28154a0 by 陈海枫

Upload New File

parent ee719aa1
{
"info": {
"_postman_id": "4da8a899-e851-4503-bf6a-55d65253e3dd",
"name": "xgy",
"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(\"请求成功\");\r",
"});\r",
"//断言响应字符串是否包含请求成功\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"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"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.mayi888.com/innerApi/baseService/employeeInfo/loginByRole",
"protocol": "https",
"host": [
"admin",
"mayi888",
"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 \"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.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 \"pageNum\": 1,\r\n \"pageSize\": 10,\r\n \"isDataPermission\": true,\r\n \"brandIdsStr\": \"\",\r\n \"categoryId\": \"\",\r\n \"productSaleType\": \"\",\r\n \"oversoldFlag\": \"\",\r\n \"preferredSupplierNames\": [],\r\n \"channelSource\": \"\",\r\n \"productCategoryIdsStr\": \"3581\",\r\n \"builtInFlag\": 0,\r\n \"sourceWay\": null\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 \"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\": \"m1YeBnC5\"\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",
"\r",
"var jsondata =JSON.parse(responseBody);\r",
"//提取响应作为JSON\r",
"pm.globals.set(\"addproductID\", jsondata.data)\r",
"//提取jsonData中的token做为全局变量Mayi-Token\r",
"\r",
"\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 \"coverImage\": \"\",\r\n \"multiSpecificationFlag\": 0,\r\n \"productSaleType\": \"0\",\r\n \"marketingModel\": \"1\",\r\n \"inventoryModel\": \"\",\r\n \"directionsForUse\": \"\",\r\n \"limitPurchaseFlag\": false,\r\n \"limitPurchaseNumber\": \"\",\r\n \"virtualBookType\": \"0\",\r\n \"categoryId\": \"2\",\r\n \"productNature\": \"1\",\r\n \"eBookId\": null,\r\n \"audioBookId\": null,\r\n \"physicalBookId\": null,\r\n \"productName\": \"接口自动化测试商品\",\r\n \"electronicImg\": \"\",\r\n \"saveOrUpdateProductResourceRequestDTOs\": [\r\n {\r\n \"url\": \"/product/HSCJreM7s5.jpg\",\r\n \"sequenceNumber\": 0,\r\n \"type\": 1\r\n }\r\n ],\r\n \"saveOrUpdateSingleSpeGoodsInfoRequestDTO\": {\r\n \"enableFlag\": 1,\r\n \"goodsCode\": \"\",\r\n \"goodsBarCode\": \"\",\r\n \"weight\": \"\",\r\n \"sizeLong\": \"\",\r\n \"sizeWidth\": \"\",\r\n \"sizeHeight\": \"\",\r\n \"cTn\": \"\",\r\n \"goodsSuggestedRetailPrice\": \"\",\r\n \"goodsDefaultSellPrice\": \"\",\r\n \"goodsPriceIntervalMinimum\": \"\",\r\n \"goodsPriceIntervalBiggest\": \"\",\r\n \"periodOfValidityType\": \"\",\r\n \"periodOfValidityStartTime\": \"\",\r\n \"periodOfValidityEndTime\": \"\",\r\n \"periodOfValidityDay\": \"\",\r\n \"oversoldFlag\": false,\r\n \"saveCombinationGoodsRelationshipRequestDTOS\": [],\r\n \"outId\": \"\"\r\n },\r\n \"productAttributeIdsStr\": \"\",\r\n \"classIdsStr\": \"\",\r\n \"clearPreferredSupplierId\": true\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://admin.mayi888.com/innerApi/goodsService/product/add_product",
"protocol": "https",
"host": [
"admin",
"mayi888",
"com"
],
"path": [
"innerApi",
"goodsService",
"product",
"add_product"
]
}
},
"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",
"\r",
"\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": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://admin.mayi888.com/innerApi/goodsService/product/remove_to_garbage/{{addproductID}}",
"protocol": "https",
"host": [
"admin",
"mayi888",
"com"
],
"path": [
"innerApi",
"goodsService",
"product",
"remove_to_garbage",
"{{addproductID}}"
]
}
},
"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",
"\r",
"\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\": 7,\r\n \"tabType\": \"all\",\r\n \"orgIds\": [],\r\n \"placeOrderOrgIds\": [],\r\n \"orderSn\": \"ORD2023071102264300189897\",\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}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://admin.mayi888.com/innerApi/orderService/order/page",
"protocol": "https",
"host": [
"admin",
"mayi888",
"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",
"\r",
"\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 \"useMarkPay\": true,\r\n \"markPayName\": \"标记支付\",\r\n \"paymentMethodId\": \"375 670\",\r\n \"isPreparePayment\": false,\r\n \"organization\": \"\",\r\n \"client\": \"\",\r\n \"consignee\": \"陈海枫\",\r\n \"telephone\": \"13037555524\",\r\n \"address\": \"万达城市公寓\",\r\n \"manualDiscountPrice\": 0,\r\n \"manualDiscountPriceChange\": 0,\r\n \"manualDiscountPriceBeforeOrder\": 0,\r\n \"discountWay\": \"1\",\r\n \"discountValue\": \"\",\r\n \"shippingFee\": \"0.000000\",\r\n \"sellerRemark\": \"\",\r\n \"sellerId\": \"4491\",\r\n \"customerName\": \"陈海枫\",\r\n \"priceTableId\": \"\",\r\n \"saleChannelName\": \"通州燕来喜家纺城\",\r\n \"settlementMethod\": \"0\",\r\n \"feeTemplateId\": \"\",\r\n \"includeTaxFlag\": 0,\r\n \"taxRate\": 0,\r\n \"taxFee\": 0,\r\n \"transportType\": 1,\r\n \"shopId\": \"1645\",\r\n \"saleChannelId\": \"1645\",\r\n \"saleChannelType\": 1,\r\n \"orgId\": \"7278\",\r\n \"goodsSourceOrgId\": \"7278\",\r\n \"customerId\": \"283802\",\r\n \"invoiceId\": null,\r\n \"companyName\": \"\",\r\n \"invoiceTaxNumber\": \"\",\r\n \"invoiceAddress\": \"\",\r\n \"invoicePhone\": \"\",\r\n \"invoiceBank\": \"\",\r\n \"invoiceBankSn\": \"\",\r\n \"placeOrderOrgId\": \"7278\",\r\n \"provinceCode\": \"310000\",\r\n \"cityCode\": \"310100\",\r\n \"regionCode\": \"310114\",\r\n \"totalAmountPayable\": \"\",\r\n \"orderItems\": [\r\n {\r\n \"qty\": 1,\r\n \"rowTotalPrice\": \"299.00\",\r\n \"terminalProductGoodsId\": \"258834\",\r\n \"goodsId\": \"159912\",\r\n \"specification\": \"\",\r\n \"goodsCode\": \"m1YeBnC5001\",\r\n \"salePrice\": \"299.000000\",\r\n \"dealPrice\": \"299.000000\",\r\n \"dealPriceChange\": \"299.000000\",\r\n \"discountWay\": \"1\",\r\n \"discountValue\": null,\r\n \"discountAfterPrice\": null,\r\n \"singleManualDiscountPrice\": null,\r\n \"productName\": \"高级全棉床单款婚庆四件套\",\r\n \"productSaleType\": \"0\",\r\n \"goodsPictureUrl\": \"https://cdn.mayi888.com/product/HZcDwXfnXw.jpg\",\r\n \"supplierName\": \"\",\r\n \"children\": [],\r\n \"edit\": false\r\n }\r\n ],\r\n \"orderType\": 5,\r\n \"giftNumber\": 1,\r\n \"combinationItems\": [],\r\n \"flagCouponByActivity\": 1,\r\n \"couponPrice\": 0\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://admin.mayi888.com/innerApi/orderService/order/turnConfirmOrder",
"protocol": "https",
"host": [
"admin",
"mayi888",
"com"
],
"path": [
"innerApi",
"orderService",
"order",
"turnConfirmOrder"
]
}
},
"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(\"SESSION_ID\", jsondata.data.SESSION_ID)\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 \"account\": \"13037555524\",\r\n \"password\": \"123456\",\r\n \"loginType\": 0\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://shop.mayi888.com/innerApi/shopApiService/login",
"protocol": "https",
"host": [
"shop",
"mayi888",
"com"
],
"path": [
"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": "TZYLX",
"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\": \"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\": \"1\",\r\n \"searchScopeFlag\": 1\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://shop.mayi888.com/innerApi/shopApiService/product/query_product_info",
"protocol": "https",
"host": [
"shop",
"mayi888",
"com"
],
"path": [
"innerApi",
"shopApiService",
"product",
"query_product_info"
]
}
},
"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",
"//断言响应字符串是否包含请求成功\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": "TZYLX",
"type": "text"
},
{
"key": "Authorization",
"value": "{{SESSION_ID}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "[\r\n {\r\n \"productGoodsId\": \"258781\",\r\n \"qty\": 1,\r\n \"addChannel\": 2\r\n }\r\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://shop.mayi888.com/innerApi/shopApiService/cart/add_item",
"protocol": "https",
"host": [
"shop",
"mayi888",
"com"
],
"path": [
"innerApi",
"shopApiService",
"cart",
"add_item"
]
}
},
"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",
"//断言响应字符串是否包含请求成功\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",
"var jsondata =JSON.parse(responseBody);\r",
"//提取响应作为JSON\r",
"pm.globals.set(\"orderSn\", jsondata.data.orderSn)\r",
"//提取jsonData中的token做为全局变量Mayi-Token\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": "TZYLX",
"type": "text"
},
{
"key": "Authorization",
"value": "{{SESSION_ID}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"transportType\": 1,\r\n \"placeOrderOrgId\": \"\",\r\n \"placeOrderOrgCode\": \"\",\r\n \"placeOrderOrgName\": \"\",\r\n \"orderType\": 1,\r\n \"sourceChannel\": \"1\",\r\n \"totalOriginalPrice\": 0,\r\n \"totalAmountPayable\": 99,\r\n \"totalQty\": \"1\",\r\n \"consignee\": \"陈海枫\",\r\n \"telephone\": \"13037555524\",\r\n \"address\": \"万达城市公寓\",\r\n \"postscript\": \"\",\r\n \"invoiceType\": 0,\r\n \"invoiceTitle\": 0,\r\n \"invoiceTaxNumber\": \"\",\r\n \"invoiceReceiveTelephone\": \"\",\r\n \"invoiceReceiveEmail\": \"\",\r\n \"invoiceContent\": \"\",\r\n \"companyName\": \"\",\r\n \"shipping_fee\": 0,\r\n \"remark\": \"\",\r\n \"provinceCode\": \"310000\",\r\n \"provinceName\": \"上海市\",\r\n \"cityCode\": \"310100\",\r\n \"regionCode\": \"310114\",\r\n \"regionName\": \"嘉定区\",\r\n \"orderItems\": [\r\n {\r\n \"qty\": \"1\",\r\n \"specifications\": \"\",\r\n \"salePrice\": 99,\r\n \"dealPrice\": 99,\r\n \"rowTotalPrice\": \"99.00\",\r\n \"productType\": 0,\r\n \"terminalProductGoodsId\": \"258781\",\r\n \"levelMessageConfig\": []\r\n }\r\n ],\r\n \"userAddressId\": \"41021\",\r\n \"activeRuleId\": \"\",\r\n \"platformSource\": 2,\r\n \"wechatSubdivisionSource\": 1,\r\n \"applySource\": 1,\r\n \"productGoodsMixId\": \"6l56n9tq5nkt\",\r\n \"districtCode\": \"310114\",\r\n \"couponId\": \"\",\r\n \"couponPrice\": 0,\r\n \"cardCodeList\": [],\r\n \"liveId\": \"\",\r\n \"sourceShopOrgId\": \"\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://shop.mayi888.com/innerApi/shopApiService/order/add_order",
"protocol": "https",
"host": [
"shop",
"mayi888",
"com"
],
"path": [
"innerApi",
"shopApiService",
"order",
"add_order"
]
}
},
"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",
"//断言响应字符串是否包含请求成功\r",
"\r",
"pm.test(\"Body matches string\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"true\");\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": "Mayi-Token",
"value": "{{Mayi-Token}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"orderSn\": \"{{orderSn}}\",\r\n \"payName\": \"标记支付 - 标记支付\",\r\n \"peyMethod\": \"1\",\r\n \"totalAmountPayable\": \"99.0\",\r\n \"paymentVoucher\": [],\r\n \"paidDatetime\": null,\r\n \"receiveAccount\": null,\r\n \"receiptGoodsDetailRequestList\": [\r\n {\r\n \"activityDisPriceDesc\": \"\",\r\n \"allowReturnFlag\": \"1\",\r\n \"allowReturnMoneyFlag\": \"1\",\r\n \"apportionedResidualPrice\": \"0.000000\",\r\n \"balanceActualDiscountAmount\": \"0\",\r\n \"balanceDisPriceDesc\": \"\",\r\n \"bargainingActualDiscountAmount\": \"0\",\r\n \"childCombinationSalePrice\": \"0.000000\",\r\n \"combinationGoodsQty\": \"0.000000\",\r\n \"combinationGoodsSpecifications\": \"\",\r\n \"combinationProductMainImage\": \"\",\r\n \"combinationProductName\": \"\",\r\n \"costPrice\": \"0.000000\",\r\n \"couponActualDiscountAmount\": \"0\",\r\n \"couponPriceDesc\": \"\",\r\n \"customerName\": \"\",\r\n \"dealPrice\": \"99.000000\",\r\n \"dealPriceInit\": \"99.000000\",\r\n \"depositInflationActualDiscountAmount\": \"0\",\r\n \"errorAmount\": \"0.000000\",\r\n \"exchangeIntegral\": \"0.000000\",\r\n \"finalApportionmentPrice\": \"99.00\",\r\n \"flagFullGift\": \"0\",\r\n \"fullReductionGiftActualDiscountAmount\": \"0\",\r\n \"giftCardActualDiscountAmount\": \"0\",\r\n \"giftCardDisPriceDesc\": \"\",\r\n \"giftFlag\": \"0\",\r\n \"goodsCode\": \"5dnAWya8001\",\r\n \"goodsId\": \"159883\",\r\n \"goodsPictureUrl\": \"/product/233jcYm4X6.JPG\",\r\n \"goodsSuggestedRetailPrice\": \"199.000000\",\r\n \"id\": \"407561\",\r\n \"itemExpenseDetails\": [],\r\n \"limitTimeActualDiscountAmount\": \"0.00\",\r\n \"marketingModel\": \"1\",\r\n \"memberActualDiscountAmount\": \"0\",\r\n \"membershipCardDisPriceDesc\": \"\",\r\n \"onePriceActualDiscountAmount\": \"0\",\r\n \"orderItemInitId\": \"407561\",\r\n \"orderSn\": \"{{orderSn}}\",\r\n \"orgCode\": \"\",\r\n \"plusBuyCode\": \"\",\r\n \"plusBuyName\": \"\",\r\n \"productCode\": \"5dnAWya8\",\r\n \"productId\": \"73836\",\r\n \"productName\": \"高级天鹅绒枕头一对\",\r\n \"productNature\": \"1\",\r\n \"productSaleType\": \"0\",\r\n \"productType\": \"0\",\r\n \"qty\": \"1.000000\",\r\n \"remark\": \"\",\r\n \"returnCount\": \"0\",\r\n \"returnPeriod\": \"7\",\r\n \"returnSuccessQty\": \"0\",\r\n \"returningQty\": \"0\",\r\n \"rowCostPrice\": \"0.000000\",\r\n \"rowTotalPrice\": 99,\r\n \"salePrice\": \"99.000000\",\r\n \"secondHalfPriceActualDiscountAmount\": \"0\",\r\n \"secondKillActualDiscountAmount\": \"0\",\r\n \"selfDefinedLevelMessage\": \"\",\r\n \"singleManualDiscountPrice\": \"0.000000\",\r\n \"specificationResponseDTOS\": [],\r\n \"specificationValues\": \"\",\r\n \"specifications\": \"{}\",\r\n \"supplierCode\": \"\",\r\n \"supplierName\": \"\",\r\n \"swapGoodsFlag\": \"0\",\r\n \"teamActualDiscountAmount\": \"0\",\r\n \"terminalGoodsMixId\": \"6l56n9tq5nkt\",\r\n \"terminalProductGoodsId\": \"258781\",\r\n \"terminalProductGoodsOrgCode\": \"LET6F4\",\r\n \"terminalProductGoodsOrgId\": \"7278\",\r\n \"terminalProductGoodsOrgName\": \"通州燕来喜家纺城\",\r\n \"terminalProductId\": \"102816\",\r\n \"unshipQty\": \"1.000000\",\r\n \"usePriceTable\": \"\",\r\n \"discountRemark\": \"\",\r\n \"discountValue\": 0,\r\n \"dealPriceChange\": \"99.000000\",\r\n \"apportSurplus\": 0,\r\n \"updateOrderItemBtn\": false,\r\n \"discountBasicPrice\": \"99.000000\",\r\n \"brandName\": \"\",\r\n \"goodsBarCode\": \"\",\r\n \"currentQty\": \"200\",\r\n \"averageInventoryCost\": 0,\r\n \"attributeStr\": []\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://admin.mayi888.com/innerApi/orderService/transactionFlow/complete",
"protocol": "https",
"host": [
"admin",
"mayi888",
"com"
],
"path": [
"innerApi",
"orderService",
"transactionFlow",
"complete"
]
}
},
"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",
"//断言响应字符串是否包含请求成功\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",
"var jsondata =JSON.parse(responseBody);\r",
"//提取响应作为JSON\r",
"pm.globals.set(\"orderSn\", jsondata.data.orderSn)\r",
"//提取jsonData中的token做为全局变量Mayi-Token\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": "TZYLX",
"type": "text"
},
{
"key": "Authorization",
"value": "{{SESSION_ID}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"transportType\": 1,\r\n \"placeOrderOrgId\": \"\",\r\n \"placeOrderOrgCode\": \"\",\r\n \"placeOrderOrgName\": \"\",\r\n \"orderType\": 1,\r\n \"sourceChannel\": \"1\",\r\n \"totalOriginalPrice\": 0,\r\n \"totalAmountPayable\": 8.88,\r\n \"totalQty\": \"1\",\r\n \"consignee\": \"陈海枫\",\r\n \"telephone\": \"13037555524\",\r\n \"address\": \"万达城市公寓\",\r\n \"postscript\": \"\",\r\n \"invoiceType\": 0,\r\n \"invoiceTitle\": 0,\r\n \"invoiceTaxNumber\": \"\",\r\n \"invoiceReceiveTelephone\": \"\",\r\n \"invoiceReceiveEmail\": \"\",\r\n \"invoiceContent\": \"\",\r\n \"companyName\": \"\",\r\n \"shipping_fee\": 0,\r\n \"remark\": \"\",\r\n \"provinceCode\": \"310000\",\r\n \"provinceName\": \"上海市\",\r\n \"cityCode\": \"310100\",\r\n \"regionCode\": \"310114\",\r\n \"regionName\": \"嘉定区\",\r\n \"orderItems\": [\r\n {\r\n \"qty\": \"1\",\r\n \"specifications\": \"\",\r\n \"salePrice\": 8.88,\r\n \"dealPrice\": 8.88,\r\n \"rowTotalPrice\": \"8.88\",\r\n \"productType\": 0,\r\n \"terminalProductGoodsId\": \"267176\",\r\n \"levelMessageConfig\": []\r\n }\r\n ],\r\n \"userAddressId\": \"41021\",\r\n \"activeRuleId\": \"\",\r\n \"platformSource\": 2,\r\n \"wechatSubdivisionSource\": 1,\r\n \"applySource\": 1,\r\n \"productGoodsMixId\": \"mo9pkv6mjbg2\",\r\n \"districtCode\": \"310114\",\r\n \"couponId\": \"\",\r\n \"couponPrice\": 0,\r\n \"cardCodeList\": [],\r\n \"liveId\": \"\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://shop.mayi888.com/innerApi/shopApiService/order/add_order",
"protocol": "https",
"host": [
"shop",
"mayi888",
"com"
],
"path": [
"innerApi",
"shopApiService",
"order",
"add_order"
]
}
},
"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",
"//断言响应字符串是否包含请求成功\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",
"var jsondata =JSON.parse(responseBody);\r",
"//提取响应作为JSON\r",
"pm.globals.set(\"orderSn\", jsondata.data.orderSn)\r",
"//提取jsonData中的token做为全局变量Mayi-Token\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": "TZYLX",
"type": "text"
},
{
"key": "Authorization",
"value": "{{SESSION_ID}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"transportType\": 1,\r\n \"placeOrderOrgId\": \"\",\r\n \"placeOrderOrgCode\": \"\",\r\n \"placeOrderOrgName\": \"\",\r\n \"orderType\": 1,\r\n \"sourceChannel\": \"1\",\r\n \"totalOriginalPrice\": 0,\r\n \"totalAmountPayable\": 99,\r\n \"totalQty\": \"1\",\r\n \"consignee\": \"陈海枫\",\r\n \"telephone\": \"13037555524\",\r\n \"address\": \"万达城市公寓\",\r\n \"postscript\": \"\",\r\n \"invoiceType\": 0,\r\n \"invoiceTitle\": 0,\r\n \"invoiceTaxNumber\": \"\",\r\n \"invoiceReceiveTelephone\": \"\",\r\n \"invoiceReceiveEmail\": \"\",\r\n \"invoiceContent\": \"\",\r\n \"companyName\": \"\",\r\n \"shipping_fee\": 0,\r\n \"remark\": \"\",\r\n \"provinceCode\": \"310000\",\r\n \"provinceName\": \"上海市\",\r\n \"cityCode\": \"310100\",\r\n \"regionCode\": \"310114\",\r\n \"regionName\": \"嘉定区\",\r\n \"orderItems\": [\r\n {\r\n \"qty\": \"1\",\r\n \"specifications\": \"\",\r\n \"salePrice\": 99,\r\n \"dealPrice\": 99,\r\n \"rowTotalPrice\": \"99.00\",\r\n \"productType\": 0,\r\n \"terminalProductGoodsId\": \"258781\",\r\n \"levelMessageConfig\": []\r\n }\r\n ],\r\n \"userAddressId\": \"41021\",\r\n \"activeRuleId\": \"\",\r\n \"platformSource\": 2,\r\n \"wechatSubdivisionSource\": 1,\r\n \"applySource\": 1,\r\n \"productGoodsMixId\": \"6l56n9tq5nkt\",\r\n \"districtCode\": \"310114\",\r\n \"couponId\": \"\",\r\n \"couponPrice\": 0,\r\n \"cardCodeList\": [],\r\n \"liveId\": \"\",\r\n \"sourceShopOrgId\": \"\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://shop.mayi888.com/innerApi/shopApiService/order/cancel_order?orderSn={{orderSn}}",
"protocol": "https",
"host": [
"shop",
"mayi888",
"com"
],
"path": [
"innerApi",
"shopApiService",
"order",
"cancel_order"
],
"query": [
{
"key": "orderSn",
"value": "{{orderSn}}"
}
]
}
},
"response": []
}
]
}
]
}
\ 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 to comment