{ "info": { "_postman_id": "33155e02-e4bd-73df-5e38-ba96a7873e04", "name": "xcims_pc", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "formal", "item": [ { "name": "post_login", "event": [ { "listen": "test", "script": { "id": "a90d6b07-0570-491e-875d-04cf17526461", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"password\": \"13500008888\",\r\n\t\"phone\": \"13500008888\",\r\n\t\"region\": \"86\"\r\n}" }, "url": { "raw": "http://ims.linkerplus.com/im/user/login", "protocol": "http", "host": [ "ims", "linkerplus", "com" ], "path": [ "im", "user", "login" ] } }, "response": [] } ] }, { "name": "SuperManageLogin", "item": [ { "name": "post_sm_login", "event": [ { "listen": "test", "script": { "id": "5e6b446e-7ee5-4234-8861-955b752dde77", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"Rongtoken\", jsonData.result.token);", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"password\": \"13500008888\",\r\n\t\"phone\": \"13500008888\",\r\n\t\"region\": \"86\"\r\n}" }, "url": { "raw": "{{imurl}}/user/login/", "host": [ "{{imurl}}" ], "path": [ "user", "login", "" ] } }, "response": [] } ] }, { "name": "cloud", "item": [ { "name": "01_get_basic_carlevel", "event": [ { "listen": "test", "script": { "id": "963930b9-4ca8-4edb-80b1-6309989954c0", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "Date.prototype.Format = function (fmt) { //author: meizz ", " var o = {", " \"M+\": this.getMonth() + 1, //月份 ", " \"d+\": this.getDate(), //日 ", " \"h+\": this.getHours(), //小时 ", " \"m+\": this.getMinutes(), //分 ", " \"s+\": this.getSeconds(), //秒 ", " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ", " \"S\": this.getMilliseconds() //毫秒 ", " };", " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));", " for (var k in o)", " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));", " return fmt;", "}", "", "", "postman.setGlobalVariable(\"date\", new Date().toISOString());", "postman.setGlobalVariable(\"ymd-date\", new Date().Format(\"yyyy-MM-dd\"));", "", "postman.setGlobalVariable(\"localdate\", new Date().toLocaleString());" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carlevel/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carlevel", "" ] } }, "response": [] }, { "name": "02_get_basic_carcategorystyle", "event": [ { "listen": "test", "script": { "id": "d54ab461-9d1d-4a1f-ada3-5a462cdab8f1", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " // var jsonData = JSON.parse(responseBody);", " ", " // postman.setEnvironmentVariable(\"carcategory_id01\", jsonData.results[0].id);", " ", " // postman.setEnvironmentVariable(\"carcategory_name01\", jsonData.results[0].category_name);", " ", " // postman.setEnvironmentVariable(\"carcategory_category01\", jsonData.results[0].category);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carcategorystyle/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carcategorystyle", "" ] } }, "response": [] }, { "name": "03_get_basic_beautycategory", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautycategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautycategory", "" ] } }, "response": [] }, { "name": "04_get_basic_repairecategory", "event": [ { "listen": "test", "script": { "id": "d7de5b88-c5a8-4abf-9173-694b8df4d83a", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/repaircategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repaircategory", "" ] } }, "response": [] }, { "name": "05_get_basic_vipmemberinteresttemplate", "event": [ { "listen": "test", "script": { "id": "8792c958-95ae-4362-b49e-52a5b79d67a4", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"interest_id01\", jsonData[0].id);", " postman.setEnvironmentVariable(\"interest_id02\", jsonData[1].id);", " postman.setEnvironmentVariable(\"interest_id03\", jsonData[2].id);", "", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/vipmemberinteresttemplate/", "host": [ "{{url}}" ], "path": [ "api", "basic", "vipmemberinteresttemplate", "" ] } }, "response": [] }, { "name": "06_get_vipmember_vipmemberscoretype", "event": [ { "listen": "test", "script": { "id": "deafddf2-514b-4b3b-8406-10005deeb358", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"scoretype_id01\", jsonData[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscoretype/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscoretype", "" ] } }, "response": [] }, { "name": "07_get_vipmember_vipmemberscorerule", "event": [ { "listen": "test", "script": { "id": "c201afe1-db22-4a48-ada5-9b909dc25419", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscorerule/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscorerule", "" ] } }, "response": [] }, { "name": "08_get_basic_department", "event": [ { "listen": "test", "script": { "id": "85434870-a913-4d23-8e74-00431286f0b6", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);", "// postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/clouddept/", "host": [ "{{url}}" ], "path": [ "api", "basic", "clouddept", "" ] } }, "response": [] }, { "name": "09_get_basic_cloudaccount", "event": [ { "listen": "test", "script": { "id": "d72c131d-1693-41d0-923f-05b62b88fedf", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"account_id01\", jsonData[2].id);", " ", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/cloudaccount/", "host": [ "{{url}}" ], "path": [ "api", "basic", "cloudaccount", "" ] } }, "response": [] }, { "name": "10_get_basic_storehouse", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"storehouse_id03\", jsonData.results[3].id);", "// postman.setEnvironmentVariable(\"storehouse_id02\", jsonData.results[2].id);", "// postman.setEnvironmentVariable(\"storehouse_id01\", jsonData.results[1].id);", " ", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/storehouse/", "host": [ "{{url}}" ], "path": [ "api", "basic", "storehouse", "" ] } }, "response": [] }, { "name": "11_get_basic_inventoryadjustmentcategory", "event": [ { "listen": "test", "script": { "id": "68f70339-380f-44d9-b61b-b2e916ca33b1", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"category_id01\", jsonData.results[0].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/inventoryadjustmentcategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "inventoryadjustmentcategory", "" ] } }, "response": [] }, { "name": "12_get_basic_receiptcategory", "event": [ { "listen": "test", "script": { "id": "f87f9685-1a33-44a7-b438-46cda127cf69", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"receipt_category01\", jsonData.results[4].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/receiptcategory/", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "receiptcategory", "" ] } }, "response": [] }, { "name": "13_get_basic_paycategory", "event": [ { "listen": "test", "script": { "id": "f5d71fdf-0c29-4593-a146-319d45d9d5b8", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"paycategory_id01\", jsonData.results[1].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/paycategory/", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "paycategory", "" ] } }, "response": [] }, { "name": "14_get_basic_payeecategory", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/payeecategory/", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "payeecategory", "" ] } }, "response": [] }, { "name": "15_get_basic_attendanceabnormalcategory", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/attendanceabnormalcategory/", "host": [ "{{url}}" ], "path": [ "api", "staff", "attendanceabnormalcategory", "" ] } }, "response": [] }, { "name": "16_get_staff_adjustmentcategory", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/adjustmentcategory/", "host": [ "{{url}}" ], "path": [ "api", "staff", "adjustmentcategory", "" ] } }, "response": [] }, { "name": "17_get_staff_performancecategory", "event": [ { "listen": "test", "script": { "id": "028847a6-5d94-4c97-bedd-1408eca38248", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/performancecategory/", "host": [ "{{url}}" ], "path": [ "api", "staff", "performancecategory", "" ] } }, "response": [] }, { "name": "18_get_staff_commissionrulesetting", "event": [ { "listen": "test", "script": { "id": "026161ac-946c-4a6b-8f16-138d3d52b056", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/commissionrulesetting/", "host": [ "{{url}}" ], "path": [ "api", "staff", "commissionrulesetting", "" ] } }, "response": [] }, { "name": "19_get_staff_monthrestdays", "event": [ { "listen": "test", "script": { "id": "11fcbb63-1547-4e87-8bdf-37bff02407d2", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/monthrestdays/", "host": [ "{{url}}" ], "path": [ "api", "staff", "monthrestdays", "" ] } }, "response": [] }, { "name": "20_get_vipmember_vipmembergradeadmin", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"grade_id01\", jsonData.results[0].id);", "// postman.setEnvironmentVariable(\"grade_id02\", jsonData.results[1].id);", "// postman.setEnvironmentVariable(\"grade_id03\", jsonData.results[2].id);", "// postman.setEnvironmentVariable(\"grade_id04\", jsonData.results[3].id);", "// postman.setEnvironmentVariable(\"grade_id05\", jsonData.results[4].id);", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmembergradeadmin/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmembergradeadmin", "" ] } }, "response": [] }, { "name": "21_get_basic_carproductscategory", "event": [ { "listen": "test", "script": { "id": "cbc5dc67-b40d-4ac8-8f36-9658bc92c745", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carproductscategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carproductscategory", "" ] } }, "response": [] }, { "name": "22_get_role", "event": [ { "listen": "test", "script": { "id": "b9b5ff72-c343-48c2-a03f-7c9d4dc27c78", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/permissions/role/", "host": [ "{{url}}" ], "path": [ "api", "permissions", "role", "" ] } }, "response": [] }, { "name": "23_get_permission", "event": [ { "listen": "test", "script": { "id": "b9b5ff72-c343-48c2-a03f-7c9d4dc27c78", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/permissions/permission/", "host": [ "{{url}}" ], "path": [ "api", "permissions", "permission", "" ] } }, "response": [] }, { "name": "24_get_shopmenu", "event": [ { "listen": "test", "script": { "id": "b9b5ff72-c343-48c2-a03f-7c9d4dc27c78", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/permissions/shopmenu/", "host": [ "{{url}}" ], "path": [ "api", "permissions", "shopmenu", "" ] } }, "response": [] } ] }, { "name": "usually_basic", "item": [ { "name": "01_get_basic_beautyservices", "event": [ { "listen": "test", "script": { "id": "41715030-892e-4d1f-81b1-adb748f2773c", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautyservices/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautyservices", "" ] } }, "response": [] }, { "name": "02_get_basic_repairservice", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/repairservice/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairservice", "" ] } }, "response": [] }, { "name": "03_get_basic_rootrepairfee", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/rootrepairfee/", "host": [ "{{url}}" ], "path": [ "api", "basic", "rootrepairfee", "" ] } }, "response": [] }, { "name": "04_get_basic_brands", "event": [ { "listen": "test", "script": { "id": "50e53700-f12c-41e3-ae48-d582fdcbba42", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"brand_name01\", jsonData.results[0].name);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/brands/", "host": [ "{{url}}" ], "path": [ "api", "basic", "brands", "" ] } }, "response": [] }, { "name": "05_get_basic_carproducts", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carproducts/?page=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "carproducts", "" ], "query": [ { "key": "page", "value": "2" } ] } }, "response": [] }, { "name": "06_get_vipmember_vipmemberrechargepackagecloud", "event": [ { "listen": "test", "script": { "id": "066e4d20-1487-4261-92f1-576a210e4ca9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].id);", " // postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].amount_package);", " // postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].real_payment);", " // postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].validity_period);", " ", " postman.setEnvironmentVariable(\"packagecloud_id02\", jsonData.results[1].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrechargepackagecloud/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrechargepackagecloud", "" ] } }, "response": [] }, { "name": "07_get_cloudebeautypackages", "event": [ { "listen": "test", "script": { "id": "b3c50a93-bb27-4996-8500-25f6536aab3c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/cloudebeautypackages/", "host": [ "{{url}}" ], "path": [ "api", "basic", "cloudebeautypackages", "" ] } }, "response": [] } ] }, { "name": "systemcustomermanage", "item": [ { "name": "01_get_scm_customertype", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"customer_typeid\", jsonData[0].id);", " postman.setEnvironmentVariable(\"customer_typeid02\", jsonData[2].id);", " ", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customertype/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customertype", "" ] } }, "response": [] }, { "name": "02_get_scm_customertypebusiness", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"customer_business1\", jsonData[1].id);", " ", " postman.setEnvironmentVariable(\"customer_business2\", jsonData[2].id);", " ", " postman.setEnvironmentVariable(\"customer_business3\", jsonData[3].id);", " ", " postman.setEnvironmentVariable(\"customer_business4\", jsonData[4].id);", " ", " postman.setEnvironmentVariable(\"customer_business5\", jsonData[5].id);", " ", " postman.setEnvironmentVariable(\"customer_business6\", jsonData[6].id);", "", " ", " postman.setEnvironmentVariable(\"customer_business7\", jsonData[0].id);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customertypebusiness/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customertypebusiness", "" ] } }, "response": [] }, { "name": "03_get_scm_customertypebusiness _typeid", "event": [ { "listen": "test", "script": { "id": "ebd6c3f5-7199-42fb-a2f2-cd7134dca037", "exec": [ "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"customer_typeid01\", jsonData[0].id);", " ", " postman.setEnvironmentVariable(\"customer_typeid03\", jsonData[2].id);", " postman.setEnvironmentVariable(\"customer_typeid04\", jsonData[3].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customertypebusiness/?customerTypeId={{customer_typeid}}", "host": [ "{{url}}" ], "path": [ "api", "scm", "customertypebusiness", "" ], "query": [ { "key": "customerTypeId", "value": "{{customer_typeid}}" } ] } }, "response": [] }, { "name": "04_get_scm_customertypebusiness _typeid2", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"customer_typeid0202\", jsonData[0].id);", " postman.setEnvironmentVariable(\"customer_typeid0203\", jsonData[1].id);", " postman.setEnvironmentVariable(\"customer_typeid0204\", jsonData[2].id);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customertypebusiness/?customerTypeId={{customer_typeid02}}", "host": [ "{{url}}" ], "path": [ "api", "scm", "customertypebusiness", "" ], "query": [ { "key": "customerTypeId", "value": "{{customer_typeid02}}" } ] } }, "response": [] }, { "name": "05_get_scm_trialperiod", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"trial_period\", jsonData[3].id);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/trialperiod/", "host": [ "{{url}}" ], "path": [ "api", "scm", "trialperiod", "" ] } }, "response": [] }, { "name": "06_get_scm_customersource", "event": [ { "listen": "test", "script": { "id": "af708240-ce51-4220-8845-56b26063cdfc", "exec": [ "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"customer_source\", jsonData[0].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customersource/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customersource", "" ] } }, "response": [] }, { "name": "07_post_scm_customeradmin", "event": [ { "listen": "test", "script": { "id": "9593c642-9ba7-44ea-9e11-852ee60b519e", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"code\": null,\r\n\t\"register_date\": \"{{date}}\",\r\n\t\"name\": \"明发园汽车修理厂\",\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"customer_source\": {{customer_source}},\r\n\t\"trial_period\": {{trial_period}},\r\n\t\"expired_date\": \"{{date}}\",\r\n\t\"contract_expired_date\": null,\r\n\t\"boss_name\": \"张智慧\",\r\n\t\"boss_mobile\": \"18159852124\",\r\n\t\"boss_email\": \"18159852124@qq.com\",\r\n\t\"affiliated_group\": null,\r\n\t\"state\": 1,\r\n\t\"customer_business\": [ {{customer_business1}}, {{customer_business2}}, {{customer_business3}},{{customer_business4}}, {{customer_business5}}, {{customer_business6}}, {{customer_business7}}],\r\n\t\"customer_maintenance\": null,\r\n\t\"unified_credit_code\": null,\r\n\t\"address\": null,\r\n\t\"longitude\": null,\r\n\t\"latitude\": null,\r\n\t\"contact_name\": null,\r\n\t\"contact_mobile\": null,\r\n\t\"description\": null\r\n}" }, "url": { "raw": "{{url}}/api/scm/customeradmin/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customeradmin", "" ] } }, "response": [] }, { "name": "08_get_scm_customeradmin", "event": [ { "listen": "test", "script": { "id": "134f530f-5ec5-4958-ad2c-32b914a29eef", "exec": [ "", "", "//tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;", "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"customer_id\", jsonData.results[0].shop_id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customeradmin/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customeradmin", "" ] } }, "response": [] }, { "name": "09_get_scm_customeradmin_id", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "//tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;", "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customeradmin/{{customer_id}}/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customeradmin", "{{customer_id}}", "" ] } }, "response": [] }, { "name": "10_get_scm_subsystem", "event": [ { "listen": "test", "script": { "id": "6bf54825-e658-4181-bc93-7ee38d26a2d6", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"sub_systemid\", jsonData.results[0].id);", " ", " // postman.setEnvironmentVariable(\"subsystem_code\", jsonData.results[0].code);", " ", " // postman.setEnvironmentVariable(\"subsystem_name\", jsonData.results[0].name);", " ", " // postman.setEnvironmentVariable(\"customer_type_id\", jsonData.results[0].customer_type);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/subsystem/", "host": [ "{{url}}" ], "path": [ "api", "scm", "subsystem", "" ] } }, "response": [] }, { "name": "11_get_scm_subsystem _id", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " // postman.setEnvironmentVariable(\"sub_systemid\", jsonData.results[0].id);", " ", " postman.setEnvironmentVariable(\"subsystem_version_module\", jsonData.version_module);", " ", " postman.setEnvironmentVariable(\"subsystem_code\", jsonData.code);", " ", " postman.setEnvironmentVariable(\"subsystem_name\", jsonData.name);", " ", " postman.setEnvironmentVariable(\"subsystem_customer_type\", jsonData.customer_type);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/subsystem/{{sub_systemid}}/", "host": [ "{{url}}" ], "path": [ "api", "scm", "subsystem", "{{sub_systemid}}", "" ] } }, "response": [] }, { "name": "12_get_scm_systemmodule", "event": [ { "listen": "test", "script": { "id": "c40f3e8f-1944-4f7c-94b3-f7a7100501d4", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"module1\", jsonData[0].id);", " ", " postman.setEnvironmentVariable(\"module2\", jsonData[1].id);", " ", " postman.setEnvironmentVariable(\"module3\", jsonData[2].id);", "", " postman.setEnvironmentVariable(\"module4\", jsonData[3].id);", " ", " postman.setEnvironmentVariable(\"module5\", jsonData[4].id);", " ", " postman.setEnvironmentVariable(\"module6\", jsonData[5].id);", " ", " postman.setEnvironmentVariable(\"module7\", jsonData[6].id);", " ", " postman.setEnvironmentVariable(\"module8\", jsonData[7].id);", " ", " ", "}", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/systemmodule/", "host": [ "{{url}}" ], "path": [ "api", "scm", "systemmodule", "" ] } }, "response": [] }, { "name": "13_post_scm_systemmodule", "event": [ { "listen": "test", "script": { "id": "93933fb6-152e-4a3a-86e2-b7f72d05ecbd", "exec": [ "", "tests[\"Successful POST request\"] = responseCode.code === 201;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"systemmodule_id\", jsonData.id);", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"code\": \"990\",\r\n\t\"name\": \"汽车专业服务标准版\",\r\n\t\"version_module\": [{{module1}}, {{module2}}, {{module3}}, {{module4}}, {{module6}},{{module7}}]\r\n}" }, "url": { "raw": "{{url}}/api/scm/systemmodule/", "host": [ "{{url}}" ], "path": [ "api", "scm", "systemmodule", "" ] } }, "response": [] }, { "name": "14_deletet_scm_systemmodule", "event": [ { "listen": "test", "script": { "id": "6c2d048f-a3c8-4eec-bd14-3f9e33fe59ca", "exec": [ "", "tests[\"Status code is 204\"] = responseCode.code === 204 ;" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"code\": \"990\",\r\n\t\"name\": \"汽车专业服务标准版\",\r\n\t\"version_module\": [{{module1}}, {{module2}}, {{module3}}, {{module4}}, {{module6}},{{module7}}]\r\n}" }, "url": { "raw": "{{url}}/api/scm/systemmodule/{{systemmodule_id}}/", "host": [ "{{url}}" ], "path": [ "api", "scm", "systemmodule", "{{systemmodule_id}}", "" ] } }, "response": [] }, { "name": "15_get_scm_concurrentuser", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"concurrent_user\", jsonData[1].quantity);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/concurrentuser/", "host": [ "{{url}}" ], "path": [ "api", "scm", "concurrentuser", "" ] } }, "response": [] }, { "name": "16_post_scm_systemversion", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"systemversion_id\", jsonData.id);", "" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"sub_system\": {{sub_systemid}},\r\n\t\"customer_type\":{{subsystem_customer_type}},\r\n\t\"code\": \"{{subsystem_code}}\",\r\n\t\"name\": \"{{subsystem_name}}\",\r\n\t\"concurrent_user\": {{concurrent_user}},\r\n\t\"price\": \"2000\",\r\n\t\"version_module\": [{{subsystem_version_module}}]\r\n}" }, "url": { "raw": "{{url}}/api/scm/systemversion/", "host": [ "{{url}}" ], "path": [ "api", "scm", "systemversion", "" ] } }, "response": [] }, { "name": "17_get_scm_systemversion", "event": [ { "listen": "test", "script": { "id": "042c0422-6fb7-41fc-b3a7-eb8c31ca6ae8", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"version_id\", jsonData.results[0].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/systemversion/", "host": [ "{{url}}" ], "path": [ "api", "scm", "systemversion", "" ] } }, "response": [] }, { "name": "18_delete_scm_systemversion", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 204\"] = responseCode.code === 204 ;" ] } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": {}, "url": { "raw": "{{url}}/api/scm/systemversion/{{systemversion_id}}/", "host": [ "{{url}}" ], "path": [ "api", "scm", "systemversion", "{{systemversion_id}}", "" ] } }, "response": [] }, { "name": "19_post_scm_customermaintenanceadmin", "event": [ { "listen": "test", "script": { "id": "bf484a30-321b-418f-9092-27c7df8209a9", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"maintenance_id\", jsonData.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"code\": null,\r\n\t\"name\": \"厦门心思科技邮箱公司\",\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"head_name\": \"张宇\",\r\n\t\"head_mobile\": \"19900009999\",\r\n\t\"head_email\": \"19900009999@163.com\",\r\n\t\"note\": null\r\n}" }, "url": { "raw": "{{url}}/api/scm/customermaintenanceadmin/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customermaintenanceadmin", "" ] } }, "response": [] }, { "name": "20_get_scm_customermaintenanceadmin", "event": [ { "listen": "test", "script": { "id": "d7ff6caa-c9f5-4b1c-a585-09b278394a26", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"maintenance_id\", jsonData.results[1].id);", " ", " postman.setEnvironmentVariable(\"maintenance_id01\", jsonData.results[2].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customermaintenanceadmin/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customermaintenanceadmin", "" ] } }, "response": [] }, { "name": "21_delete_scm_customermaintenanceadmin", "event": [ { "listen": "test", "script": { "id": "d7ff6caa-c9f5-4b1c-a585-09b278394a26", "exec": [ "pm.test(\"Status code is 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/customermaintenanceadmin/{{maintenance_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "scm", "customermaintenanceadmin", "{{maintenance_id01}}", "" ] } }, "response": [] }, { "name": "22_post_scm_contract", "event": [ { "listen": "test", "script": { "id": "c2ab4717-2a23-477e-967a-d9ae66e58e56", "exec": [ "", "", "", "", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);", "// }", "", "", "", "tests[\"Successful POST request\"] = responseCode.code === 201 ;", "var jsonData = JSON.parse(responseBody);", " ", "postman.setEnvironmentVariable(\"contract_id\", jsonData.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"customer\": {{customer_id}},\r\n\t\"sign_date\": \"{{date}}\",\r\n\t\"code\": null,\r\n\t\"version\": {{version_id}},\r\n\t\"single_discount\": 0.95,\r\n\t\"complex_discount\": 0.9,\r\n\t\"customer_maintenance\": {{maintenance_id}},\r\n\t\"expired_date\": \"2019-09-11T08:55:50.000Z\",\r\n\t\"rem\": null\r\n}" }, "url": { "raw": "{{url}}/api/scm/contract/", "host": [ "{{url}}" ], "path": [ "api", "scm", "contract", "" ] } }, "response": [] }, { "name": "23_get_scm_contract", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/scm/contract/", "host": [ "{{url}}" ], "path": [ "api", "scm", "contract", "" ] } }, "response": [] }, { "name": "24_delete_scm_contract", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "", "", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);", "// }", "", "", "", "", "", "tests[\"Status code is 204\"] = responseCode.code === 204;" ] } } ], "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{Rongtoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"customer\": {{customer_id}},\r\n\t\"sign_date\": \"2018-09-11T08:55:50.766Z\",\r\n\t\"code\": null,\r\n\t\"version\": {{version_id}},\r\n\t\"single_discount\": 0.95,\r\n\t\"complex_discount\": 0.9,\r\n\t\"customer_maintenance\": {{maintenance_id}},\r\n\t\"expired_date\": \"2019-09-11T08:55:50.000Z\",\r\n\t\"rem\": null\r\n}" }, "url": { "raw": "{{url}}/api/scm/contract/{{contract_id}}/", "host": [ "{{url}}" ], "path": [ "api", "scm", "contract", "{{contract_id}}", "" ] } }, "response": [] } ] }, { "name": "LoginShop", "item": [ { "name": "01_post_shop_login", "event": [ { "listen": "test", "script": { "id": "a3726355-c57b-45a0-9d91-9ccecd8ffed0", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"shoptoken\", jsonData.result.token);", "}" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"phone\": \"18159853333\",\r\n\t\"password\": \"18159853333\",\r\n\t\"region\": \"86\"\r\n}" }, "url": { "raw": "{{imurl}}/user/login/", "host": [ "{{imurl}}" ], "path": [ "user", "login", "" ] } }, "response": [] }, { "name": "02_get_shop_info", "event": [ { "listen": "test", "script": { "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"shop_id\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"shopshop_code\", jsonData.results[0].shop_code);", " postman.setEnvironmentVariable(\"shop_name\", jsonData.results[0].name);", " postman.setEnvironmentVariable(\"shopboss_name\", jsonData.results[0].boss_name);", " postman.setEnvironmentVariable(\"shopboss_mobile\", jsonData.results[0].boss_mobile);", " // postman.setEnvironmentVariable(\"shopboss_email\", jsonData.results[0].boss_email);", " postman.setEnvironmentVariable(\"shop_create_date\", jsonData.results[0].create_date);", "", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/shopadmin/", "host": [ "{{url}}" ], "path": [ "api", "basic", "shopadmin", "" ] } }, "response": [] }, { "name": "03_get_basic_areashort", "event": [ { "listen": "test", "script": { "id": "eb169cf5-a1bd-49be-8d0f-7da7fac87607", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"areashort_id01\", jsonData[0].id);", " ", " postman.setEnvironmentVariable(\"areashort_name01\", jsonData[0].name);", " postman.setEnvironmentVariable(\"areashort_id13\", jsonData[12].id);", " postman.setEnvironmentVariable(\"areashort_name13\", jsonData[12].name);", "}" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "7a6c182b-c29f-4050-b7e3-c6535988ae8d", "exec": [ "Date.prototype.Format = function (fmt) { //author: meizz ", " var o = {", " \"M+\": this.getMonth() + 1, //月份 ", " \"d+\": this.getDate(), //日 ", " \"h+\": this.getHours(), //小时 ", " \"m+\": this.getMinutes(), //分 ", " \"s+\": this.getSeconds(), //秒 ", " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ", " \"S\": this.getMilliseconds() //毫秒 ", " };", " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));", " for (var k in o)", " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));", " return fmt;", "}", "postman.setGlobalVariable(\"ymd-date\", new Date().Format(\"yyyy-MM-dd\"));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/areashort/", "host": [ "{{url}}" ], "path": [ "api", "basic", "areashort", "" ] } }, "response": [] }, { "name": "04_put_shop_info", "event": [ { "listen": "test", "script": { "id": "b023693d-9f73-45f6-b124-492d7a538604", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": {{shop_id}},\r\n \"shop_code\": \"{{shopshop_code}}\",\r\n \"name\": \"{{shop_name}}\",\r\n \"area_name\": \"\",\r\n \"address\": \"软件园二期\",\r\n \"boss_name\": \"{{shopboss_name}}\",\r\n \"boss_mobile\": \"{{shopboss_mobile}}\",\r\n \"boss_email\": \"992099380@qq.com\",\r\n \"contact_name\": \"张宇其\",\r\n \"contace_mobile\": \"18800006666\",\r\n \"telephone\": \"05925128921\",\r\n \"email\": \"18800006666@163.com\",\r\n \"description\": \"全心全意打造专业服务团队,\",\r\n \"style\": \"\",\r\n \"wiff_usr\": \"Linker\",\r\n \"wiff_pwd\":\"Linker\" ,\r\n \"state\": true,\r\n \"create_date\": \"{{shop_create_date}}\",\r\n \"areashort\": {{areashort_id13}},\r\n \"qrcode\": \"https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQHs8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAybUVNa0lHXzFmbGgxQW1WVTFyY0gAAgQW7JBbAwQAjScA\",\r\n \"mainbussiness\":[{{customer_typeid01}},{{customer_typeid04}},{{customer_typeid03}}]\r\n}" }, "url": { "raw": "{{url}}/api/basic/shopadmin/{{shop_id}}/?id={{shop_id}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "shopadmin", "{{shop_id}}", "" ], "query": [ { "key": "id", "value": "{{shop_id}}" } ] } }, "response": [] }, { "name": "05_get_shop_useinfo", "event": [ { "listen": "test", "script": { "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"shopuse_id\", jsonData.id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/oauth2/userinfo/", "host": [ "{{url}}" ], "path": [ "api", "oauth2", "userinfo", "" ] } }, "response": [] }, { "name": "06_get_usermsg", "event": [ { "listen": "test", "script": { "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/usermsg/{{shopuse_id}}/", "host": [ "{{url}}" ], "path": [ "api", "basic", "usermsg", "{{shopuse_id}}", "" ] } }, "response": [] }, { "name": "07_put_changeemloyeemsg", "event": [ { "listen": "test", "script": { "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"portraituri\": \"http://apple.test.linkerplus.com/media/User/file.png\",\r\n\t\"username\": \"{{shopboss_name}}\",\r\n\t\"email\": \"992099480@qq.com\",\r\n\t\"degree\": \"boss\",\r\n\t\"cellphone\": \"{{shopboss_mobile}}\",\r\n\t\"id_card\": null,\r\n\t\"user\": {{shopuse_id}},\r\n\t\"oldpassword\": null,\r\n\t\"passwordOne\": null,\r\n\t\"passwordTwo\": null,\r\n\t\"new_password\": null\r\n}" }, "url": { "raw": "{{url}}/api/basic/changeemloyeemsg/{{shopuse_id}}/", "host": [ "{{url}}" ], "path": [ "api", "basic", "changeemloyeemsg", "{{shopuse_id}}", "" ] } }, "response": [] } ] }, { "name": "shopbasic", "item": [ { "name": "01_get_vipmember_shopgrade", "event": [ { "listen": "test", "script": { "id": "86c174d6-84d6-402a-b0a8-08edc1637fa6", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"grade_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"grade_id02\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"grade_id03\", jsonData.results[2].id);", " postman.setEnvironmentVariable(\"grade_id04\", jsonData.results[3].id);", " postman.setEnvironmentVariable(\"grade_id05\", jsonData.results[4].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmembergradeadmin/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmembergradeadmin", "" ] } }, "response": [] }, { "name": "00_post_vipmemberscorerule", "event": [ { "listen": "test", "script": { "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"rule_attr\":2 ,\r\n\t\"mem_level\": {{grade_id05}},\r\n\t\"score_type\":{{scoretype_id01}},\r\n\t\"amount\": 100,\r\n\t\"ratio\": 5,\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2018-12-19\",\r\n\t\"rem\": null,\r\n\t\"state\": 1,\r\n\t\"src\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscorerule/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscorerule", "" ] } }, "response": [] }, { "name": "02_get_basic_account", "event": [ { "listen": "test", "script": { "id": "d7313943-730e-442b-94f4-1b50f1cbe370", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"account_id01\", jsonData.results[2].id);", " postman.setEnvironmentVariable(\"account_id02\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"account_id03\", jsonData.results[2].id);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/shopaccount/", "host": [ "{{url}}" ], "path": [ "api", "basic", "shopaccount", "" ] } }, "response": [] }, { "name": "03_post_basic_selectclouddept", "event": [ { "listen": "test", "script": { "id": "696f7639-8f76-4783-9f14-16f78ef98eca", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200 || responseCode.code === 400;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);", "// postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);", "// }" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": 2,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D002\",\r\n\t\"name\": \"客服部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 2,\r\n\t\"rght\": 3,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}, {\r\n\t\"id\": 4,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D004\",\r\n\t\"name\": \"美容部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 6,\r\n\t\"rght\": 7,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}, {\r\n\t\"id\": 5,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D005\",\r\n\t\"name\": \"财务部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 8,\r\n\t\"rght\": 9,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}, {\r\n\t\"id\": 7,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D007\",\r\n\t\"name\": \"行政部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 12,\r\n\t\"rght\": 13,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}]" }, "url": { "raw": "{{url}}/api/basic/selectclouddept/", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectclouddept", "" ] } }, "response": [] }, { "name": "04_get_basic_department", "event": [ { "listen": "test", "script": { "id": "696f7639-8f76-4783-9f14-16f78ef98eca", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/department/", "host": [ "{{url}}" ], "path": [ "api", "basic", "department", "" ] } }, "response": [] }, { "name": "05_get_basic_storehouse", "event": [ { "listen": "test", "script": { "id": "454f038b-b454-489f-b37f-4b1f47c22631", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"storehouse_id03\", jsonData.results[3].id);", " postman.setEnvironmentVariable(\"storehouse_id02\", jsonData.results[2].id);", " postman.setEnvironmentVariable(\"storehouse_id01\", jsonData.results[1].id);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/storehouse/", "host": [ "{{url}}" ], "path": [ "api", "basic", "storehouse", "" ] } }, "response": [] }, { "name": "06_get_basic_carcategorystyle", "event": [ { "listen": "test", "script": { "id": "2c69ea9e-8929-452b-86f0-01f0b4627a91", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"carcategory_id01\", jsonData.results[0].id);", " ", " postman.setEnvironmentVariable(\"carcategory_name01\", jsonData.results[0].category_name);", " ", " postman.setEnvironmentVariable(\"carcategory_category01\", jsonData.results[0].category);", " ", " postman.setEnvironmentVariable(\"carcategory_id02\", jsonData.results[1].id);", " ", " postman.setEnvironmentVariable(\"carcategory_name02\", jsonData.results[1].category_name);", " ", " postman.setEnvironmentVariable(\"carcategory_category02\", jsonData.results[1].category);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carcategorystyle/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carcategorystyle", "" ] } }, "response": [] }, { "name": "07_get_basic_selectbeautyservices", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectbeautyservices/", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectbeautyservices", "" ] } }, "response": [] }, { "name": "08_get_basic_beautycategory", "event": [ { "listen": "test", "script": { "id": "3bdeb871-2e30-40cd-a065-bab0ec9ae370", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"beauty_category01\", jsonData[1].id);", " postman.setEnvironmentVariable(\"beauty_category02\", jsonData[2].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautycategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautycategory", "" ] } }, "response": [] }, { "name": "09_get_basic_repairecategory", "event": [ { "listen": "test", "script": { "id": "3de19bca-56c7-4965-9fe2-a0fcf85b1eb1", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repaire_category01\", jsonData[0].id);", " postman.setEnvironmentVariable(\"repaire_name01\", jsonData[0].name);", " postman.setEnvironmentVariable(\"repaire_category02\", jsonData[1].id);", " postman.setEnvironmentVariable(\"repaire_category03\", jsonData[2].id);", " postman.setEnvironmentVariable(\"repaire_category04\", jsonData[3].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/repaircategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repaircategory", "" ] } }, "response": [] }, { "name": "10_get_basic_carproductscategory", "event": [ { "listen": "test", "script": { "id": "379f6aeb-522b-4030-ae67-250ae4f67203", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"carproduct_category01\", jsonData[7].id);", " postman.setEnvironmentVariable(\"product_name01\", jsonData[7].name);", " ", " postman.setEnvironmentVariable(\"carproduct_category02\", jsonData[5].id);", " postman.setEnvironmentVariable(\"product_name02\", jsonData[5].name);", " ", " postman.setEnvironmentVariable(\"carproduct_category03\", jsonData[4].id);", " postman.setEnvironmentVariable(\"product_name03\", jsonData[4].name);", " ", " postman.setEnvironmentVariable(\"carproduct_category04\", jsonData[3].id);", " postman.setEnvironmentVariable(\"product_name04\", jsonData[3].name);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carproductscategory/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carproductscategory", "" ] } }, "response": [] }, { "name": "11_get_staff_adjustmentcategory", "event": [ { "listen": "test", "script": { "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/adjustmentcategory/", "host": [ "{{url}}" ], "path": [ "api", "staff", "adjustmentcategory", "" ] } }, "response": [] }, { "name": "12_post_repairfee", "event": [ { "listen": "test", "script": { "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"repair_service\": {{repaire_category01}},\r\n\t\"category_name\": \"{{repaire_name01}}\",\r\n\t\"type\": 1,\r\n\t\"carlevel\": null,\r\n\t\"carcategoryArray\": [{{carcategory_category02}}],\r\n\t\"carcategory\": {{carcategory_category02}},\r\n\t\"standard_fee\": \"100\",\r\n\t\"note\": null,\r\n\t\"status\": true\r\n}" }, "url": { "raw": "{{url}}/api/basic/repairfee/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairfee", "" ] } }, "response": [] }, { "name": "13_get_repairfee", "event": [ { "listen": "test", "script": { "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/repairfee/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairfee", "" ] } }, "response": [] }, { "name": "14_get_repairparts", "event": [ { "listen": "test", "script": { "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/repairparts/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairparts", "" ] } }, "response": [] }, { "name": "15_get_basic_car", "event": [ { "listen": "test", "script": { "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/car/", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ] } }, "response": [] } ] }, { "name": "employee", "item": [ { "name": "01_post_employee_1", "event": [ { "listen": "test", "script": { "id": "ca25d685-344f-412c-a907-362148038381", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"code\": \"18159859999\",\r\n\t\"user_name\": \"张豪\",\r\n\t\"dept\":{{depart_id03}},\r\n\t\"email\": \"18159859999@163.com\",\r\n\t\"degree\": \"客服人员\",\r\n\t\"cellphone\": \"18159859999\",\r\n\t\"id_card\": \"231351998709098899\",\r\n\t\"description\": null,\r\n\t\"is_staff\": 1,\r\n\t\"dimission_date\": null,\r\n\t\"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/basic/employee/", "host": [ "{{url}}" ], "path": [ "api", "basic", "employee", "" ] } }, "response": [] }, { "name": "02_post_employee_2", "event": [ { "listen": "test", "script": { "id": "ca25d685-344f-412c-a907-362148038381", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"code\": \"18159854444\",\r\n\t\"user_name\": \"张明月\",\r\n\t\"dept\":{{depart_id03}},\r\n\t\"email\": \"18159854444@163.com\",\r\n\t\"degree\": \"客服人员\",\r\n\t\"cellphone\": \"18159854444\",\r\n\t\"id_card\": \"231351998709091199\",\r\n\t\"description\": null,\r\n\t\"is_staff\": 1,\r\n\t\"dimission_date\": null,\r\n\t\"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/basic/employee/", "host": [ "{{url}}" ], "path": [ "api", "basic", "employee", "" ] } }, "response": [] }, { "name": "03_get_basic_employee", "event": [ { "listen": "test", "script": { "id": "e4da3d3d-627a-45af-b851-30ac3929d9c9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", " postman.setEnvironmentVariable(\"agent_name01\", jsonData.results[0].user_name);", " // postman.setEnvironmentVariable(\"agent_dept01\", jsonData.results[0].dept);", " postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", " postman.setEnvironmentVariable(\"agent_name02\", jsonData.results[1].user_name);", " ", " postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "//postman.setEnvironmentVariable(\"agent01_all\", JSON.stringify(jsonData.results[0]));", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/employee/", "host": [ "{{url}}" ], "path": [ "api", "basic", "employee", "" ] } }, "response": [] }, { "name": "04_put_employee _1", "event": [ { "listen": "test", "script": { "id": "ca25d685-344f-412c-a907-362148038381", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"user\": {{agent_id01}},\r\n \"user_name\": \"黄灿灿\",\r\n \"cellphone\": \"18159854444\",\r\n \"email\": \"18159854444@163.com\",\r\n \"is_staff\": 1,\r\n \"code\": \"18159854444\",\r\n \"degree\": \"客服人员\",\r\n \"id_card\": \"231351998709091199\",\r\n\t\"id_address\": null,\r\n\t\"birthday\": null,\r\n\t\"contact_address\": null,\r\n\t\"dimission_date\": null,\r\n\t\"description\": null,\r\n\t\"shop\": {{shop_id}},\r\n\t\"dept\": {{depart_id01}},\r\n\t\"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/basic/employee/{{agent_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "basic", "employee", "{{agent_id01}}", "" ] } }, "response": [] }, { "name": "05_put_employee _2", "event": [ { "listen": "test", "script": { "id": "ca25d685-344f-412c-a907-362148038381", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"user\": {{agent_id02}},\r\n \"user_name\": \"张明月\",\r\n \"cellphone\": \"18159859999\",\r\n \"email\": \"18159859999@163.com\",\r\n \"is_staff\": \"True\",\r\n \"code\": \"18159859999\",\r\n \"degree\": \"客服人员\",\r\n \"id_card\": \"231351998709098899\",\r\n \"id_address\": null,\r\n \"birthday\": null,\r\n \"contact_address\": null,\r\n \"dimission_date\": null,\r\n \"description\": null,\r\n \"shop\": {{shop_id}},\r\n \"dept\": {{depart_id03}},\r\n \"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n\t}" }, "url": { "raw": "{{url}}/api/basic/employee/{{agent_id02}}/", "host": [ "{{url}}" ], "path": [ "api", "basic", "employee", "{{agent_id02}}", "" ] } }, "response": [] }, { "name": "06_get_staff_selectdept", "event": [ { "listen": "test", "script": { "id": "fa228d65-a91a-40a9-91c6-38e4c7ba2739", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"depart_id01\", jsonData[1].id);", " postman.setEnvironmentVariable(\"depart_id03\", jsonData[3].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectdept/", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectdept", "" ] } }, "response": [] }, { "name": "07_get_basic_department_id", "event": [ { "listen": "test", "script": { "id": "518b80e8-9cda-4885-b850-be65f6d66df9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);", "// postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/department/{{depart_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "basic", "department", "{{depart_id01}}", "" ] } }, "response": [] }, { "name": "08_post_staff_monthrestdays", "event": [ { "listen": "test", "script": { "id": "69e5e9c3-42ec-4aca-83cc-e48028dead74", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": null,\r\n \"rule_attribute\": 1,\r\n \"dept\": {{depart_id01}},\r\n \"employee\":{{agent_id01}},\r\n \"locate_month\": [\"2018-12-01\"],\r\n \"rest_days\": 8,\r\n \"rem\": null\r\n}" }, "url": { "raw": "{{url}}/api/staff/monthrestdays/", "host": [ "{{url}}" ], "path": [ "api", "staff", "monthrestdays", "" ] } }, "response": [] }, { "name": "09_get_staff_monthrestdays", "event": [ { "listen": "test", "script": { "id": "e53133b7-79eb-42e3-84d3-806388f694b4", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/monthrestdays/", "host": [ "{{url}}" ], "path": [ "api", "staff", "monthrestdays", "" ] } }, "response": [] }, { "name": "10_get_staff_commissionrulesetting", "event": [ { "listen": "test", "script": { "id": "936684f5-0b5a-4a54-bb50-9da417e604e2", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/commissionrulesetting/", "host": [ "{{url}}" ], "path": [ "api", "staff", "commissionrulesetting", "" ] } }, "response": [] }, { "name": "11_post_staff_salarysetting", "event": [ { "listen": "prerequest", "script": { "id": "f560cc5b-9017-4d96-8e75-f277ea080fb3", "exec": [ "// var ymd_date = postman.getEnvironmentVariable(\"ymd-date\");", "Date.prototype.Format = function (fmt) { //author: meizz ", " var o = {", " \"M+\": this.getMonth() + 1, //月份 ", " \"d+\": this.getDate(), //日 ", " \"h+\": this.getHours(), //小时 ", " \"m+\": this.getMinutes(), //分 ", " \"s+\": this.getSeconds(), //秒 ", " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ", " \"S\": this.getMilliseconds() //毫秒 ", " };", " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));", " for (var k in o)", " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));", " return fmt;", "}", "", "var agent_id01 = postman.getEnvironmentVariable(\"agent_id01\");", "var data= {", "\t\"date\": new Date().Format(\"yyyy-MM-dd\"),", "\t\"code\": null,", "\t\"employee\":agent_id01 ,", "\t\"post_salary\": \"4000\",", "\t\"skill_salary\": \"200\",", "\t\"seniority_salary\": \"100\",", "\t\"stay_subsidy\": \"100\",", "\t\"meal_subsidy\": \"100\",", "\t\"other_subsidy\": \"200\",", "\t\"total_payroll\": 0,", "\t\"description\": null,", "\t\"agent\": 12", "}", " data.total_payroll = parseFloat(data.post_salary) + parseFloat(data.skill_salary) +parseFloat( data.seniority_salary) + parseFloat(data.stay_subsidy) + parseFloat(data.meal_subsidy)+ parseFloat(data.other_subsidy);", " postman.setEnvironmentVariable(\"salary_setting\",JSON.stringify(data));" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "dcc857df-e1cd-499b-9f51-94fe36fd2da4", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "// tests[\"Status code is 200\"] = responseCode.code === 200;", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "", "value": "" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{{salary_setting}}" }, "url": { "raw": "{{url}}/api/staff/salarysetting/", "host": [ "{{url}}" ], "path": [ "api", "staff", "salarysetting", "" ] } }, "response": [] }, { "name": "12_get_staff_salarysetting", "event": [ { "listen": "test", "script": { "id": "9e63f139-de93-44a9-b8f4-a3f1ee812ddd", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/salarysetting/", "host": [ "{{url}}" ], "path": [ "api", "staff", "salarysetting", "" ] } }, "response": [] }, { "name": "13_post_staff_payrolladjustment", "event": [ { "listen": "test", "script": { "id": "21b13e24-c640-4a9d-bacf-2c2cc641312b", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"date\":\"{{ymd-date}}\",\r\n\t\"code\":null,\r\n\t\"employee\":{{agent_id01}},\r\n\t\"action\":0,\r\n\t\"adjustment_category\":{{adjusttype_id01}},\r\n\t\"wage_adjustment\": \"100\",\r\n\t\"agent\": {{agent_id02}},\r\n\t\"description\": null\r\n}" }, "url": { "raw": "{{url}}/api/staff/payrolladjustment/", "host": [ "{{url}}" ], "path": [ "api", "staff", "payrolladjustment", "" ] } }, "response": [ { "name": "post_staff_payrolladjustment", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"date\": \"{{ymd-date}}\",\r\n\t\"code\": null,\r\n\t\"employee\": {{agent_id01}},\r\n\t\"action\": 0,\r\n\t\"adjustment_category\": {{adjusttype_id01}},\r\n\t\"wage_adjustment\": \"100\",\r\n\t\"agent\": {{agent_id02}},\r\n\t\"description\": null\r\n}" }, "url": { "raw": "{{url}}/api/staff/payrolladjustment/?year=2018&month=10", "host": [ "{{url}}" ], "path": [ "api", "staff", "payrolladjustment", "" ], "query": [ { "key": "year", "value": "2018" }, { "key": "month", "value": "10" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.13.1" }, { "key": "Date", "value": "Wed, 17 Oct 2018 10:03:27 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Content-Length", "value": "144" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept, Authorization, Cookie" }, { "key": "Allow", "value": "GET, POST, HEAD, OPTIONS" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN" } ], "cookie": [], "body": "{\n \"date\": \"2018-10-17\",\n \"code\": null,\n \"employee\": 481548,\n \"action\": 0,\n \"adjustment_category\": 2,\n \"wage_adjustment\": \"100\",\n \"agent\": 481546,\n \"description\": null\n}" } ] }, { "name": "14_get_staff_payrolladjustment", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/payrolladjustment/?year=2018&month=10", "host": [ "{{url}}" ], "path": [ "api", "staff", "payrolladjustment", "" ], "query": [ { "key": "year", "value": "2018" }, { "key": "month", "value": "10" } ] } }, "response": [] }, { "name": "15_post_staff_attendanceabnormal", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"abnormal_date\": \"{{ymd-date}}\",\r\n\t\"code\": null,\r\n\t\"employee\": {{agent_id01}},\r\n\t\"abnormal_genre\": 1,\r\n\t\"abnormal_value\": \"30分钟\",\r\n\t\"deduct_money\": \"30\",\r\n\t\"agent\": {{agent_id03}},\r\n\t\"description\": null\r\n}" }, "url": { "raw": "{{url}}/api/staff/attendanceabnormal/?year=2018&month=10", "host": [ "{{url}}" ], "path": [ "api", "staff", "attendanceabnormal", "" ], "query": [ { "key": "year", "value": "2018" }, { "key": "month", "value": "10" } ] } }, "response": [] }, { "name": "16_get_staff_attendanceabnormal", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/attendanceabnormal/?year=2018&month=10", "host": [ "{{url}}" ], "path": [ "api", "staff", "attendanceabnormal", "" ], "query": [ { "key": "year", "value": "2018" }, { "key": "month", "value": "10" } ] } }, "response": [] }, { "name": "17_get_staff_stafffurloughsituation", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/stafffurloughsituation/?date=2018-10-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "stafffurloughsituation", "" ], "query": [ { "key": "date", "value": "2018-10-01" } ] } }, "response": [] }, { "name": "18_get_staff_calendardata", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/calendardata/?date=2018-10-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "calendardata", "" ], "query": [ { "key": "date", "value": "2018-10-01" } ] } }, "response": [] }, { "name": "19_post_staff_stafffurlough", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"employee\": {{agent_id02}},\r\n\t\"start_date\": \"2018-10-14\",\r\n\t\"start_timeslot\": 0,\r\n\t\"end_date\": \"2018-10-15\",\r\n\t\"end_timeslot\": 0,\r\n\t\"days\": 2,\r\n\t\"rem\": \"请假两天\"\r\n}" }, "url": { "raw": "{{url}}/api/staff/stafffurlough/", "host": [ "{{url}}" ], "path": [ "api", "staff", "stafffurlough", "" ] } }, "response": [] }, { "name": "20_get_staff_stafffurlough", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/stafffurlough/", "host": [ "{{url}}" ], "path": [ "api", "staff", "stafffurlough", "" ] } }, "response": [] }, { "name": "21_get_staff_getfurloughdetail", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);", "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);", "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", "", "// }", "", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/getfurloughdetail/?date=2018-10-14", "host": [ "{{url}}" ], "path": [ "api", "staff", "getfurloughdetail", "" ], "query": [ { "key": "date", "value": "2018-10-14" } ] } }, "response": [] } ] }, { "name": "supplier", "item": [ { "name": "01_post_basic_supplier", "event": [ { "listen": "test", "script": { "id": "e3621b27-697a-4df1-8913-8619d6d1eabb", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"name\": \"车猪猪车配供应商\",\r\n\t\"abbreviation\": \"车猪猪车配\",\r\n\t\"supplier_code\": \"3839\",\r\n\t\"customer_type\": {{customer_typeid02}},\r\n\t\"credit_code\": \"CZ001\",\r\n\t\"style\": 1,\r\n\t\"settlement_day\": 15,\r\n\t\"pic\": \"石悦\",\r\n\t\"pic_telephone\": \"18159857890\",\r\n\t\"contacts\": \"石新\",\r\n\t\"contacts_telephone\": \"18159850987\",\r\n\t\"unit_area\": \"思明区\",\r\n\t\"address\": \"厦门软件园二期望海路\",\r\n\t\"note\": null,\r\n\t\"scope_item_ids\":[{{customer_typeid01}}, {{customer_typeid03}},{{customer_typeid04}}],\r\n\t\"customer\": null\r\n\t\r\n}" }, "url": { "raw": "{{url}}/api/basic/supplier/", "host": [ "{{url}}" ], "path": [ "api", "basic", "supplier", "" ] } }, "response": [] }, { "name": "02_get_basic_supplier", "event": [ { "listen": "test", "script": { "id": "178fce42-3fa6-47eb-8c46-56236823697c", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"supplier_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"supplier_name01\", jsonData.results[0].name);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/supplier/", "host": [ "{{url}}" ], "path": [ "api", "basic", "supplier", "" ] } }, "response": [] } ] }, { "name": "choose material", "item": [ { "name": "01_get_basic_selectcloudcarproduct_category01", "event": [ { "listen": "test", "script": { "id": "d744385c-3b54-4dae-ba55-b0d6bb45ec3f", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"carproduct_item01\", jsonData[0].id);", " postman.setEnvironmentVariable(\"carproduct_name01\", jsonData[0].name);", " ", " postman.setEnvironmentVariable(\"carproduct_item02\", jsonData[1].id);", " postman.setEnvironmentVariable(\"carproduct_name02\", jsonData[1].name);", " ", " postman.setEnvironmentVariable(\"carproduct_item03\", jsonData[2].id);", " postman.setEnvironmentVariable(\"carproduct_name03\", jsonData[2].name);", " ", " postman.setEnvironmentVariable(\"carproduct_item04\", jsonData[3].id);", " postman.setEnvironmentVariable(\"carproduct_name04\", jsonData[3].name);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudcarproduct", "" ], "query": [ { "key": "category", "value": "{{carproduct_category01}}" } ] } }, "response": [] }, { "name": "02_get_basic_selectcloudcarproduct_category02", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"carproduct_item05\", jsonData[0].id);", " postman.setEnvironmentVariable(\"carproduct_name05\", jsonData[0].name);", " postman.setEnvironmentVariable(\"carproduct_brands05\", jsonData[0].brands_name);", " ", " postman.setEnvironmentVariable(\"carproduct_item06\", jsonData[1].id);", " postman.setEnvironmentVariable(\"carproduct_name06\", jsonData[1].name);", " postman.setEnvironmentVariable(\"carproduct_brands06\", jsonData[1].brands_name);", " ", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category02}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudcarproduct", "" ], "query": [ { "key": "category", "value": "{{carproduct_category02}}" } ] } }, "response": [] }, { "name": "03_get_basic_selectcloudcarproduct_category03", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"carproduct_item07\", jsonData[0].id);", " postman.setEnvironmentVariable(\"carproduct_name07\", jsonData[0].name);", " postman.setEnvironmentVariable(\"carproduct_brands07\", jsonData[0].brands_name);", " ", " postman.setEnvironmentVariable(\"carproduct_item08\", jsonData[1].id);", " postman.setEnvironmentVariable(\"carproduct_name08\", jsonData[1].name);", " postman.setEnvironmentVariable(\"carproduct_brands08\", jsonData[1].brands_name);", " ", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category03}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudcarproduct", "" ], "query": [ { "key": "category", "value": "{{carproduct_category03}}" } ] } }, "response": [] }, { "name": "04_get_basic_selectcloudcarproduct_category04", "event": [ { "listen": "test", "script": { "id": "d0a57979-a1f5-406e-b959-8bc98c11d3a5", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"carproduct_item09\", jsonData[0].id);", " postman.setEnvironmentVariable(\"carproduct_name09\", jsonData[0].name);", " //postman.setEnvironmentVariable(\"carproduct_brands09\", jsonData[0].brands_name);", " ", " postman.setEnvironmentVariable(\"carproduct_item10\", jsonData[1].id);", " postman.setEnvironmentVariable(\"carproduct_name10\", jsonData[1].name);", " // postman.setEnvironmentVariable(\"carproduct_brands10\", jsonData[1].brands_name);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category04}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudcarproduct", "" ], "query": [ { "key": "category", "value": "{{carproduct_category04}}" } ] } }, "response": [] }, { "name": "05_post_basic_carproductex", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\n\t\"items\":[{{carproduct_item01}},{{carproduct_item02}},{{carproduct_item03}},{{carproduct_item04}},{{carproduct_item05}},{{carproduct_item06}},{{carproduct_item07}},{{carproduct_item08}},{{carproduct_item09}},{{carproduct_item10}}]\n\t\n}" }, "url": { "raw": "{{url}}/api/basic/carproductex/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carproductex", "" ] } }, "response": [] }, { "name": "06_get_basic_carproducts", "event": [ { "listen": "prerequest", "script": { "id": "0f8fc882-6405-492a-b7d9-8af08b88c6cf", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "363d4ef3-f4d5-44e2-a421-b89b1ac914c0", "exec": [ "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " ", " postman.setEnvironmentVariable(\"car_products_id02\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"car_products_price02\", jsonData.results[1].price);", " postman.setEnvironmentVariable(\"car_products_name02\", jsonData.results[1].name);", " postman.setEnvironmentVariable(\"car_products_category02\", jsonData.results[1].category);", " ", " postman.setEnvironmentVariable(\"car_products_id03\", jsonData.results[2].id);", " postman.setEnvironmentVariable(\"car_products_price03\", jsonData.results[2].price);", " postman.setEnvironmentVariable(\"car_products_name03\", jsonData.results[2].name);", " postman.setEnvironmentVariable(\"car_products_category03\", jsonData.results[2].category);", " ", " postman.setEnvironmentVariable(\"car_products_id04\", jsonData.results[3].id);", " postman.setEnvironmentVariable(\"car_products_price04\", jsonData.results[3].price);", " postman.setEnvironmentVariable(\"car_products_id05\", jsonData.results[4].id);", " ", " // postman.setEnvironmentVariable(\"product01\", JSON.stringify(jsonData.results[1]));", " // postman.setEnvironmentVariable(\"product02\", JSON.stringify(jsonData.results[2]));", " // postman.setEnvironmentVariable(\"product03\", JSON.stringify(jsonData.results[3]));", " // postman.setEnvironmentVariable(\"product04\", JSON.stringify(jsonData.results[4]));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/carproducts/", "host": [ "{{url}}" ], "path": [ "api", "basic", "carproducts", "" ] } }, "response": [] }, { "name": "07_get_basic_selectcloudbeauty_category01", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"beauty_item01\", jsonData[0].id);", " postman.setEnvironmentVariable(\"beauty_name01\", jsonData[0].name);", " postman.setEnvironmentVariable(\"beauty_price01\", jsonData[0].price);", " ", " postman.setEnvironmentVariable(\"beauty_item02\", jsonData[1].id);", " postman.setEnvironmentVariable(\"beauty_name02\", jsonData[1].name);", " postman.setEnvironmentVariable(\"beauty_price02\", jsonData[1].price);", " ", " postman.setEnvironmentVariable(\"beauty_item03\", jsonData[2].id);", " postman.setEnvironmentVariable(\"beauty_name03\", jsonData[2].name);", " postman.setEnvironmentVariable(\"beauty_price03\", jsonData[2].price);", " ", " postman.setEnvironmentVariable(\"beauty_item04\", jsonData[3].id);", " postman.setEnvironmentVariable(\"beauty_name04\", jsonData[3].name);", " postman.setEnvironmentVariable(\"beauty_price04\", jsonData[3].price);", " ", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudbeautyservice/?category={{beauty_category01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudbeautyservice", "" ], "query": [ { "key": "category", "value": "{{beauty_category01}}" } ] } }, "response": [] }, { "name": "08_get_basic_selectcloudbeauty_category02", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"beauty_item05\", jsonData[0].id);", " postman.setEnvironmentVariable(\"beauty_name05\", jsonData[0].name);", " postman.setEnvironmentVariable(\"beauty_price05\", jsonData[0].price);", " ", " postman.setEnvironmentVariable(\"beauty_item06\", jsonData[1].id);", " postman.setEnvironmentVariable(\"beauty_name6\", jsonData[1].name);", " postman.setEnvironmentVariable(\"beauty_price06\", jsonData[1].price);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudbeautyservice/?category={{beauty_category02}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudbeautyservice", "" ], "query": [ { "key": "category", "value": "{{beauty_category02}}" } ] } }, "response": [] }, { "name": "09_post_basic_beautyservicesex", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\n\t\"items\":[{{beauty_item01}},{{beauty_item02}},{{beauty_item03}},{{beauty_item04}},{{beauty_item05}},{{beauty_item06}}]\n\t\n}" }, "url": { "raw": "{{url}}/api/basic/beautyservicesex/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautyservicesex", "" ] } }, "response": [] }, { "name": "10_get_basic_beautyservices", "event": [ { "listen": "test", "script": { "id": "a37dbaae-6a15-4421-8b9b-4a2eb8d90d01", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"beauty_services_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"beauty_services_price01\", jsonData.results[0].price);", " postman.setEnvironmentVariable(\"beauty_services_name01\", jsonData.results[0].name);", " //postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);", " postman.setEnvironmentVariable(\"beauty_services_id02\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"beauty_services_price02\", jsonData.results[1].price);", " postman.setEnvironmentVariable(\"beauty_services_name02\", jsonData.results[1].name);", " postman.setEnvironmentVariable(\"beauty_services_categoryname02\", jsonData.results[1].category_name);", " postman.setEnvironmentVariable(\"beauty_services_category02\", jsonData.results[1].category);", " ", " postman.setEnvironmentVariable(\"beauty_services_id03\", jsonData.results[2].id);", " postman.setEnvironmentVariable(\"beauty_services_name03\", jsonData.results[2].name);", " postman.setEnvironmentVariable(\"beauty_services_price03\", jsonData.results[2].price);", " // postman.setEnvironmentVariable(\"beauty_services_category03\", jsonData.results[1].category_name);", " postman.setEnvironmentVariable(\"beauty_services_category03\", jsonData.results[2].category);", " ", " // postman.setEnvironmentVariable(\"beauty_all\", JSON.stringify(jsonData.results[0]));", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautyservices/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautyservices", "" ] } }, "response": [] }, { "name": "11_get_basic_selectcloudrepairservice_category01", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_item01\", jsonData[0].id);", " postman.setEnvironmentVariable(\"repair_item02\", jsonData[1].id);", " postman.setEnvironmentVariable(\"repair_item03\", jsonData[2].id);", " postman.setEnvironmentVariable(\"repair_item04\", jsonData[3].id);", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudrepairservice", "" ], "query": [ { "key": "category", "value": "{{repaire_category01}}" } ] } }, "response": [] }, { "name": "12_get_basic_selectcloudrepairservice_category02", "event": [ { "listen": "test", "script": { "id": "94ff349c-30c3-4dc5-b079-7f9092c6a64c", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_item05\", jsonData[0].id);", " postman.setEnvironmentVariable(\"repair_item06\", jsonData[1].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category02}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudrepairservice", "" ], "query": [ { "key": "category", "value": "{{repaire_category02}}" } ] } }, "response": [] }, { "name": "13_get_basic_selectcloudrepairservice_category03", "event": [ { "listen": "test", "script": { "id": "bd8e8ad5-f0a0-47a8-ab89-087b27bcc470", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_item07\", jsonData[0].id);", " postman.setEnvironmentVariable(\"repair_item08\", jsonData[1].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category03}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudrepairservice", "" ], "query": [ { "key": "category", "value": "{{repaire_category03}}" } ] } }, "response": [] }, { "name": "14_get_basic_selectcloudrepairservice_category04", "event": [ { "listen": "test", "script": { "id": "cb9f5e0e-4acc-4a2b-97c8-87539a579827", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_item09\", jsonData[0].id);", " postman.setEnvironmentVariable(\"repair_item10\", jsonData[1].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category04}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "selectcloudrepairservice", "" ], "query": [ { "key": "category", "value": "{{repaire_category04}}" } ] } }, "response": [] }, { "name": "15_post_basic_repairserviceex", "event": [ { "listen": "test", "script": { "id": "71aceefd-a128-409f-b24a-09157a94e4d7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"items\":[{{repair_item01}},{{repair_item02}},{{repair_item03}},{{repair_item04}},{{repair_item05}},{{repair_item06}},{{repair_item07}},{{repair_item08}},{{repair_item09}},{{repair_item10}}]\n}" }, "url": { "raw": "{{url}}/api/basic/repairserviceex/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairserviceex", "" ] } }, "response": [] }, { "name": "15_post_basic_repairservice", "event": [ { "listen": "test", "script": { "id": "b7e46417-aa71-442c-80b3-027708c55eee", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"name\": \"高能车座椅\",\r\n\t\"category\": {{repaire_category01}},\r\n\t\"standard_fee\": \"150\",\r\n\t\"note\": null\r\n}" }, "url": { "raw": "{{url}}/api/basic/repairservice/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairservice", "" ] } }, "response": [] }, { "name": "16_get_basic_repairservice", "event": [ { "listen": "test", "script": { "id": "8821b6f6-b545-4d5c-b067-96576f7c32d8", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_service_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"repair_service_name01\", jsonData.results[0].name);", " postman.setEnvironmentVariable(\"repair_service_price01\", jsonData.results[0].standard_fee);", " postman.setEnvironmentVariable(\"repair_service_category01\", jsonData.results[0].category);", " ", " postman.setEnvironmentVariable(\"repair_service_id02\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"repair_service_name02\", jsonData.results[1].name);", " postman.setEnvironmentVariable(\"repair_service_price02\", jsonData.results[1].standard_fee);", " postman.setEnvironmentVariable(\"repair_service_category02\", jsonData.results[1].category);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/repairservice/", "host": [ "{{url}}" ], "path": [ "api", "basic", "repairservice", "" ] } }, "response": [] }, { "name": "17_post_package_chose", "event": [ { "listen": "test", "script": { "id": "b3f44f21-a526-41bb-8fe5-90efbfe799c7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"items\":[{{packagecloud_id01}},{{packagecloud_id02}}]\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrechargepackageex/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrechargepackageex", "" ] } }, "response": [] }, { "name": "18_get_packages", "event": [ { "listen": "test", "script": { "id": "51ea7b8a-1e5b-48f3-b297-4223f9845cf2", "exec": [ "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " ", " ", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"package_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"package_amout01\", jsonData.results[0].amount_package);", " postman.setEnvironmentVariable(\"package_realpay01\", jsonData.results[0].real_payment);", " postman.setEnvironmentVariable(\"package_validity01\", jsonData.results[0].validity_period);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrechargepackage/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrechargepackage", "" ] } }, "response": [] }, { "name": "19_post_basic_beautypackages", "event": [ { "listen": "test", "script": { "id": "d49b365a-fab4-408d-9e46-ad7a48f301dd", "exec": [ "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"name\": \"尊享美容套餐\",\r\n\t\"price\": \"599\",\r\n\t\"deadline\": \"6\",\r\n\t\"available\": true,\r\n\t\"release_date\": \"2018-09-18\",\r\n\t\"service_details\": [{\r\n\t\t\"amount\": 2,\r\n\t\t\"beauty_services_id\": {{beauty_item01}},\r\n\t\t\"name\": \"{{beauty_name01}}\",\r\n\t\t\"price\": \"{{beauty_price01}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 2,\r\n\t\t\"beauty_services_id\":{{beauty_item02}} ,\r\n\t\t\"name\": \"{{beauty_name02}}\",\r\n\t\t\"price\": \"{{beauty_price02}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 1,\r\n\t\t\"beauty_services_id\": {{beauty_item03}},\r\n\t\t\"name\": \"{{beauty_name03}}\",\r\n\t\t\"price\": \"{{beauty_price03}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 1,\r\n\t\t\"beauty_services_id\": {{beauty_item05}},\r\n\t\t\"name\": \"{{beauty_name05}}\",\r\n\t\t\"price\": \"{{beauty_price05}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 1,\r\n\t\t\"beauty_services_id\": {{beauty_item04}},\r\n\t\t\"name\": \"{{beauty_name04}}\",\r\n\t\t\"price\": \"{{beauty_price04}}\",\r\n\t\t\"unit\": 0\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/basic/beautypackages/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautypackages", "" ] } }, "response": [] }, { "name": "20_get_basic_beautypackages", "event": [ { "listen": "test", "script": { "id": "51ea7b8a-1e5b-48f3-b297-4223f9845cf2", "exec": [ "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " ", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"beautypackage_id01\", JSON.stringify(jsonData.results[0].service_details));", " postman.setEnvironmentVariable(\"bp_id01\",jsonData.results[0].id);", " postman.setEnvironmentVariable(\"bp_name01\",jsonData.results[0].name);", " postman.setEnvironmentVariable(\"bp_price01\",jsonData.results[0].price);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautypackages/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautypackages", "" ] } }, "response": [] } ] }, { "name": "stock", "item": [ { "name": "01_post_invoicing_inventorycheck", "event": [ { "listen": "test", "script": { "id": "0f22c8e9-ce59-4ee9-98f8-aa596ecd8ca9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": {{carproduct_item01}},\r\n\t\"name\": \"{{carproduct_name01}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\":{{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\":\t0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item02}},\r\n\t\"name\": \"{{carproduct_name02}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n \"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item03}},\r\n\t\"name\": \"{{carproduct_name03}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n \"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item04}},\r\n\t\"name\": \"{{carproduct_name04}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item05}},\r\n\t\"name\": \"{{carproduct_name01}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category02}},\r\n\t\"category__name\": \"{{product_name02}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item06}},\r\n\t\"name\": \"{{carproduct_name06}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category02}},\r\n\t\"category__name\": \"{{product_name02}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item07}},\r\n\t\"name\": \"{{carproduct_name07}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category03}},\r\n\t\"category__name\": \"{{product_name03}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item08}},\r\n\t\"name\": \"{{carproduct_name08}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_item03}},\r\n\t\"category__name\": \"{{product_name03}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\":5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\":{{carproduct_item09}},\r\n\t\"name\": \"{{carproduct_name09}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_item04}},\r\n\t\"category__name\": \"{{product_name04}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item10}},\r\n\t\"name\": \"{{carproduct_name10}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_item04}},\r\n\t\"category__name\": \"{{product_name04}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}]" }, "url": { "raw": "{{url}}/api/invoicing/inventorycheck/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorycheck", "" ] } }, "response": [] }, { "name": "02_get_invoicing_inventorycheck", "event": [ { "listen": "test", "script": { "id": "0f22c8e9-ce59-4ee9-98f8-aa596ecd8ca9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json", "disabled": true }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorycheck/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorycheck", "" ] } }, "response": [] } ] }, { "name": "vipmember", "item": [ { "name": "01_post_vipmember_vipmemberinfoadmin", "event": [ { "listen": "test", "script": { "id": "80757c3e-0f8f-4df1-9b56-7dc38ecd3cd7", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;", "", "//\"grade\":{{grade_id01}}," ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"id\": null,\r\n\t\"register_date\": \"{{ymd-date}}\",\r\n\t\"name\": \"董晓月\",\r\n\t\"phone_number\": \"18159852222\",\r\n\t\"grade\":{{grade_id01}},\r\n\t\"sex\": 0,\r\n\t\"birthday\": \"1992-01-01\",\r\n\t\"email\": null,\r\n\t\"address\": null,\r\n\t\"wechat\": null,\r\n\t\"alipay\": null,\r\n\t\"interest\":[{{interest_id02}},{{interest_id03}}],\r\n\t\"agent\":{{agent_id01}},\r\n\t\"rem\": null,\r\n\t\"number\": null,\r\n\t\"car\": [{\r\n\t\t\"id\": null,\r\n\t\t\"code\": \"B908908\",\r\n\t\t\"areashort\": {\r\n\t\t\t\"id\": {{areashort_id01}},\r\n\t\t\t\"name\": \"{{areashort_name01}}\"\r\n\t\t},\r\n\t\t\"carcategory\": [{{carcategory_category01}}],\r\n\t\t\"engine_no\":\"yic9\",\r\n\t\t\"carbody_no\": \"cj9088\",\r\n\t\t\"on_date\": \"2010-10-10\",\r\n\t\t\"body_color\": \"白色\",\r\n\t\t\"description\": null,\r\n\t\t\"carcategory_name\": \"{{carcategory_name01}}\"\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ] } }, "response": [] }, { "name": "02_get_vipmember_vipmemberinfoadmin_all", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"vip_id01\", jsonData.results[0].id);", " ", "// postman.setEnvironmentVariable(\"vip_name01\", jsonData.results[0].name);", " ", "// postman.setEnvironmentVariable(\"vip_phone01\", jsonData.results[0].phone_number);", "// postman.setEnvironmentVariable(\"car_code01\", jsonData.results[0].car[0].code);", " ", "// postman.setEnvironmentVariable(\"car_id01\", jsonData.results[0].car[0].id);", "// postman.setEnvironmentVariable(\"areashortid01\", jsonData.results[0].car[0].areashort);", "// postman.setEnvironmentVariable(\"vip_grade01\", jsonData.results[0].grade);", " ", "// postman.setEnvironmentVariable(\"vip_info01\", JSON.stringify(jsonData.results[0]));", " ", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ] } }, "response": [] }, { "name": "03_get_vipmember_vipmemberinfoadmin _phone", "event": [ { "listen": "test", "script": { "id": "11c7f590-66d7-4fcf-ae57-fbb08cdacbf9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"vip_id01\", jsonData.results[0].id);", " ", " postman.setEnvironmentVariable(\"vip_name01\", jsonData.results[0].name);", " ", " postman.setEnvironmentVariable(\"vip_phone01\", jsonData.results[0].phone_number);", " postman.setEnvironmentVariable(\"car_code01\", jsonData.results[0].car[0].code);", " ", " postman.setEnvironmentVariable(\"car_id01\", jsonData.results[0].car[0].id);", " postman.setEnvironmentVariable(\"areashortid01\", jsonData.results[0].car[0].areashort);", " postman.setEnvironmentVariable(\"vip_grade01\", jsonData.results[0].grade);", " ", " postman.setEnvironmentVariable(\"vip_info01\", JSON.stringify(jsonData.results[0]));", " postman.setEnvironmentVariable(\"vip_carname01\", jsonData.results[0].car.carcategory_name);", " ", " ", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?cellphone=18159852222", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "cellphone", "value": "18159852222" } ] } }, "response": [] }, { "name": "04_get_vipmember_vipmemberinfoadmin _carcode", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?car_code={{car_code01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "car_code", "value": "{{car_code01}}" } ] } }, "response": [] }, { "name": "05_get_vipmember_vipmemberinfoadmin _startdate", "event": [ { "listen": "test", "script": { "id": "ace01dfe-b7c9-4feb-9a0d-54aa4a68dd22", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?start_date=2018-09-29", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "start_date", "value": "2018-09-29" } ] } }, "response": [] } ] }, { "name": "serviceprice", "item": [ { "name": "01_post_vipmemberworkprice_1", "event": [ { "listen": "test", "script": { "id": "4deb0a17-5f67-4c23-bc5c-c16b10a551c0", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"grade\":{{grade_id01}},\r\n\t\"service_category\": 1,\r\n\t\"service_project\":{{beauty_services_id03}},\r\n\t\"rate\": \"99\",\r\n\t\"rem\": \"\",\r\n\t\"state\": true,\r\n\t\"page\": 1,\r\n\t\"page_size\": 10,\r\n\t\"total\": 10,\r\n\t\"name\": \"{{beauty_services_name03}}\",\r\n\t\"car_products_category\": null,\r\n\t\"category\": {{beauty_services_category03}},\r\n\t\"work_project\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberworkprice/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberworkprice", "" ] } }, "response": [] }, { "name": "02_post_vipmemberworkprice_2", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"grade\": {{grade_id01}},\r\n\t\"service_category\": 2,\r\n\t\"service_project\": {{repair_service_id02}},\r\n\t\"rate\": \"98\",\r\n\t\"rem\": \"\",\r\n\t\"state\": true,\r\n\t\"page\": 1,\r\n\t\"page_size\": 10,\r\n\t\"total\": 10,\r\n\t\"name\": \"{{repair_service_name02}}\",\r\n\t\"car_products_category\": null,\r\n\t\"category\": {{repair_service_category02}},\r\n\t\"work_project\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberworkprice/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberworkprice", "" ] } }, "response": [] }, { "name": "03_post_vipmemberworkprice_3", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"grade\": {{grade_id01}},\r\n\t\"service_category\": 3,\r\n\t\"service_project\": {{car_products_id03}},\r\n\t\"rate\": \"98\",\r\n\t\"rem\": \"\",\r\n\t\"state\": true,\r\n\t\"page\": 1,\r\n\t\"page_size\": 10,\r\n\t\"total\": 10,\r\n\t\"name\": \"{{car_products_name03}}\",\r\n\t\"car_products_category\": null,\r\n\t\"category\": {{car_products_category03}},\r\n\t\"work_project\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberworkprice/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberworkprice", "" ] } }, "response": [] }, { "name": "04_get_vipmemberworkprice", "event": [ { "listen": "test", "script": { "id": "f597428c-12df-4981-bdcf-43982d3fe2ed", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberworkprice/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberworkprice", "" ] } }, "response": [] } ] }, { "name": "card", "item": [ { "name": "01_post_beautypackagecar", "event": [ { "listen": "prerequest", "script": { "id": "49d494bf-3956-474b-93b7-9de03d8eed80", "exec": [ "var beautypackage_id01 = JSON.parse(postman.getEnvironmentVariable(\"beautypackage_id01\"));", "", "", "", " postman.setEnvironmentVariable(\"service_item\",JSON.stringify(beautypackage_id01));", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "eac1ca93-64d8-4136-be94-602b071ef5b8", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"id\": null,\r\n\t\"areashort\":{{areashortid01}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"cellphone\": \"{{vip_phone01}}\",\r\n\t\"car_code\": null,\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"package_name\": \"{{bp_name01}}\",\r\n\t\"package\": {{bp_id01}},\r\n\t\"opencard_amount\": \"{{bp_price01}}\",\r\n\t\"account\":{{account_id01}},\r\n\t\"end_date\": \"2019-04-09\",\r\n\t\"agent\": {{agent_id01}},\r\n\t\"rem\": null,\r\n\t\"state\": 1,\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"service_item\": {{service_item}},\r\n\t\"car\": null,\r\n\t\"number\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ] } }, "response": [] }, { "name": "02_get_beautypackagecar_all", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "//var beautypackage_id01 = JSON.parse(postman.getEnvironmentVariable(\"beautypackage_id01\"));", "", "//var vip_info01 = JSON.parse(postman.getEnvironmentVariable(\"vip_info01\"));", "", " //postman.setEnvironmentVariable(\"service_item\",JSON.stringify(beautypackage_id01));", "// var data=", " ", "// [", "// {", " ", "// \"beauty_services_id\": beautypackage_id01[i].beauty_services_id,", "// \"amount\": beautypackage_id01[i].amount,", "// \"name\": beautypackage_id01[i].namet,", "// \"unit\": beautypackage_id01[i].unit,", "// \"price\": beautypackage_id01[i].price", "// }", "// ]", "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ] } }, "response": [] }, { "name": "03_get_beautypackagecar_vipphone", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "//var beautypackage_id01 = JSON.parse(postman.getEnvironmentVariable(\"beautypackage_id01\"));", "", "//var vip_info01 = JSON.parse(postman.getEnvironmentVariable(\"vip_info01\"));", "", " //postman.setEnvironmentVariable(\"service_item\",JSON.stringify(beautypackage_id01));", "// var data=", " ", "// [", "// {", " ", "// \"beauty_services_id\": beautypackage_id01[i].beauty_services_id,", "// \"amount\": beautypackage_id01[i].amount,", "// \"name\": beautypackage_id01[i].namet,", "// \"unit\": beautypackage_id01[i].unit,", "// \"price\": beautypackage_id01[i].price", "// }", "// ]", "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/?cellphone={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ], "query": [ { "key": "cellphone", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "04_get_beautypackagecar_startdate", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/?start_date=2018-10-10", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ], "query": [ { "key": "start_date", "value": "2018-10-10" } ] } }, "response": [] }, { "name": "05_get_beautypackagecar_carcode", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/?car_code={{car_code01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ], "query": [ { "key": "car_code", "value": "{{car_code01}}" } ] } }, "response": [] }, { "name": "06_post_storedvaluecard", "event": [ { "listen": "test", "script": { "id": "30fb0641-1530-4b20-8af2-7a5ab2d5991e", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"rem\": \"\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-11-08\",\r\n\t\"state\": 1,\r\n\t\"number\": null,\r\n\t\"amount_recharge\": \"500.00\",\r\n\t\"amount_available\": \"500.00\",\r\n\t\"real_payment\": \"490.00\",\r\n\t\"shop\": null,\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"agent\": {{agent_id01}},\r\n\t\"car_code\": \"{{car_code01}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"areashort\": {{areashortid01}},\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"account\": {{account_id01}},\r\n\t\"validity_period\": 6\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ] } }, "response": [] }, { "name": "07_get_storedvaluecard_all", "event": [ { "listen": "test", "script": { "id": "32d8b952-1b98-45b0-8563-de1c500bd40b", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"srv_id01\", jsonData.results[0].id);", " ", " postman.setEnvironmentVariable(\"srv_id02\", jsonData.results[1].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ] } }, "response": [] }, { "name": "02_get_storedvaluecardrecord_cardid01", "event": [ { "listen": "prerequest", "script": { "id": "4683f599-d654-4625-875c-3b594686bac6", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "55541a63-d591-462e-a50a-fde6ca207e64", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " // var jsonData = JSON.parse(responseBody);", " ", " // postman.setEnvironmentVariable(\"carproduct_item01\", jsonData[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecardrecord/?sv_card_id={{srv_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecardrecord", "" ], "query": [ { "key": "sv_card_id", "value": "{{srv_id01}}" } ] } }, "response": [] }, { "name": "08_get_storedvaluecard_vipid", "event": [ { "listen": "test", "script": { "id": "4b8676c8-9df6-46f6-999a-3d91e029f3bb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?vipmember_info_id={{vip_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "vipmember_info_id", "value": "{{vip_id01}}" } ] } }, "response": [] }, { "name": "09_get_storedvaluecard_vipphone", "event": [ { "listen": "test", "script": { "id": "f32789b9-7540-48d1-afd1-7bfe3209cb9b", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"valuecar_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"valuecar_number01\", jsonData.results[0].number);", " ", "", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?vipmember_info__phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "vipmember_info__phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "10_get_storedvaluecard_begindate", "event": [ { "listen": "test", "script": { "id": "506f8713-e885-4f11-bf0f-983ba96583b0", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?begin_date=2018-10-10", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "begin_date", "value": "2018-10-10" } ] } }, "response": [] }, { "name": "11_post_storedvaluecard _recharge", "event": [ { "listen": "test", "script": { "id": "f090ec10-52ac-4b20-a08c-f6b90d7a4224", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"bill_date\": \"{{ymd-date}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"sv_card\":{{valuecar_id01}},\r\n\t\"sv_card_number\": \"{{valuecar_number01}}\",\r\n\t\"amount_recharge\": 3000,\r\n\t\"real_payment\": 2900,\r\n\t\"agent\": {{agent_id02}},\r\n\t\"rem\": null,\r\n\t\"vipmember_info\":{{vip_id01}},\r\n\t\"account\": {{account_id01}},\r\n\t\"validity_period\": 6\r\n \r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrecharge/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrecharge", "" ] } }, "response": [] }, { "name": "12_get_storedvaluecard _recharge_all", "event": [ { "listen": "test", "script": { "id": "ad550916-778a-4c96-9162-16652b5a9e92", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrecharge/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrecharge", "" ] } }, "response": [] } ] }, { "name": " promotion", "item": [ { "name": "01_post_coupon_1", "event": [ { "listen": "test", "script": { "id": "f7766c16-9447-4626-b101-f2b986e76eb9", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"H001\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{repair_service_price01}}\",\r\n\t\"money\": \"5.00\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{repair_service_name01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/coupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ] } }, "response": [] }, { "name": "02_post_coupon_2", "event": [ { "listen": "test", "script": { "id": "55ad9a7a-87bf-4b00-97be-5334c78c9606", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"H002\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{beauty_services_price02}}\",\r\n\t\"money\": \"10\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{beauty_services_name02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/coupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ] } }, "response": [] }, { "name": "03_post_coupon_3", "event": [ { "listen": "test", "script": { "id": "b4827197-77ff-40a5-89a0-bf4d930045ed", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"H003\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{car_products_price02}}\",\r\n\t\"money\": \"10\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{car_products_name02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/coupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ] } }, "response": [] }, { "name": "04_get_coupon_all", "event": [ { "listen": "test", "script": { "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ] } }, "response": [] }, { "name": "05_get_coupon_vipphone", "event": [ { "listen": "test", "script": { "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "06_get_basic_coupon_status0", "event": [ { "listen": "test", "script": { "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", "pm.environment.set(\"coupon_pjid01\", jsonData.results[0].project_id);", "//pm.environment.set(\"coupon_name01\", jsonData.results[0].project_extra.name);", "//pm.environment.set(\"coupon_price01\", jsonData.results[0].project_extra.price);", "pm.environment.set(\"coupon_fullmoney01\", jsonData.results[0].full_money);", "pm.environment.set(\"coupon_money01\", jsonData.results[0].money);", "", "pm.environment.set(\"coupon_id01\", jsonData.results[0].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}&status=0&project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" }, { "key": "status", "value": "0" }, { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "07_get_basic_coupon_status1", "event": [ { "listen": "test", "script": { "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}&status=1", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" }, { "key": "status", "value": "1" } ] } }, "response": [] }, { "name": "08_get_basic_coupon_status2", "event": [ { "listen": "test", "script": { "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}&status=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" }, { "key": "status", "value": "2" } ] } }, "response": [] }, { "name": "09_post_redemptionvoucher_1", "event": [ { "listen": "test", "script": { "id": "ffd13a8d-e5c5-4522-92ec-ac0775c5a9f2", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"D18001\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{repair_service_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ] } }, "response": [] }, { "name": "10_post_redemptionvoucher_2", "event": [ { "listen": "test", "script": { "id": "35050668-0c4f-4b8b-a594-ad4ad22294b0", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"D18002\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{beauty_services_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ] } }, "response": [] }, { "name": "11_post_redemptionvoucher_3", "event": [ { "listen": "test", "script": { "id": "679001a7-6ecc-43bd-8cfc-629c9972029d", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"D18003\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{car_products_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ] } }, "response": [] }, { "name": "12_get_redemptionvoucher_all", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ] } }, "response": [] }, { "name": "13_get_basic_redemptionvoucher_vipphone", "event": [ { "listen": "prerequest", "script": { "id": "15de950d-58eb-4106-b89b-7b217ab928a3", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "// var jsonData = JSON.parse(responseBody);", " ", "// pm.environment.set(\"voucher_pjid01\", jsonData.results[0].project_extra.id);", "// pm.environment.set(\"voucher_name01\", jsonData.results[0].project_extra.name);", "// pm.environment.set(\"voucher_price01\", jsonData.results[0].project_extra.price);", "", "// pm.environment.set(\"voucher_id01\", jsonData.results[0].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?vip_phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "14_get_basic_redemptionvoucher_status0", "event": [ { "listen": "prerequest", "script": { "id": "15de950d-58eb-4106-b89b-7b217ab928a3", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", " var jsonData = JSON.parse(responseBody);", " ", "pm.environment.set(\"voucher_pjid01\", jsonData.results[2].project_extra.id);", "pm.environment.set(\"voucher_name01\", jsonData.results[2].project_extra.name);", "pm.environment.set(\"voucher_price01\", jsonData.results[2].project_extra.price);", "", "pm.environment.set(\"voucher_id01\", jsonData.results[2].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?status=0&vip_phone_number={{vip_phone01}}&project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "status", "value": "0" }, { "key": "vip_phone_number", "value": "{{vip_phone01}}" }, { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "15_get_basic_redemptionvoucher_status1", "event": [ { "listen": "prerequest", "script": { "id": "15de950d-58eb-4106-b89b-7b217ab928a3", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "// var jsonData = JSON.parse(responseBody);", " ", "// pm.environment.set(\"voucher_pjid01\", jsonData.results[1].project_extra.id);", "// pm.environment.set(\"voucher_name01\", jsonData.results[1].project_extra.name);", "// pm.environment.set(\"voucher_price01\", jsonData.results[1].project_extra.price);", "", "// pm.environment.set(\"voucher_id01\", jsonData.results[1].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?status=1&vip_phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "status", "value": "1" }, { "key": "vip_phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "16_get_basic_redemptionvoucher_status2", "event": [ { "listen": "prerequest", "script": { "id": "15de950d-58eb-4106-b89b-7b217ab928a3", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "// var jsonData = JSON.parse(responseBody);", " ", "// pm.environment.set(\"voucher_pjid01\", jsonData.results[1].project_extra.id);", "// pm.environment.set(\"voucher_name01\", jsonData.results[1].project_extra.name);", "// pm.environment.set(\"voucher_price01\", jsonData.results[1].project_extra.price);", "", "// pm.environment.set(\"voucher_id01\", jsonData.results[1].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?status=2&vip_phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "status", "value": "2" }, { "key": "vip_phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "17_post_bulkcoupon_1", "event": [ { "listen": "test", "script": { "id": "19ff7293-58ca-424d-9f15-b1734ea7ad4f", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"create_date\": \"{{ymd-date}}\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{repair_service_price01}}\",\r\n\t\"reach_money\": \"10.00\",\r\n\t\"amount\": \"2\",\r\n\t\"vip_grade_item\": [{{grade_id01}},{{grade_id02}}, {{grade_id03}},{{grade_id04}}],\r\n\t\"project_name\": \"{{repair_service_name01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ] } }, "response": [] }, { "name": "18_post_bulkcoupon_2", "event": [ { "listen": "test", "script": { "id": "b0690484-d956-43d6-bb72-eda12fa28c2a", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"create_date\": \"{{ymd-date}}\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{beauty_services_price02}}\",\r\n\t\"reach_money\": \"10.00\",\r\n\t\"amount\": \"3\",\r\n\t\"vip_grade_item\": [{{grade_id01}},{{grade_id02}}, {{grade_id03}}],\r\n\t\"project_name\": \"{{beauty_services_name02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ] } }, "response": [] }, { "name": "19_post_bulkcoupon_3", "event": [ { "listen": "test", "script": { "id": "a48bfdde-0847-4081-8b9d-7ba549b1208f", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"create_date\": \"{{ymd-date}}\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{car_products_price02}}\",\r\n\t\"reach_money\": \"10.00\",\r\n\t\"amount\": \"4\",\r\n\t\"vip_grade_item\": [{{grade_id01}},{{grade_id02}}, {{grade_id03}}],\r\n\t\"project_name\": \"{{car_products_name02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ] } }, "response": [] }, { "name": "20_get_bulkcoupon_all", "event": [ { "listen": "test", "script": { "id": "902f1512-831f-4932-806a-e96353b9eee8", "exec": [ "", "tests[\"Status code is 200\"] = responseCode.code === 200;", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"bulkcoupon_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"pj_type01\", jsonData.results[0].project_type);", " postman.setEnvironmentVariable(\"pj_id01\", jsonData.results[0].project_id);", " postman.setEnvironmentVariable(\"full_money01\", jsonData.results[0].full_money);", " postman.setEnvironmentVariable(\"reach_money01\", jsonData.results[0].reach_money);", " postman.setEnvironmentVariable(\"begin_date01\", jsonData.results[0].begin_date);", " postman.setEnvironmentVariable(\"end_date01\", jsonData.results[0].end_date);", " // postman.setEnvironmentVariable(\"bulkcoupon_all\", JSON.stringify(jsonData.results[0]));", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ] } }, "response": [] }, { "name": "21_post_preferentialsalescampaign_1", "event": [ { "listen": "test", "script": { "id": "df22b598-1765-4a47-8741-56437a44ce82", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"pic_id01\", jsonData.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"activity_name\": \"促销活动01\",\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"promotion_name\": \"{{beauty_services_name02}}\",\r\n\t\"rate\": \"99\",\r\n\t\"description\": \"快快来!\"\r\n}" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ] } }, "response": [] }, { "name": "22_post_peferentialsalescampaign_2", "event": [ { "listen": "test", "script": { "id": "31ed7a78-537d-4c25-b469-662b1fa2f82c", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"activity_name\": \"优惠促销互动02\",\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"promotion_name\": \"{{repair_service_name01}}\",\r\n\t\"rate\": \"98\",\r\n\t\"description\": \"限时抢购!\"\r\n}" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ] } }, "response": [] }, { "name": "23_post_preferentialsalescampaign_3", "event": [ { "listen": "test", "script": { "id": "7a765db6-1f01-4783-adc6-81be96f6af46", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"activity_name\": \"美容服务大促销\",\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"promotion_name\": \"{{car_products_name02}}\",\r\n\t\"rate\": \"97\",\r\n\t\"description\": \"优惠有限,快来抢购啦!\"\r\n}" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ] } }, "response": [] }, { "name": "24_get_preferentialsalescampaign_all", "event": [ { "listen": "test", "script": { "id": "1a7caa33-9498-4ba5-9d36-cfe1bea5c676", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ] } }, "response": [] } ] }, { "name": "receive_bulkcoupon", "item": [ { "name": "get_userbind_uid", "event": [ { "listen": "test", "script": { "id": "ad13d24e-c854-4e03-a2c7-b76baec037dd", "exec": [ " tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " ", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"wx_uid\", jsonData.uid);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/userbind/?openid={{openid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "userbind", "" ], "query": [ { "key": "openid", "value": "{{openid}}" } ] } }, "response": [] }, { "name": "post_userbind_wxbangding", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "telephone", "value": "{{vip_phone01}}", "type": "text" }, { "key": "uid", "value": "{{wx_uid}}", "type": "text" } ] }, "url": { "raw": "{{url}}/api/wx/userbind/?", "host": [ "{{url}}" ], "path": [ "api", "wx", "userbind", "" ], "query": [ { "key": "vipmember_info_id", "value": "{{vip_id01}}", "disabled": true } ] } }, "response": [] }, { "name": "post_smsverifycode", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "code", "value": "999999", "type": "text" }, { "key": "sessionId", "value": "undifine", "type": "text" } ] }, "url": { "raw": "{{url}}/api/core/smsverifycode/?", "host": [ "{{url}}" ], "path": [ "api", "core", "smsverifycode", "" ], "query": [ { "key": "vipmember_info_id", "value": "{{vip_id01}}", "disabled": true } ] } }, "response": [] }, { "name": "get_wx_usershops", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "" ] } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/usershop/?uid={{wx_uid}}&type=follow", "host": [ "{{url}}" ], "path": [ "api", "wx", "usershop", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" }, { "key": "type", "value": "follow" } ] } }, "response": [] }, { "name": "post_wx_usershop", "event": [ { "listen": "test", "script": { "id": "d89f7567-fe14-4a48-ac53-86272b2f8116", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"uid\":\"{{wx_uid}}\",\n\t\"shop\":{{shop_id}}\n\t\n}\n" }, "url": { "raw": "{{url}}/api/wx/usershop/", "host": [ "{{url}}" ], "path": [ "api", "wx", "usershop", "" ] } }, "response": [] }, { "name": "get_userbind_followshop", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "" ] } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/userbind/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "userbind", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_usercard", "event": [ { "listen": "test", "script": { "id": "3176c3dc-0fe0-4f99-b754-89b9e253b920", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"wx_cardid01\", jsonData[0].card[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/usercard/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "usercard", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_usercard_id", "event": [ { "listen": "test", "script": { "id": "3176c3dc-0fe0-4f99-b754-89b9e253b920", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/usercard/{{wx_cardid01}}/?uid={{wx_uid}}&type=0", "host": [ "{{url}}" ], "path": [ "api", "wx", "usercard", "{{wx_cardid01}}", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" }, { "key": "type", "value": "0" } ] } }, "response": [] }, { "name": "get_wx_bulkcoupon", "event": [ { "listen": "test", "script": { "id": "244f0427-4c7e-49b7-807f-5b86fe06f966", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if(tests[\"Status code is 200\"] ){", " ", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"wx_uid\", jsonData.uid);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/bulkcoupon/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "bulkcoupon", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_basic_coupon", "event": [ { "listen": "test", "script": { "id": "7de3700f-3fff-4289-af9b-559ce0c91d2e", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?uid={{wx_uid}}&vipmember_info_id={{vip_id01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" }, { "key": "vipmember_info_id", "value": "{{vip_id01}}" } ] } }, "response": [] }, { "name": "get_basic_coupon_phone", "event": [ { "listen": "test", "script": { "id": "7de3700f-3fff-4289-af9b-559ce0c91d2e", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "post_wx_coupon", "event": [ { "listen": "prerequest", "script": { "id": "2ee071fc-1f31-4b46-a108-6792b921145b", "exec": [ "// var coupons01_pjname = JSON.parse(postman.getEnvironmentVariable(\"coupons01_pjname\"));\r", " \r", "// var data = {\r", "// \t\t\"id\":coupons01_pjname.id,\r", "// \t\t\"name\": coupons01_pjname.name,\r", "// \t\t\"price\": coupons01_pjname.price,\r", "// \t\t\"category\": coupons01_pjname.category,\r", "// \t\t\"category__name\": coupons01_pjname.category__name\r", "// \t}\r", "\t\r", "// \t postman.setEnvironmentVariable(\"project_name\",JSON.stringify(data));\r", "\t \r", "// //\t var coupons01_all = JSON.parse(postman.getEnvironmentVariable(\"coupons01_all\"));" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "28eb0b25-d5b7-4312-b12a-aa8dedc74324", "exec": [ "", "", "", "", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"uid\": \"{{wx_uid}}\",\r\n\t\"bulk_coupon\": {{bulkcoupon_id01}},\r\n\t\"shop\": {{shop_id}},\r\n\t\"project_type\": {{pj_type01}},\r\n\t\"project_id\": {{pj_id01}},\r\n\t\"full_money\": \"{{full_money01}}\",\r\n\t\"money\": \"{{reach_money01}}\",\r\n\t\"begin_date\": \"{{begin_date01}}\",\r\n\t\"end_date\": \"{{end_date01}}\",\r\n\t\"source_type\": 2\r\n}\r\n\r\n" }, "url": { "raw": "{{url}}/api/wx/coupon/", "host": [ "{{url}}" ], "path": [ "api", "wx", "coupon", "" ] } }, "response": [] }, { "name": "get_wx_coupon", "event": [ { "listen": "prerequest", "script": { "id": "2ee071fc-1f31-4b46-a108-6792b921145b", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "28eb0b25-d5b7-4312-b12a-aa8dedc74324", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/coupon/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "coupon", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_redemptionvoucher", "event": [ { "listen": "prerequest", "script": { "id": "2ee071fc-1f31-4b46-a108-6792b921145b", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "28eb0b25-d5b7-4312-b12a-aa8dedc74324", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/redemptionvoucher/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "redemptionvoucher", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] } ] }, { "name": "beatuyservice", "item": [ { "name": "get_vipmember_vipshortlist", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipshortlist/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipshortlist", "" ] } }, "response": [] }, { "name": "get_business_beautyordersettles", "event": [ { "listen": "test", "script": { "id": "5e4471e4-4082-4d87-ad80-14d1e46d666e", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyordersettles/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyordersettles", "" ] } }, "response": [] }, { "name": "get_business_vipservicepriceview_service1", "event": [ { "listen": "test", "script": { "id": "39dec1d8-c67b-4446-8470-58186eb91aa5", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", " ", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"s_discount_all\", JSON.stringify(jsonData));", " ", " // postman.setEnvironmentVariable(\"s_discount_price01\", jsonData.service_project__price);", " postman.setEnvironmentVariable(\"s_discount_rate01\", jsonData.rate);", " ", " ", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/vipservicepriceview/?car_id={{car_id01}}&service_id={{beauty_services_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "vipservicepriceview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "service_id", "value": "{{beauty_services_id02}}" } ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_0cash", "event": [ { "listen": "prerequest", "script": { "id": "f2ae8560-2f2e-4e7e-97e7-ec06f737098e", "exec": [ "Date.prototype.Format = function (fmt) { //author: meizz ", " var o = {", " \"M+\": this.getMonth() + 1, //月份 ", " \"d+\": this.getDate(), //日 ", " \"h+\": this.getHours(), //小时 ", " \"m+\": this.getMinutes(), //分 ", " \"s+\": this.getSeconds(), //秒 ", " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ", " \"S\": this.getMilliseconds() //毫秒 ", " };", " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));", " for (var k in o)", " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));", " return fmt;", "}", "", "Date.prototype.addHours = function(h) { ", " this.setTime(this.getTime() + (h*60*60*1000)); ", " return this; ", "};", "", "", "postman.setGlobalVariable(\"date\", new Date().toISOString());", "", "postman.setGlobalVariable(\"ymd-date\", new Date().Format(\"yyyy-MM-dd\"));", "", "postman.setGlobalVariable(\"localdate\", new Date().toLocaleString());", "", "", "pm.environment.set(\"start_datetime\", new Date().Format(\"yyyy-MM-dd hh:mm\"));", "pm.environment.set(\"end_datetime\", new Date().addHours(2).Format(\"yyyy-MM-dd hh:mm\"));", "pm.environment.set(\"diff_datetime\", new Date().Format(\"yyyy-MM-dd hh\")+':00'+'-'+new Date().addHours(2).getHours()+':00');", "", "var date ={}", "", "// var data = {", "// \"style_id\": null,", "// \t\t\"style\": 0,", "// \t\t\"arrival_amount\": ", " ", "// }", "", "", "var s_discount_all = JSON.parse(postman.getEnvironmentVariable(\"s_discount_all\"));", "", "", "var service_amou= parseFloat(s_discount_all.service_project__price) * parseFloat(s_discount_all.rate) /100;", "", "pm.environment.set(\"service_amou\", service_amou);", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "8d235451-cb00-4bcf-acf5-4db6ed1e50a1", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id01}},\r\n\t\"beauty_services_id\": {{beauty_services_id02}},\r\n\t\"service_amount\": {{service_amou}},\r\n\t\"rate\": {{s_discount_rate01}},\r\n\t\"account_id\": {{account_id01}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{service_amou}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t},{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "get_business_beautyordersettles_stordcard", "event": [ { "listen": "test", "script": { "id": "b295d37d-70e5-4e63-b20b-7430b5c7d6da", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"pk_card01\", JSON.stringify(jsonData.package_card[0]));", " postman.setEnvironmentVariable(\"store_card01\", JSON.stringify(jsonData.store_card));", " postman.setEnvironmentVariable(\"card_id01\", jsonData.store_card.id);", " postman.setEnvironmentVariable(\"store_coupons01\", JSON.stringify(jsonData.coupons[0]));", " ", " }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyordersettles/?car_id={{car_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyordersettles", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" } ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_1storecard", "event": [ { "listen": "prerequest", "script": { "id": "eb28acc0-9e08-457b-8110-b1378832e0ce", "exec": [ "var pk_card = JSON.parse(postman.getEnvironmentVariable(\"pk_card01\"));", "", " var data = {", " \"style_id\": pk_card.id,", " \t\t\"style\": 1,", "\t\t\"arrival_amount\": pk_card.service_item__price", " ", " }", " ", " postman.setEnvironmentVariable(\"settles\",JSON.stringify(data));", " postman.setEnvironmentVariable(\"service_amount\",data.arrival_amount);", " postman.setEnvironmentVariable(\"beauty_services_id\",pk_card.service_item_id);", " // postman.setEnvironmentVariable(\"beauty_services_id\",pk_card.service_item_id);", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "bcfe68e7-e149-4b44-a11a-1bf5a56523b2", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": " {\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id01}},\r\n\t\"beauty_services_id\": {{beauty_services_id}},\r\n\t\"service_amount\": {{service_amount}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id01}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{{settles}}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "get_business_beautyserviceorderadmin", "event": [ { "listen": "test", "script": { "id": "e3256fc4-8bec-4b61-b3da-591674919dca", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_2valuecard", "event": [ { "listen": "test", "script": { "id": "beda82f0-8b79-4f2b-bab4-a9cb2431e4fe", "exec": [ "//tests[\"Status code is 200\"] = responseCode.code === 200;", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id01}},\r\n\t\"beauty_services_id\":{{beauty_services_id03}},\r\n\t\"service_amount\": {{beauty_services_price03}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": {{card_id01}},\r\n\t\t\"style\": 2,\r\n\t\t\"arrival_amount\": {{beauty_services_price03}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_4voucher", "event": [ { "listen": "test", "script": { "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485", "exec": [ "//tests[\"Status code is 200\"] = responseCode.code === 200;", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id01}},\r\n\t\"beauty_services_id\":{{voucher_pjid01}},\r\n\t\"service_amount\":{{voucher_price01}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{voucher_id01}},\r\n\t\t\"style\": 4,\r\n\t\t\"arrival_amount\":{{voucher_price01}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"use_date\": \"{{ymd-date}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_3coupon_0cash", "event": [ { "listen": "test", "script": { "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;", "", "// var final = postman.getEnvironmentVariable(\"coupon_fullmoney01\");", "", "// var coupon_money01 = JSON.float(postman.getEnvironmentVariable(\"coupon_money01\"));", "", "// final-=coupon_money01;", "", "// postman.setEnvironmentVariable(\"final\",\"final\");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "039daf69-c376-4f44-8c7c-9e5063c0aea0", "exec": [ "var full = JSON.parse(postman.getEnvironmentVariable(\"coupon_fullmoney01\"));", "", "var coupon_money01 = JSON.parse(postman.getEnvironmentVariable(\"coupon_money01\"));", "", "full-=coupon_money01 ;", "", " postman.setEnvironmentVariable(\"full\",full);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id01}},\r\n\t\"beauty_services_id\":{{coupon_pjid01}},\r\n\t\"service_amount\": {{coupon_fullmoney01}}, \r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{coupon_id01}},\r\n\t\t\"style\": 3,\r\n\t\t\"arrival_amount\":{{coupon_money01}}\r\n\t}, {\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{full}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"use_date\":\"{{ymd-date}}\",\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_dialogaddvip", "event": [ { "listen": "test", "script": { "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "// var final = postman.getEnvironmentVariable(\"coupon_fullmoney01\");", "", "// var coupon_money01 = JSON.float(postman.getEnvironmentVariable(\"coupon_money01\"));", "", "// final-=coupon_money01;", "", "// postman.setEnvironmentVariable(\"final\",\"final\");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "039daf69-c376-4f44-8c7c-9e5063c0aea0", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"phone_number\": \"18159852345\",\r\n\t\"vip_name\": \"欧洋铭铭\",\r\n\t\"code\": \"A85789H\",\r\n\t\"sex\": 0,\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"carcategory\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/dialogaddvip/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "dialogaddvip", "" ] } }, "response": [] }, { "name": "get_vipmember_vipmemberinfoadmin _phone", "event": [ { "listen": "test", "script": { "id": "11c7f590-66d7-4fcf-ae57-fbb08cdacbf9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"vip_id03\", jsonData.results[0].id);", " ", "// postman.setEnvironmentVariable(\"vip_name01\", jsonData.results[0].name);", " ", "// postman.setEnvironmentVariable(\"vip_phone01\", jsonData.results[0].phone_number);", " postman.setEnvironmentVariable(\"car_code03\", jsonData.results[0].car[0].code);", " ", " postman.setEnvironmentVariable(\"car_id03\", jsonData.results[0].car[0].id);", "// postman.setEnvironmentVariable(\"areashortid01\", jsonData.results[0].car[0].areashort);", "// postman.setEnvironmentVariable(\"vip_grade01\", jsonData.results[0].grade);", " ", "// postman.setEnvironmentVariable(\"vip_info01\", JSON.stringify(jsonData.results[0]));", "// postman.setEnvironmentVariable(\"vip_carname01\", jsonData.results[0].car.carcategory_name);", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?cellphone=18159852345", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "cellphone", "value": "18159852345" } ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_0cash_new", "event": [ { "listen": "prerequest", "script": { "id": "f2ae8560-2f2e-4e7e-97e7-ec06f737098e", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "8d235451-cb00-4bcf-acf5-4db6ed1e50a1", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id03}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id03}},\r\n\t\"beauty_services_id\": {{beauty_services_id02}},\r\n\t\"service_amount\": {{service_amou}},\r\n\t\"rate\": {{s_discount_rate01}},\r\n\t\"account_id\": {{account_id03}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{service_amou}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code03}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] } ] }, { "name": "repaireservice", "item": [ { "name": "get1_business_viprepairworkpriceadminview_repair1", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_item01_all\", JSON.stringify(jsonData));", " ", " }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{car_id01}}&item_id={{repair_service_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "viprepairworkpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "item_id", "value": "{{repair_service_id01}}" } ] } }, "response": [] }, { "name": "get2_business_viprepairworkpriceadminview_repair2", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair_item02_all\", JSON.stringify(jsonData));", " ", " }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{car_id01}}&item_id={{repair_service_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "viprepairworkpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "item_id", "value": "{{repair_service_id02}}" } ] } }, "response": [] }, { "name": "get2_product02_discount", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product02\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "product_id", "value": "{{car_products_id02}}" } ] } }, "response": [] }, { "name": "get2_product03_discount", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product03\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id03}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "product_id", "value": "{{car_products_id03}}" } ] } }, "response": [] }, { "name": "get3_product04_discount", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product04\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id04}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "product_id", "value": "{{car_products_id04}}" } ] } }, "response": [] }, { "name": "get3_product05_discount", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product05\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id05}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{car_id01}}" }, { "key": "product_id", "value": "{{car_products_id05}}" } ] } }, "response": [] }, { "name": "post_business_repairserviceorderadminview", "event": [ { "listen": "prerequest", "script": { "id": "b3095794-d3e0-4feb-b248-8b0595f269b3", "exec": [ "var product02 = JSON.parse(postman.getEnvironmentVariable(\"product02\"));", "var repair_item01_all = JSON.parse(postman.getEnvironmentVariable(\"repair_item01_all\"));", "var repair_service_id01 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id01\"));", "var data01 ={", "\t\t\"car_products_id\": product02.car_products_id,", "\t\t\"amount\": 1,", "\t\t\"rate\": product02.rate,", "\t\t\"price\": product02.price,", "\t\t\"discounted_price\": product02.discounted_price", "\t}", "\t", "var data02 ={", "\t\t\"repair_service_id\": repair_service_id01,", "\t\t\"standard_fee\": repair_item01_all.standard_fee,", "\t\t\"rate\": repair_item01_all.rate,", "\t\t\"discounted_price\": repair_item01_all.discounted_price,", "\t\t\"id\": null", "\t}", "\t", "\tvar discounted_price01 = parseFloat(data01.price) * parseFloat(data01.rate) * parseFloat(data01.amount)/100;", " ", " ", " postman.setEnvironmentVariable(\"r_products01\", JSON.stringify(data01));", " postman.setEnvironmentVariable(\"r_items01\",JSON.stringify(data02));", "\t", "", " postman.setEnvironmentVariable(\"sumproduct01\",discounted_price01);", " postman.setEnvironmentVariable(\"work_price01\",data02.discounted_price);", " ", " ", " ", " ", " " ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f5021e2e-6681-4c2f-b3a2-1251038d851b", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id01}},\r\n\t\"vip_id\": {{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": \"车的前门有被损坏过\",\r\n\t\"other_price\": 200,\r\n\t\"work_price\": \"{{work_price01}}\",\r\n\t\"products_price\": \"{{sumproduct01}}\",\r\n\t\"r_items\": [{{r_items01}}],\r\n\t\"r_products\": [{{r_products01}}],\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ] } }, "response": [] }, { "name": "get_business_repairserviceorderadminview", "event": [ { "listen": "test", "script": { "id": "2ff84aa8-e38d-4112-8b4c-76cfd58e8225", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if(tests[\"Status code is 200\"] ){", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"repairservice_id01\", jsonData.results[0].id);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ] } }, "response": [] }, { "name": "get_business_repairserviceorderadminview_status0", "event": [ { "listen": "test", "script": { "id": "5b9bcdc3-b257-4aac-a3c7-728950cde1f6", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repairservice_id01\", jsonData.results[0].id);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?status=0&start_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "status", "value": "0" }, { "key": "start_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "delete_business_repairserviceorderadminview", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 204\"] = responseCode.code === 204 || responseCode.code === 404;", "", "" ] } } ], "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"receipt_date\": \"2018-10-08T06:04:56.400Z\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id01}},\r\n\t\"vip_id\": {{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": \"车的前门有被损坏过\",\r\n\t\"other_price\": 0,\r\n\t\"work_price\": \"{{repair_service_price01}}\",\r\n\t\"products_price\": \"{{sum}}\",\r\n\t\"r_items\": [{\r\n\t\t\"repair_service_id\": {{repair_service_id01}},\r\n\t\t\"standard_fee\": {{repair_service_price01}},\r\n\t\t\"rate\": 100,\r\n\t\t\"discounted_price\": {{repair_service_price01}},\r\n\t\t\"id\": null\r\n\t}],\r\n\t\"r_products\": [{\r\n\t\t\"car_products_id\": {{car_products_id02}},\r\n\t\t\"amount\": 1,\r\n\t\t\"rate\": 100,\r\n\t\t\"price\": {{car_products_price02}},\r\n\t\t\"discounted_price\": {{car_products_price02}}\r\n\t}, {\r\n\t\t\"car_products_id\": {{car_products_id03}},\r\n\t\t\"amount\": 1,\r\n\t\t\"rate\": 100,\r\n\t\t\"price\": {{car_products_price03}},\r\n\t\t\"discounted_price\": {{car_products_price03}}\r\n\t}],\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/1230050/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "1230050", "" ] } }, "response": [] }, { "name": "get_business_repairserviceorderadminview_id_total01", "event": [ { "listen": "test", "script": { "id": "c2510d87-6487-4795-96a1-cc47807ff00a", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", "", "postman.setEnvironmentVariable(\"total01\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));", " ", "", "", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "{{repairservice_id01}}", "" ] } }, "response": [] }, { "name": "post_business_repaircardetail", "event": [ { "listen": "test", "script": { "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ] } }, "response": [] }, { "name": "get_business_repaircardetail_prepay01", "event": [ { "listen": "test", "script": { "id": "788e9e9e-0b50-4463-bc62-728fbaa3ddcd", "exec": [ "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"servicedetail_id01\", jsonData.id);", " postman.setEnvironmentVariable(\"prepay_01\", jsonData.prepayments);", " ", "}", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01}}" } ] } }, "response": [] }, { "name": "put_business_repaircardetail", "event": [ { "listen": "test", "script": { "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{servicedetail_id01}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\":null,\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": {{prepay_01}},\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"pickup\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "{{servicedetail_id01}}", "" ] } }, "response": [] }, { "name": "get_business_repairdispatcheddetail", "event": [ { "listen": "test", "script": { "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"service_id01\", jsonData[0].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01}}" } ] } }, "response": [] }, { "name": "patch_business_repaircardetail_1", "event": [ { "listen": "test", "script": { "id": "b95712d7-e235-4845-8153-f20f16fa468f", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": {{service_id01}},\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01}}" } ] } }, "response": [] }, { "name": "put_business_repaircardetail", "event": [ { "listen": "test", "script": { "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{servicedetail_id01}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\":null,\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\":{{prepay_01}},\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"pickup\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localhost}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "{{servicedetail_id01}}", "" ] } }, "response": [] }, { "name": "patch_business_repaircardetail_2", "event": [ { "listen": "test", "script": { "id": "85c54901-138c-4d96-8847-96f711a0ac63", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": {{service_id01}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01}}" } ] } }, "response": [] }, { "name": "post_repairsettleaccountsadminview_cash", "event": [ { "listen": "prerequest", "script": { "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98", "exec": [ "var sum01 = JSON.parse(postman.getEnvironmentVariable(\"total01\"));", "", "var prepay_01 = JSON.parse(postman.getEnvironmentVariable(\"prepay_01\"));", "", "sum01-=prepay_01;", "", " postman.setEnvironmentVariable(\"sum01\",sum01);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "39c85b02-c440-4926-8463-03b49483e3c8", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"service_order\": \"{{repairservice_id01}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": {{sum01}},\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id01}},\r\n\t\"payee\": {{agent_id01}},\r\n\t\"settles\": [],\r\n\t\"localdate\": \"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairsettleaccountsadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairsettleaccountsadminview", "" ] } }, "response": [] }, { "name": "post4_repairserviceorderadminview", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "var repair_item02_all= JSON.parse(postman.getEnvironmentVariable(\"repair_item02_all\"));\r", "var repair_service_id02 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id02\"));\r", "var product03 = JSON.parse(postman.getEnvironmentVariable(\"product03\"));\r", "var product04 = JSON.parse(postman.getEnvironmentVariable(\"product04\"));\r", "\r", "var data04={\r", "\t\t\"repair_service_id\": repair_service_id02,\r", "\t\t\"standard_fee\":repair_item02_all.standard_fee,\r", "\t\t\"rate\": repair_item02_all.rate,\r", "\t\t\"discounted_price\": repair_item02_all.discounted_price,\r", "\t\t\"id\": null\r", "\t}\r", "\r", "var data05 ={\r", "\t\t\"car_products_id\": product03.car_products_id,\r", "\t\t\"amount\":2,\r", "\t\t\"rate\": product03.rate,\r", "\t\t\"price\": product03.price,\r", "\t\t\"discounted_price\":product03.discounted_price\r", " \r", "}\r", "var data06 ={\r", "\t\"car_products_id\": product04.car_products_id,\r", "\t\"amount\":1,\r", "\t\"rate\": product04.rate,\r", "\t\"price\": product04.price,\r", "\t\"discounted_price\": product04.discounted_price\r", "\t}\r", "\tpostman.setEnvironmentVariable(\"ritems02\", JSON.stringify(data04));\r", "\tpostman.setEnvironmentVariable(\"r_products03\", JSON.stringify(data05));\r", " postman.setEnvironmentVariable(\"r_products04\", JSON.stringify(data06));\r", "\r", "\tpostman.setEnvironmentVariable(\"work_price02\", JSON.parse(data04.discounted_price));\r", "\t\r", "var discounted_price01= parseFloat(data05.discounted_price) * parseFloat(data05.amount);\r", "var discounted_price02 = parseFloat(data06.discounted_price) * parseFloat(data06.amount);\r", "var total_price = parseFloat(discounted_price01) + parseFloat(discounted_price02);\r", " postman.setEnvironmentVariable(\"products_price02\", total_price);\r", "\r", "\r", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);", " ", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id01}},\r\n\t\"vip_id\": {{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": null,\r\n\t\"other_price\": 100,\r\n\t\"work_price\": \"{{work_price02}}\",\r\n\t\"products_price\": \"{{products_price02}}\",\r\n\t\"r_items\": [{{ritems02}}],\r\n\t\"r_products\": [{{r_products03}}, {{r_products04}}],\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}\r\n" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ] } }, "response": [] }, { "name": "get5_repairserviceorderadminview", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?status=0", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get6_repairserviceorderadminview_id_total02", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"total02\",parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price) + parseFloat(jsonData.other_price) );", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id02}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "{{repairservice_id02}}", "" ] } }, "response": [] }, { "name": "post7_repaircardetail_id", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});", "", " // var jsonData = JSON.parse(responseBody);", " ", " // postman.setEnvironmentVariable(\"sumpaypre\", jsonData.prepayments);", " " ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"remaining_oil\": 60,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 40000,\r\n\t\"payee\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n\t\"service_order\": \"{{repairservice_id02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ] } }, "response": [] }, { "name": "get8_repaircardetail_id_prepay02", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"prepay_02\", jsonData.prepayments);", " ", " postman.setEnvironmentVariable(\"servicedetail_id02\", jsonData.id);", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id02}}" } ] } }, "response": [] }, { "name": "get9_repairdispatcheddetail", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"service_id02\", jsonData[0].id);", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id02}}" } ] } }, "response": [] }, { "name": "patch10_repairserviceorderadminview_rid", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": {{service_id02}},\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id02}}" } ] } }, "response": [] }, { "name": "patch11_repairserviceorderadminview_rid", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": {{service_id02}},\r\n\t\"agent_id\":{{agent_id02}},\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\":\"{{ymd-date}}\" ,\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id02}}" } ] } }, "response": [] }, { "name": "post12_repairsettleaccountsadminview_0card", "event": [ { "listen": "prerequest", "script": { "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98", "exec": [ "var sum02 = JSON.parse(postman.getEnvironmentVariable(\"total02\"));", "", "var prepay02 = JSON.parse(postman.getEnvironmentVariable(\"prepay_02\"));", "", "sum02-=prepay02;", "", " postman.setEnvironmentVariable(\"sum02\",sum02);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "39c85b02-c440-4926-8463-03b49483e3c8", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"service_order\": \"{{repairservice_id02}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": \"0.00\",\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id02}},\r\n\t\"payee\": {{agent_id02}},\r\n\t\"settles\": [{\r\n\t\t\"style\": 0,\r\n\t\t\"style_id\": {{valuecar_id01}},\r\n\t\t\"arrival_amount\": {{sum02}}\r\n\t}\r\n\t\t\r\n\t\t],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"receipt_date_str\":\"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairsettleaccountsadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairsettleaccountsadminview", "" ] } }, "response": [] } ] }, { "name": "invocing", "item": [ { "name": "post_purchaseorder", "event": [ { "listen": "test", "script": { "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "53535fef-9d2b-4829-a3dd-48ee31a6426e", "exec": [ "var car_products_id02 = JSON.parse(postman.getEnvironmentVariable(\"car_products_id02\"));", "var car_products_price02 = JSON.parse(postman.getEnvironmentVariable(\"car_products_price02\"));", "var car_products_id03 = JSON.parse(postman.getEnvironmentVariable(\"car_products_id03\"));", "var car_products_price03 = JSON.parse(postman.getEnvironmentVariable(\"car_products_price03\"));", "var car_products_id04 = JSON.parse(postman.getEnvironmentVariable(\"car_products_id04\"));", "var car_products_price04 = JSON.parse(postman.getEnvironmentVariable(\"car_products_price04\"));", "var storehouse_id01 = JSON.parse(postman.getEnvironmentVariable(\"storehouse_id01\"));", "", "", "data20={", " ", " \t\"car_products_id\":car_products_id02,", "\t\t\"amount\":3 ,", "\t\t\"price\": car_products_price02,", "\t\t\"storehouse_id\": storehouse_id01,", " \t\"shop_id\":null", "}", "data21={", " ", " \t\"car_products_id\":car_products_id03,", "\t\t\"amount\":2 ,", "\t\t\"price\": car_products_price03,", "\t\t\"storehouse_id\": storehouse_id01,", " \t\"shop_id\":null", "}", "data22={", " ", " \t\"car_products_id\":car_products_id04,", "\t\t\"amount\":2 ,", "\t\t\"price\": car_products_price04,", "\t\t\"storehouse_id\": storehouse_id01,", " \t\"shop_id\":null", "}", " postman.setEnvironmentVariable(\"items_product01\", JSON.stringify(data20));", " postman.setEnvironmentVariable(\"items_product02\", JSON.stringify(data21));", " postman.setEnvironmentVariable(\"items_product03\", JSON.stringify(data22));", " ", "", "var productprices = (parseFloat(data20.price) * parseFloat(data20.amount) + parseFloat(data21.price) *parseFloat(data21.amount)+ parseFloat(data22.price) *parseFloat(data22.amount)).toFixed(2);", " postman.setEnvironmentVariable(\"productprices\",productprices);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"style\": 0,\r\n\t\"supplier_id\": {{supplier_id01}},\r\n\t\"invoice_date\": \"{{ymd-date}}\",\r\n\t\"ready_amount\": {{productprices}},\r\n\t\"account_id\": {{account_id01}},\r\n\t\"purchase_amount\":{{productprices}},\r\n\t\"note\": null,\r\n\t\"amount\":0,\r\n\t \"month\":\"11\",\r\n\t\"buyer_id\": {{agent_id01}},\r\n\t\"items\": [{{items_product01}},{{items_product02}},{{items_product03}}]\r\n}" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorder", "" ] } }, "response": [] }, { "name": "get_purchaseorderitem", "event": [ { "listen": "test", "script": { "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"invo_purchase_item01\", jsonData.results[0].id);", " ", " postman.setEnvironmentVariable(\"invo_purchase_price01\", jsonData.results[0].price);", " postman.setEnvironmentVariable(\"invo_purchase_carproductid01\", jsonData.results[0].car_products);", " " ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2018-11-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorderitem", "" ], "query": [ { "key": "start_date", "value": "2018-11-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "post_purchasebackorder", "event": [ { "listen": "test", "script": { "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "630ce591-9342-45ea-b6cc-fbe78ef274fa", "exec": [ "var price01 = JSON.parse(postman.getEnvironmentVariable(\"invo_purchase_price01\"));", "", "var invo_amount = (parseFloat(price01)*1).toFixed(2);", "", "pm.environment.set(\"invo_amount\", invo_amount);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"supplier_id\": {{supplier_id01}},\r\n\t\"buyer_id\": {{agent_id01}},\r\n\t\"style\": 0,\r\n\t\"invoice_date\": \"{{ymd-date}}\",\r\n\t\"account_id\": {{account_id01}},\r\n\t\"amount\": {{invo_amount}}, \r\n\t\"note\": null,\r\n\t\"items\": [{\r\n\t\t\"purchase_order_item_id\": {{invo_purchase_item01}},\r\n\t\t\"amount\": 1,\r\n\t\t\"price\": \"{{invo_purchase_price01}}\",\r\n\t\t\"car_products_id\": {{invo_purchase_carproductid01}},\r\n\t\t\"storehouse_id\": \"{{storehouse_id01}}\"\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/invoicing/purchasebackorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchasebackorder", "" ] } }, "response": [] }, { "name": "get_purchasebackorder", "event": [ { "listen": "test", "script": { "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchasebackorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchasebackorder", "" ] } }, "response": [] }, { "name": "get_inventorydetail", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"sales_order_item01\", jsonData.results[2].car_product.id);", " ", " postman.setEnvironmentVariable(\"sales_order_price01\", jsonData.results[2].car_product.price);", " ", " postman.setEnvironmentVariable(\"sales_order_storehouse01\", jsonData.results[2].storehouse);", " ", " postman.setEnvironmentVariable(\"sales_order_item02\", jsonData.results[3].car_product.id);", " ", " postman.setEnvironmentVariable(\"sales_order_price02\", jsonData.results[3].car_product.price);", " ", " postman.setEnvironmentVariable(\"sales_order_storehouse02\", jsonData.results[3].storehouse);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ] } }, "response": [] }, { "name": "get_salesordersettle", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesordersettle/?vip_id={{vip_id01}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesordersettle", "" ], "query": [ { "key": "vip_id", "value": "{{vip_id01}}" } ] } }, "response": [] }, { "name": "post_salesorder_valuecard1", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "var price01 = JSON.parse(postman.getEnvironmentVariable(\"sales_order_price01\"));", "", "var sales_amount = (parseFloat(price01)*1).toFixed(2);", "", "pm.environment.set(\"sales_amount01\", sales_amount);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"localdate\": \"{{date}}\",\n \"invoice_date\": \"{{ymd-date}}\",\n \"order_number\": \"XH0001\",\n \"vipmember_info\": {{vip_id01}},\n \"car\": null,\n \"corp_vip\": null,\n \"salesman\": {{agent_id01}},\n \"sales_amount\": \"{{sales_amount01}}\",\n \"account\": null,\n \"style\": 0,\n \"description\": null,\n \"sales_order_item\": [\n {\n \"id\": {{sales_order_item01}},\n \"num\": 1,\n \"price\": {{sales_order_price01}},\n \"rate\": 100,\n \"storehouse_id\": \"{{storehouse_id01}}\"\n }\n ],\n \"settle_details\": [\n {\n \"style\": 1,\n \"style_id\": {{valuecar_id01}},\n \"arrival_amount\": {{sales_amount01}}\n }\n ]\n}" }, "url": { "raw": "{{url}}/api/invoicing/salesorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorder", "" ] } }, "response": [] }, { "name": "post_salesorder_cash", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "var price02 = JSON.parse(postman.getEnvironmentVariable(\"sales_order_price02\"));", "", "var sales_amount = (parseFloat(price02)*1).toFixed(2);", "", "pm.environment.set(\"sales_amount02\", sales_amount);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"localdate\": \"{{localdate}}\",\n \"invoice_date\": \"{{ymd-date}}\",\n \"order_number\": \"XH0002\",\n \"vipmember_info\": {{vip_id01}},\n \"car\": {{car_id01}},\n \"corp_vip\": null,\n \"salesman\": {{agent_id01}},\n \"sales_amount\": \"{{sales_amount02}}\",\n \"account\": {{account_id01}},\n \"style\": 0,\n \"corp_vip_style\":null,\n \"carcategory__name\":\"{{carcategory_name01}}\",\n \"description\": null,\n \"month\":\"02\",\n \"sales_order_item\": [\n {\n \"id\": {{sales_order_item02}},\n \"num\": 1,\n \"price\": {{sales_order_price02}},\n \"rate\": 100,\n \"storehouse_id\": \"{{storehouse_id01}}\"\n }\n ],\n \"settle_details\": [\n \t{\n \t\t\"style\":0,\n \t\t\"arrival_amount\":{{sales_amount02}}\n \t}],\n \"car_name\":\"{{vip_carname01}}\"\n}" }, "url": { "raw": "{{url}}/api/invoicing/salesorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorder", "" ] } }, "response": [] }, { "name": "get_salesorder", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorder", "" ] } }, "response": [] }, { "name": "get_carpurchasestatistics_first", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/carpurchasestatistics/?invoice_date=2018-11-19&type=first", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "carpurchasestatistics", "" ], "query": [ { "key": "invoice_date", "value": "2018-11-19" }, { "key": "type", "value": "first" } ] } }, "response": [] }, { "name": "get_carpurchasestatistics_second", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/carpurchasestatistics/?invoice_date=2018-11-19&type=second", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "carpurchasestatistics", "" ], "query": [ { "key": "invoice_date", "value": "2018-11-19" }, { "key": "type", "value": "second" } ] } }, "response": [] }, { "name": "get_carpurchasestatistics_third", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/carpurchasestatistics/?invoice_date=2018-11-19&type=third", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "carpurchasestatistics", "" ], "query": [ { "key": "invoice_date", "value": "2018-11-19" }, { "key": "type", "value": "third" } ] } }, "response": [] }, { "name": "get_repairserviceorderproductsitemview", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"recipient_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"recipient_productid01\", jsonData.results[0].car_products);", " ", " postman.setEnvironmentVariable(\"recipient_amount01\", jsonData.results[0].amount);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderproductsitemview/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderproductsitemview", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "post_receivematerialsorder", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"invoice_date\": \"{{ymd-date}}\",\r\n\t\"note\": null,\r\n\t\"repair_service_order\": null,\r\n\t\"recipient_id\": {{recipient_id01}},\r\n\t\"repair_service_order_id\": null,\r\n\t\"items\": [{\r\n\t\t\"car_products_id\": {{recipient_productid01}},\r\n\t\t\"amount\": {{recipient_amount01}}\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/invoicing/receivematerialsorder/", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "receivematerialsorder", "" ] } }, "response": [] }, { "name": "get_receivematerialsorderitem", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/receivematerialsorderitem/?start_date=2018-11-01&end_date=2018-11-19", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "receivematerialsorderitem", "" ], "query": [ { "key": "start_date", "value": "2018-11-01" }, { "key": "end_date", "value": "2018-11-19" } ] } }, "response": [] }, { "name": "get_salesreport_first", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2018-11-1&end_date=2018-11-30", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesreport", "" ], "query": [ { "key": "type", "value": "first" }, { "key": "begin_date", "value": "2018-11-1" }, { "key": "end_date", "value": "2018-11-30" } ] } }, "response": [] }, { "name": "get_salesreport_second", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2018-11-1&end_date=2018-11-30", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesreport", "" ], "query": [ { "key": "type", "value": "first" }, { "key": "begin_date", "value": "2018-11-1" }, { "key": "end_date", "value": "2018-11-30" } ] } }, "response": [] }, { "name": "get_salesreport_third", "event": [ { "listen": "test", "script": { "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2018-11-1&end_date=2018-11-30", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesreport", "" ], "query": [ { "key": "type", "value": "first" }, { "key": "begin_date", "value": "2018-11-1" }, { "key": "end_date", "value": "2018-11-30" } ] } }, "response": [] } ] }, { "name": "report", "item": [ { "name": "get_businessreport_daily", "event": [ { "listen": "test", "script": { "id": "22237023-0555-47ed-891b-25b4a9f44785", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/businessreport/?day=11&year=2018&month=11", "host": [ "{{url}}" ], "path": [ "api", "business", "businessreport", "" ], "query": [ { "key": "day", "value": "11" }, { "key": "year", "value": "2018" }, { "key": "month", "value": "11" } ] } }, "response": [] }, { "name": "get_businessreport_month", "event": [ { "listen": "test", "script": { "id": "6bdbe4b7-547d-4b81-9671-57b04aab9ce9", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/businessreport/?year=2018&month=11", "host": [ "{{url}}" ], "path": [ "api", "business", "businessreport", "" ], "query": [ { "key": "year", "value": "2018" }, { "key": "month", "value": "11" } ] } }, "response": [] }, { "name": "get_revenuereportview_daily", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/revenuereportview/?day=11&year=2018&month=10", "host": [ "{{url}}" ], "path": [ "api", "business", "revenuereportview", "" ], "query": [ { "key": "day", "value": "11" }, { "key": "year", "value": "2018" }, { "key": "month", "value": "10" } ] } }, "response": [] }, { "name": "get_revenuereportview_month", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/businessreport/?year=2018&month=10", "host": [ "{{url}}" ], "path": [ "api", "business", "businessreport", "" ], "query": [ { "key": "year", "value": "2018" }, { "key": "month", "value": "10" } ] } }, "response": [] } ] }, { "name": "booking service", "item": [ { "name": "get_wx_usercar", "event": [ { "listen": "test", "script": { "id": "0fb4791b-a120-485b-b34b-099d36ecdfcb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "postman.setEnvironmentVariable(\"variable_key\", \"variable_value\");" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/usercar/?uid={{wx_uid}}&shop={{shop_id}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "usercar", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" }, { "key": "shop", "value": "{{shop_id}}" } ] } }, "response": [] }, { "name": "post_wx_booking_0", "event": [ { "listen": "test", "script": { "id": "85f16ae6-c356-4b25-ab15-c970c2be0684", "exec": [ "", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"project_category\": 0,\r\n\t\"project_id\": {{beauty_services_id01}}, \r\n\t\"car\": {{car_id01}},\r\n\t\"start_time\": \"{{start_datetime}}\",\r\n\t\"end_time\": \"{{end_datetime}}\",\r\n\t\"vip\": {{vip_id01}}\r\n}\r\n" }, "url": { "raw": "{{url}}/api/wx/booking/", "host": [ "{{url}}" ], "path": [ "api", "wx", "booking", "" ] } }, "response": [] }, { "name": "post_wx_booking_1", "event": [ { "listen": "test", "script": { "id": "352f1f0d-1813-4760-b20a-212df180b5bd", "exec": [ "", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"project_category\": 1,\r\n\t\"project_id\": {{repair_service_id02}},\r\n\t\"car\": {{car_id01}},\r\n\t\"start_time\": \"{{start_datetime}}\",\r\n\t\"end_time\": \"{{end_datetime}}\",\r\n\t\"vip\": {{vip_id01}}\r\n}" }, "url": { "raw": "{{url}}/api/wx/booking/", "host": [ "{{url}}" ], "path": [ "api", "wx", "booking", "" ] } }, "response": [] }, { "name": "post_wx_booking_2", "event": [ { "listen": "test", "script": { "id": "352f1f0d-1813-4760-b20a-212df180b5bd", "exec": [ "", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"project_category\": 0,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"car\": {{car_id01}},\r\n\t\"start_time\": \"{{start_datetime}}\",\r\n\t\"end_time\": \"{{end_datetime}}\",\r\n\t\"vip\": {{vip_id01}}\r\n}" }, "url": { "raw": "{{url}}/api/wx/booking/", "host": [ "{{url}}" ], "path": [ "api", "wx", "booking", "" ] } }, "response": [] }, { "name": "get_wx_booking", "event": [ { "listen": "test", "script": { "id": "352f1f0d-1813-4760-b20a-212df180b5bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/booking/?uid={{wx_uid}}&shop_id={{shop_id}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "booking", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" }, { "key": "shop_id", "value": "{{shop_id}}" } ] } }, "response": [] }, { "name": "get_vipmember_vipmemberappointment_all", "event": [ { "listen": "test", "script": { "id": "3591f847-7577-4fc3-86c6-d76f2f8614c7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"appoint_id01\", jsonData.results[0].id);", " ", "// }" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "shop_id", "value": "{{shop_id}}", "disabled": true } ] } }, "response": [] }, { "name": "get_vipmember_vipmemberappointment_state0", "event": [ { "listen": "test", "script": { "id": "b82ac8d2-c943-4fe9-8a41-bcdcedf7df5d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"appoint_id01\", jsonData.results[0].id);", " ", " postman.setEnvironmentVariable(\"appoint_id02\", jsonData.results[1].id);", " postman.setEnvironmentVariable(\"appoint_id03\", jsonData.results[2].id);", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=0", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "state", "value": "0" } ] } }, "response": [] }, { "name": "get_vipmember_vipmemberappointment_id1", "event": [ { "listen": "test", "script": { "id": "00b682a1-5779-45c1-8ced-d96f3ebf7439", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " ", " postman.setEnvironmentVariable(\"wxappoint_pjname01\", jsonData.project_name);", " postman.setEnvironmentVariable(\"wxappoint_startm01\", jsonData.start_time);", " postman.setEnvironmentVariable(\"wxappoint_endtm01\", jsonData.end_time);", " postman.setEnvironmentVariable(\"wxappoint_pjid01\", jsonData.project_id);", " postman.setEnvironmentVariable(\"wxappoint_pjcategory01\", jsonData.project_category);", " ", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "{{appoint_id01}}", "" ] } }, "response": [] }, { "name": "get_vipmember_vipmemberappointment_id2", "event": [ { "listen": "test", "script": { "id": "00b682a1-5779-45c1-8ced-d96f3ebf7439", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " ", " postman.setEnvironmentVariable(\"wxappoint_pjname02\", jsonData.project_name);", " postman.setEnvironmentVariable(\"wxappoint_startm02\", jsonData.start_time);", " postman.setEnvironmentVariable(\"wxappoint_endtm02\", jsonData.end_time);", " postman.setEnvironmentVariable(\"wxappoint_pjid02\", jsonData.project_id);", " postman.setEnvironmentVariable(\"wxappoint_pjcategory02\", jsonData.project_category);", " ", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id02}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "{{appoint_id02}}", "" ] } }, "response": [] }, { "name": "get_vipmember_vipmemberappointment_id3", "event": [ { "listen": "test", "script": { "id": "00b682a1-5779-45c1-8ced-d96f3ebf7439", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " ", " postman.setEnvironmentVariable(\"wxappoint_pjname03\", jsonData.project_name);", " postman.setEnvironmentVariable(\"wxappoint_startm03\", jsonData.start_time);", " postman.setEnvironmentVariable(\"wxappoint_endtm03\", jsonData.end_time);", " postman.setEnvironmentVariable(\"wxappoint_pjid03\", jsonData.project_id);", " postman.setEnvironmentVariable(\"wxappoint_pjcategory03\", jsonData.project_category);", " ", " ", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id03}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "{{appoint_id03}}", "" ] } }, "response": [] }, { "name": "put_vipmember_vipmemberappointment_id1", "event": [ { "listen": "test", "script": { "id": "3a608cee-22c6-4457-b843-86d28979d496", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"wxappoint_id01\", jsonData.results[0].id);", " ", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{appoint_id01}},\r\n\t\"project_name\": \"{{wxappoint_pjname01}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_phone\": {{vip_phone01}},\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"appointment_time\": \"{{diff_datetime}}\",\r\n\t\"code_no\": \"{{car_code01}}\",\r\n\t\"carcategory_name\": \"{{vip_carname01}}\",\r\n\t\"rem\": null,\r\n\t\"reply\": \"感谢您对本店的大力支持!\",\r\n\t\"state\": 1,\r\n\t\"end_time\": \"{{wxappoint_endtm01}}\",\r\n\t\"start_time\": \"{{wxappoint_startm01}}\",\r\n\t\"project_category\":{{wxappoint_pjcategory01}},\r\n\t\"project_id\": {{wxappoint_pjid01}},\r\n\t\"vip\": {{vip_id01}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "{{appoint_id01}}", "" ] } }, "response": [] }, { "name": "put_vipmember_vipmemberappointment_id2", "event": [ { "listen": "test", "script": { "id": "3a608cee-22c6-4457-b843-86d28979d496", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"wxappoint_id01\", jsonData.results[0].id);", " ", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{appoint_id02}},\r\n\t\"project_name\": \"{{wxappoint_pjname02}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_phone\": {{vip_phone01}},\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"appointment_time\": \"{{diff_datetime}}\",\r\n\t\"code_no\": \"{{car_code01}}\",\r\n\t\"carcategory_name\": \"{{vip_carname01}}\",\r\n\t\"rem\": null,\r\n\t\"reply\": \"\",\r\n\t\"state\": 1,\r\n\t\"end_time\": \"{{wxappoint_endtm02}}\",\r\n\t\"start_time\": \"{{wxappoint_startm02}}\",\r\n\t\"project_category\":{{wxappoint_pjcategory02}},\r\n\t\"project_id\": {{wxappoint_pjid02}},\r\n\t\"vip\": {{vip_id01}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id02}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "{{appoint_id02}}", "" ] } }, "response": [] }, { "name": "put_vipmember_vipmemberappointment_id3", "event": [ { "listen": "test", "script": { "id": "3a608cee-22c6-4457-b843-86d28979d496", "exec": [ "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"wxappoint_id01\", jsonData.results[0].id);", " ", "// }", "", "", "", "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{appoint_id03}},\r\n\t\"project_name\": \"{{wxappoint_pjname03}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_phone\": {{vip_phone01}},\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"appointment_time\": \"{{diff_datetime}}\",\r\n\t\"code_no\": \"{{car_code01}}\",\r\n\t\"carcategory_name\": \"{{vip_carname01}}\",\r\n\t\"rem\": null,\r\n\t\"reply\": \"\",\r\n\t\"state\": 2,\r\n\t\"end_time\": \"{{wxappoint_endtm03}}\",\r\n\t\"start_time\": \"{{wxappoint_startm03}}\",\r\n\t\"project_category\":{{wxappoint_pjcategory03}},\r\n\t\"project_id\": {{wxappoint_pjid03}},\r\n\t\"vip\": {{vip_id01}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id02}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "{{appoint_id02}}", "" ] } }, "response": [] }, { "name": "get_vipmember_vipmemberappointment_state1", "event": [ { "listen": "test", "script": { "id": "8f13e275-7c76-4adc-a6c0-80531d4dd282", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=1", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "state", "value": "1" } ] } }, "response": [] } ] }, { "name": "complaint recommend", "item": [ { "name": "post_wx_usercomplaint", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"complaint_date\": \"{{date}}\",\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"content\": \"服务态度不是很好,让客人独自晾着!\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"state\":0\r\n}" }, "url": { "raw": "{{url}}/api/wx/usercomplaint/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "usercomplaint", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_vipmember_complaintsuggestion_all", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ] } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/?shop_id={{shop_id}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "" ], "query": [ { "key": "shop_id", "value": "{{shop_id}}" } ] } }, "response": [] }, { "name": "get_vipmember_complaintsuggestion_state0", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"complaint_id01\", jsonData.results[0].id);", " ", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/?state=0", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "" ], "query": [ { "key": "state", "value": "0" } ] } }, "response": [] }, { "name": "get_vipmember_complaintsuggestion_id", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " ", "postman.setEnvironmentVariable(\"complaint_date01\", jsonData.complaint_date);", " ", "}", "" ] } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/{{complaint_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "{{complaint_id01}}", "" ] } }, "response": [] }, { "name": "put_vipmember_complaintsuggestion_id", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", " ", " ", "// }" ] } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{complaint_id01}},\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"complaint_date\": \"{{complaint_date01}}\",\r\n\t\"content\": \"服务速度有些慢!\",\r\n\t\"acceptance_date\": \"{{date}}\",\r\n\t\"processing_results\": \"好的,已了解!\",\r\n\t\"state\": 1,\r\n\t\"shop\": {{shop_id}},\r\n\t\"vip\": {{shop_id}},\r\n\t\"str_complaint_date\": \"{{complaint_date01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/{{complaint_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "{{complaint_id01}}", "" ] } }, "response": [] }, { "name": "get_vipmember_complaintsuggestion_state1", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", " ", " ", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/?state=1", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "" ], "query": [ { "key": "state", "value": "1" } ] } }, "response": [] } ] }, { "name": "score", "item": [ { "name": "get_vipmember_vipmemberscore", "event": [ { "listen": "test", "script": { "id": "e6b6fc53-24ca-491e-93fc-2dd222721c1f", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscore/?vip_id={{vip_id01}}&begin_date=2018-10-01&end_date=2018-10-31", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscore", "" ], "query": [ { "key": "vip_id", "value": "{{vip_id01}}" }, { "key": "begin_date", "value": "2018-10-01" }, { "key": "end_date", "value": "2018-10-31" } ] } }, "response": [] }, { "name": "post_basic_integralexchangerule_1", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-10-15\",\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"integral\": 6000,\r\n\t\"rem\": null,\r\n\t\"amount\": 1,\r\n\t\"rulevipgradeitem\": [{{grade_id01}},{{grade_id02}},{{grade_id03}}],\r\n\t\"project_name\": \"{{repair_service_name01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ] } }, "response": [] }, { "name": "post_basic_integralexchangerule_2", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-10-15\",\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id03}},\r\n\t\"integral\": 5000,\r\n\t\"rem\": null,\r\n\t\"amount\": 1,\r\n\t\"rulevipgradeitem\": [{{grade_id01}},{{grade_id02}}],\r\n\t\"project_name\": \"{{beauty_services_name03}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ] } }, "response": [] }, { "name": "post_basic_integralexchangerule_3", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-10-15\",\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"integral\": 7000,\r\n\t\"rem\": null,\r\n\t\"amount\": 1,\r\n\t\"rulevipgradeitem\": [{{grade_id01}},{{grade_id02}}],\r\n\t\"project_name\": \"{{car_products_name02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ] } }, "response": [] }, { "name": "get_basic_integralexchangerule_all", "event": [ { "listen": "test", "script": { "id": "0aa54add-8543-48cc-87d3-b303c36d1452", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ] } }, "response": [] }, { "name": "get_basic_integralexchangerule_type2", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "if (tests[\"Status code is 200\"]) {", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"scorerule_beauty2_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"scorerule_beauty2_pjid01\", jsonData.results[0].project_id);", " postman.setEnvironmentVariable(\"scorerule_beauty2_pjtype01\", jsonData.results[0].project_type);", " postman.setEnvironmentVariable(\"scorerule_beauty2_price01\", jsonData.results[0].project_extra.price);", " postman.setEnvironmentVariable(\"scorerule_beauty2_name01\", jsonData.results[0].project_extra.name);", " postman.setEnvironmentVariable(\"scorerule_beauty2_integral01\", jsonData.results[0].integral);", " ", "}" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/?project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ], "query": [ { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "get_basic_integralexchangerule_type2 _id", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// if (tests[\"Status code is 200\"]) {", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"scorerule_beauty2_id01\", jsonData.results[0].id);", " ", "// }" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/{{scorerule_beauty2_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "{{scorerule_beauty2_id01}}", "" ] } }, "response": [] }, { "name": "post_basic_integralexchange", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"date\": \"{{ymd-date}}\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"integral_exchange_rule\": {{scorerule_beauty2_id01}},\r\n\t\"note\": null,\r\n\t\"project_type\": {{scorerule_beauty2_pjtype01}},\r\n\t\"project_id\":{{scorerule_beauty2_pjid01}},\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{scorerule_beauty2_name01}}\",\r\n\t\"integral\": {{scorerule_beauty2_integral01}},\r\n\t\"price\": {{scorerule_beauty2_price01}}\r\n}" }, "url": { "raw": "{{url}}/api/basic/integralexchange/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ] } }, "response": [] }, { "name": "get_basic_integralexchange_all", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ] } }, "response": [] }, { "name": "get_basic_integralexchange_type1", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=1", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "1" } ] } }, "response": [] }, { "name": "get_basic_integralexchange_type2", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "get_basic_integralexchange_type3", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=3", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "3" } ] } }, "response": [] }, { "name": "get_vipmember_vipmemberscoreadjust", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscoreadjust", "" ] } }, "response": [] }, { "name": "get_vipmember_vipmemberscoreadjust_phone", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/?vip_phone_number={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscoreadjust", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone01}}" } ] } }, "response": [] } ] }, { "name": "companycustomer", "item": [ { "name": "post_vipmember_corpvipmember_01", "event": [ { "listen": "test", "script": { "id": "c113fd53-5a4a-4c55-b9e9-108038c6856e", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"date\": \"{{ymd-date}}\",\r\n\t\"client_code\": null,\r\n\t\"name\": \"测试企业会员\",\r\n\t\"abbreviation\": \"\",\r\n\t\"credit_code\": null,\r\n\t\"pic\": \"测试008\",\r\n\t\"pic_telephone\": \"18159859111\",\r\n\t\"contacts\": null,\r\n\t\"contacts_telephone\": null,\r\n\t\"style\": 0,\r\n\t\"settlement_day\": null,\r\n\t\"address\": \"厦门思明区软件园二期观日路33号楼\",\r\n\t\"note\": null,\r\n\t\"cars\": [{\r\n\t\t\"id\": null,\r\n\t\t\"code\": \"B85H93\",\r\n\t\t\"areashort\": {\r\n\t\t\t\"id\":{{areashort_id13}},\r\n\t\t\t\"name\": \"{{areashort_name13}}\"\r\n\t\t},\r\n\t\t\"carcategory\": [{{carcategory_category02}}],\r\n\t\t\"engine_no\": \"D018\",\r\n\t\t\"carbody_no\": \"C018\",\r\n\t\t\"on_date\": \"2018-11-18\",\r\n\t\t\"body_color\": \"白色\",\r\n\t\t\"description\": null,\r\n\t\t\"carcategory_name\": \"{{carcategory_name02}}\"\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/corpvipmember/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpvipmember", "" ] } }, "response": [] }, { "name": "get_vipmember_corpvipmember", "event": [ { "listen": "test", "script": { "id": "e9663df9-fb68-4968-9dc0-e3a609578270", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"corp_id01\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"corp_telephone01\", jsonData.results[0].pic_telephone);", " postman.setEnvironmentVariable(\"corp_name01\", jsonData.results[0].name);", " ", " // postman.setEnvironmentVariable(\"corp_id02\", jsonData.results[1].id);", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpvipmember/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpvipmember", "" ] } }, "response": [] }, { "name": "delete_vipmember_corpvipmember", "event": [ { "listen": "test", "script": { "id": "b53535d0-7545-474b-b432-bf63c052f310", "exec": [ "", "tests[\"Status code is 204\"] = responseCode.code === 204 || responseCode.code === 404;" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpvipmember/{{corp_id02}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpvipmember", "{{corp_id02}}", "" ] } }, "response": [] }, { "name": "get_vipshort_list", "event": [ { "listen": "test", "script": { "id": "e9663df9-fb68-4968-9dc0-e3a609578270", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipshortlist/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipshortlist", "" ] } }, "response": [] } ] }, { "name": "companycustomer_serviceprice", "item": [ { "name": "post_vipmember_corpbeautypreferential_1", "event": [ { "listen": "test", "script": { "id": "65ab330d-ca6b-4b3a-8149-73e93bc77acb", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"corp_vip\": {{corp_id01}},\r\n\t\"category\": 1,\r\n\t\"project\": {{beauty_item01}},\r\n\t\"rate\": \"99\",\r\n\t\"note\": null,\r\n\t\"project_type\": {{beauty_category02}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/corpbeautypreferential/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpbeautypreferential", "" ] } }, "response": [] }, { "name": "get_vipmember_corpbeautypreferential", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpbeautypreferential/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpbeautypreferential", "" ] } }, "response": [] }, { "name": "post_vipmember_corprepairpreferential_2", "event": [ { "listen": "test", "script": { "id": "200bd24b-0ef5-4ba4-9745-b1a8399bed7e", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"corp_vip\": {{corp_id01}},\r\n\t\"category\": 2,\r\n\t\"project\":{{repair_item02}},\r\n\t\"rate\": \"99\",\r\n\t\"note\": null,\r\n\t\"project_type\": {{repaire_category02}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/corprepairpreferential/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corprepairpreferential", "" ] } }, "response": [] }, { "name": "get_vipmember_corprepairpreferential", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corprepairpreferential/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corprepairpreferential", "" ] } }, "response": [] }, { "name": "post_vipmember_corpcarproductspreferential_3", "event": [ { "listen": "test", "script": { "id": "4b72528f-2f31-4c09-ae93-49f0a9ade3d6", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"corp_vip\":{{corp_id01}},\r\n\t\"category\": 3,\r\n\t\"project\": {{carproduct_item01}},\r\n\t\"rate\": \"99\",\r\n\t\"note\": null,\r\n\t\"project_type\": {{carproduct_category01}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/corpcarproductspreferential/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpcarproductspreferential", "" ] } }, "response": [] }, { "name": "get_vipmember_corpcarproductspreferential", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpcarproductspreferential/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpcarproductspreferential", "" ] } }, "response": [] } ] }, { "name": "companycustomer_beautyservice", "item": [ { "name": "get_corpvipmember_info", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"corp_car_id01\", jsonData.cars[0].id);", " postman.setEnvironmentVariable(\"corp_code01\", jsonData.cars[0].code);", " // // postman.setEnvironmentVariable(\"corp_id01\", jsonData.id);", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpvipmember/{{corp_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpvipmember", "{{corp_id01}}", "" ] } }, "response": [] }, { "name": "get1_business_viprepairworkpriceadminview_service1", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"service01__all_corp\", JSON.stringify(jsonData));", " postman.setEnvironmentVariable(\"service01__rate_corp\",jsonData.rate);", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/vipservicepriceview/?car_id={{corp_car_id01}}&service_id={{beauty_services_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "vipservicepriceview", "" ], "query": [ { "key": "car_id", "value": "{{corp_car_id01}}" }, { "key": "service_id", "value": "{{beauty_services_id01}}" } ] } }, "response": [] }, { "name": "post_corpvipmember_beautyseivice_cash0", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"crop_car_id01\", jsonData.cars[0].id);", "// postman.setEnvironmentVariable(\"crop_code01\", jsonData.cars[0].code);", "// postman.setEnvironmentVariable(\"crop_id01\", jsonData.id);", " " ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "cc1b96bb-f0c2-43d6-88f8-0c91bd316ec0", "exec": [ "", "var service01__all_corp = JSON.parse(postman.getEnvironmentVariable(\"service01__all_corp\"));", "", "var service_amount_corp = parseFloat(service01__all_corp.service_project__price) * parseFloat(service01__all_corp.rate);", "", " postman.setEnvironmentVariable(\"service_amount_corp\",service_amount_corp);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\": null,\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{corp_car_id01}},\r\n\t\"beauty_services_id\": {{beauty_services_id01}},\r\n\t\"service_amount\": {{service_amount_corp}},\r\n\t\"rate\": {{service01__rate_corp}},\r\n\t\"account_id\": {{account_id01}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{service_amount_corp}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"use_date\": \"{{ymd-date}}\",\r\n\t\"areashort_id\": {{areashort_id13}},\r\n\t\"car_code\": \"{{corp_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] } ] }, { "name": "companycustomer_repairservice", "item": [ { "name": "get_viprepairworkpriceadminview_repair1", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair01_item01_all\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{corp_car_id01}}&item_id={{repair_service_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "viprepairworkpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{corp_car_id01}}" }, { "key": "item_id", "value": "{{repair_service_id01}}" } ] } }, "response": [] }, { "name": "get_viprepairworkpriceadminview_repair2", "event": [ { "listen": "test", "script": { "id": "5adf531f-e857-49f3-aad6-cc1928519ac7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repair02_item02_all\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{corp_car_id01}}&item_id={{repair_service_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "viprepairworkpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{corp_car_id01}}" }, { "key": "item_id", "value": "{{repair_service_id02}}" } ] } }, "response": [] }, { "name": "get_product03_discount _corp", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product03_corp\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{corp_car_id01}}&product_id={{car_products_id03}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{corp_car_id01}}" }, { "key": "product_id", "value": "{{car_products_id03}}" } ] } }, "response": [] }, { "name": "get_product04_discount _corp", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product04_corp\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{corp_car_id01}}&product_id={{car_products_id04}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{corp_car_id01}}" }, { "key": "product_id", "value": "{{car_products_id04}}" } ] } }, "response": [] }, { "name": "get_product05_discount _corp", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", "", " postman.setEnvironmentVariable(\"product05_corp\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{corp_car_id01}}&product_id={{car_products_id05}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairproductpriceadminview", "" ], "query": [ { "key": "car_id", "value": "{{corp_car_id01}}" }, { "key": "product_id", "value": "{{car_products_id05}}" } ] } }, "response": [] }, { "name": "post1_repairserviceorderadminview_corp", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "var repair01_item01_all = JSON.parse(postman.getEnvironmentVariable(\"repair01_item01_all\"));", "var repair02_item02_all = JSON.parse(postman.getEnvironmentVariable(\"repair02_item02_all\"));", "", "var repair_service_id01 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id01\"));", "var repair_service_id02 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id02\"));", "", "var product03_corp = JSON.parse(postman.getEnvironmentVariable(\"product03_corp\"));", "var product04_corp = JSON.parse(postman.getEnvironmentVariable(\"product04_corp\"));", "var product05_corp = JSON.parse(postman.getEnvironmentVariable(\"product05_corp\"));", "var data01 ={", "\t\t\"car_products_id\": product03_corp.car_products_id,", "\t\t\"amount\": 2,", "\t\t\"rate\": product03_corp.rate,", "\t\t\"price\": product03_corp.price,", "\t\t\"discounted_price\": product03_corp.discounted_price", "\t}", "\t", "var data02 ={", "\t\t\"car_products_id\": product04_corp.car_products_id,", "\t\t\"amount\": 2,", "\t\t\"rate\": product04_corp.rate,", "\t\t\"price\": product04_corp.price,", "\t\t\"discounted_price\": product04_corp.discounted_price", "\t}", "\t", "var data03 ={", "\t\t\"car_products_id\": product05_corp.car_products_id,", "\t\t\"amount\": 1,", "\t\t\"rate\": product05_corp.rate,", "\t\t\"price\":product05_corp.price,", "\t\t\"discounted_price\": product05_corp.discounted_price", "\t}", "\t", "var data04 ={", "\t\t\"repair_service_id\": repair_service_id01,", "\t\t\"standard_fee\": repair01_item01_all.standard_fee,", "\t\t\"rate\": repair01_item01_all.rate,", "\t\t\"discounted_price\": repair01_item01_all.discounted_price,", "\t\t\"id\": null", "\t}", "\t", "var data05 ={", "\t\t\"repair_service_id\": repair_service_id02,", "\t\t\"standard_fee\": repair02_item02_all.standard_fee,", "\t\t\"rate\": repair02_item02_all.rate,", "\t\t\"discounted_price\": repair02_item02_all.discounted_price,", "\t\t\"id\": null", "\t}", "\t", "\tvar discounted_price01 = parseFloat(data01.discounted_price) * parseFloat(data01.amount);", "\tvar discounted_price02 = parseFloat(data02.discounted_price) * parseFloat(data02.amount);", "\tvar discounted_price03 = parseFloat(data03.discounted_price) * parseFloat(data03.amount);", " ", " var sumproduct01_corp = parseFloat(discounted_price01)+ parseFloat(discounted_price02)+ parseFloat(discounted_price03);", " ", " ", " ", " postman.setEnvironmentVariable(\"r_products01_corp\", JSON.stringify(data01));", " postman.setEnvironmentVariable(\"r_products02_corp\", JSON.stringify(data02));", " postman.setEnvironmentVariable(\"r_products03_corp\", JSON.stringify(data03));", " ", " postman.setEnvironmentVariable(\"r_items01_corp\",JSON.stringify(data04));", " postman.setEnvironmentVariable(\"r_items02_corp\",JSON.stringify(data05));", " ", " var work_price01_corp = parseFloat(data05.discounted_price) + parseFloat(data04.discounted_price);", "\t", "", " postman.setEnvironmentVariable(\"sumproduct01_corp\",sumproduct01_corp);", " postman.setEnvironmentVariable(\"work_price01_corp\",work_price01_corp);", " " ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});", "// var jsonData = JSON.parse(responseBody);", "", "// postman.setEnvironmentVariable(\"product05_corp\", JSON.stringify(jsonData));" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"car_id\": {{corp_car_id01}},\r\n\t\"vip_id\": null,\r\n\t\"corp_vip_id\": {{corp_id01}},\r\n\t\"description\": null,\r\n\t\"other_price\": 180,\r\n\t\"work_price\": \"{{work_price01_corp}}\",\r\n\t\"products_price\": \"{{sumproduct01_corp}}\",\r\n\t\"r_items\": [{{r_items01_corp}}, {{r_items02_corp}}],\r\n\t\"r_products\": [{{r_products01_corp}}, {{r_products02_corp}},{{r_products03_corp}}],\r\n\t\"areashort_id\": {{areashort_id13}},\r\n\t\"car_code\": \"{{corp_code01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ] } }, "response": [] }, { "name": "get2_business_repairserviceorderadminview_corp_status0", "event": [ { "listen": "test", "script": { "id": "2ff84aa8-e38d-4112-8b4c-76cfd58e8225", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repairservice_id01_corp\", jsonData.results[0].id);", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?car_code={{corp_code01}}&status=0&areashort={{areashort_id13}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "car_code", "value": "{{corp_code01}}" }, { "key": "status", "value": "0" }, { "key": "areashort", "value": "{{areashort_id13}}" }, { "key": "start_date", "value": "{{ymd-date}}", "disabled": true }, { "key": "end_date", "value": "{{ymd-date}}", "disabled": true } ] } }, "response": [] }, { "name": "get3_business_repairserviceorderadminview_corp_total01", "event": [ { "listen": "test", "script": { "id": "c2510d87-6487-4795-96a1-cc47807ff00a", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", "", "postman.setEnvironmentVariable(\"total01_corp\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));", " ", "", "", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id01_corp}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "{{repairservice_id01_corp}}", "" ] } }, "response": [] }, { "name": "post4_business_repaircardetail_corp", "event": [ { "listen": "test", "script": { "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": null,\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"remaining_oil\": 60,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"王明敏\",\r\n\t\"sender_phone\": \"{{corp_telephone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01_corp}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ] } }, "response": [] }, { "name": "get5_repaircardetail_id_prepay", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", " ", "}); ", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"prepay_01_corp\", jsonData.prepayments);", " ", " postman.setEnvironmentVariable(\"servicedetail_id01_corp\", jsonData.id);", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id01_corp}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01_corp}}" } ] } }, "response": [] }, { "name": "put6_business_repaircardetail", "event": [ { "listen": "test", "script": { "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\": {{servicedetail_id01}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\":null,\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": {{prepay_01}},\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"pickup\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id01_corp}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "{{servicedetail_id01_corp}}", "" ] } }, "response": [] }, { "name": "get7_business_repairdispatcheddetail", "event": [ { "listen": "test", "script": { "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", " var jsonData = JSON.parse(responseBody);", " postman.setEnvironmentVariable(\"service_id01_corp\", jsonData[0].id);", " postman.setEnvironmentVariable(\"service_id02_corp\", jsonData[1].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01_corp}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01_corp}}" } ] } }, "response": [] }, { "name": "patch8_business_repaircardetail_1", "event": [ { "listen": "test", "script": { "id": "b95712d7-e235-4845-8153-f20f16fa468f", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "\t[{\r\n\t\t\"id\": {{service_id01_corp}},\r\n\t\t\"agent_id\": null,\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": null,\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 100\r\n\t\t}]\r\n\t},\r\n\r\n\t{\r\n\t\t\"id\": {{service_id02_corp}},\r\n\t\t\"agent_id\": null,\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": null,\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 50\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\t\"rate\": 50\r\n\t\t}]\r\n\t}\r\n\r\n]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01_corp}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01_corp}}" } ] } }, "response": [] }, { "name": "patch9_business_repaircardetail_2", "event": [ { "listen": "test", "script": { "id": "85c54901-138c-4d96-8847-96f711a0ac63", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "\t[{\r\n\t\t\"id\": {{service_id01_corp}},\r\n\t\t\"agent_id\": {{agent_id02}},\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 100\r\n\t\t}]\r\n\t},\r\n\t{\r\n\t\t\"id\": {{service_id02_corp}},\r\n\t\t\"agent_id\": {{agent_id01}},\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 50\r\n\t\t},{\r\n\t\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\t\"rate\": 50\r\n\t\t}]\r\n\t}\r\n]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01_corp}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id01_corp}}" } ] } }, "response": [] }, { "name": "post10_repairsettleaccountsadminview_cash", "event": [ { "listen": "prerequest", "script": { "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98", "exec": [ "var sum01_corp = JSON.parse(postman.getEnvironmentVariable(\"total01_corp\"));", "", "var prepay_01_corp = JSON.parse(postman.getEnvironmentVariable(\"prepay_01_corp\"));", "", "sum01_corp-=prepay_01_corp;", "", "var sum01_corp = sum01_corp.toFixed(2)", "", " postman.setEnvironmentVariable(\"sum01_corp\",sum01_corp);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "39c85b02-c440-4926-8463-03b49483e3c8", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"service_order\": \"{{repairservice_id01_corp}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": {{sum01_corp}},\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id03}},\r\n\t\"payee\": {{agent_id03}},\r\n\t\"settles\": [],\r\n\t\"localdate\": \"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairsettleaccountsadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairsettleaccountsadminview", "" ] } }, "response": [] } ] }, { "name": "return to profit", "item": [ { "name": "post_vipmember_corpbackprofit", "event": [ { "listen": "test", "script": { "id": "07b6ba9a-03f9-4374-8fdf-f5d32e979153", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"corp_vip\":{{corp_id01}},\r\n\t\"cycle\": 1,\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"note\": null,\r\n\t\"back_profit_item\": [{\r\n\t\t\"money\": \"10000\",\r\n\t\t\"back_ratio\": \"5\"\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/corpbackprofit/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpbackprofit", "" ] } }, "response": [] }, { "name": "get_vipmember_corpbackprofit", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpbackprofit/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpbackprofit", "" ] } }, "response": [] } ] }, { "name": "performance report", "item": [ { "name": "get_staff_staffperformancereport_saledauly", "event": [ { "listen": "test", "script": { "id": "26e93d8f-1936-41c7-a406-a465ce5336c7", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=salesDaily&monthday=2018-10-16", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "salesDaily" }, { "key": "monthday", "value": "2018-10-16" } ] } }, "response": [] }, { "name": "get_staff_staffperformancereport_salemonth", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=salesMonthlyReport&monthday=2018-10-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "salesMonthlyReport" }, { "key": "monthday", "value": "2018-10-01" } ] } }, "response": [] }, { "name": "get_staff_staffperformancereport_sgjxdaily", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionDaily&monthday=2018-10-16", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "constructionDaily" }, { "key": "monthday", "value": "2018-10-16" } ] } }, "response": [] }, { "name": "get_staff_staffperformancereport_sgjxmonth", "event": [ { "listen": "test", "script": { "type": "text/javascript", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ] } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionMonthlyReport&monthday=2018-10-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "constructionMonthlyReport" }, { "key": "monthday", "value": "2018-10-01" } ] } }, "response": [] } ] }, { "name": "payment received", "item": [ { "name": "get_receipt", "event": [ { "listen": "test", "script": { "id": "0f8df3cf-2258-4e3c-83bc-d61ec08f84fb", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/receipt/?start_date=2018-10-01&end_date=2018-10-17", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "receipt", "" ], "query": [ { "key": "start_date", "value": "2018-10-01" }, { "key": "end_date", "value": "2018-10-17" } ] } }, "response": [] }, { "name": "get_payorde", "event": [ { "listen": "test", "script": { "id": "8f8be309-0d16-4f07-87d2-34a7147c3303", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/payorder/?start_date=2018-10-01&end_date=2018-10-17", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "payorder", "" ], "query": [ { "key": "start_date", "value": "2018-10-01" }, { "key": "end_date", "value": "2018-10-17" } ] } }, "response": [] }, { "name": "post_accounttransfer", "event": [ { "listen": "test", "script": { "id": "bdaa8314-5b3e-4471-b212-5576c603de0f", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"code\": \"\",\r\n\t\"summary\": \"账户资金周转\",\r\n\t\"account_out\": {{account_id01}},\r\n\t\"account_in\": {{account_id02}},\r\n\t\"amount\": \"50\",\r\n\t\"description\": \"\",\r\n\t\"agent\":{{agent_id01}}\r\n}" }, "url": { "raw": "{{url}}/api/receivepayment/accounttransfer/", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "accounttransfer", "" ] } }, "response": [] }, { "name": "get_accounttransfer", "event": [ { "listen": "test", "script": { "id": "2eb9d86f-6df8-4404-a3ed-db59a5f6c61e", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/accounttransfer/?start_date=2018-11-01&end_date=2018-11-30", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "accounttransfer", "" ], "query": [ { "key": "start_date", "value": "2018-11-01" }, { "key": "end_date", "value": "2018-11-30" } ] } }, "response": [] }, { "name": "get_vendorpayable", "event": [ { "listen": "test", "script": { "id": "2eb9d86f-6df8-4404-a3ed-db59a5f6c61e", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/vendorpayable/", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "vendorpayable", "" ] } }, "response": [] }, { "name": "get_customerreceivable", "event": [ { "listen": "test", "script": { "id": "2eb9d86f-6df8-4404-a3ed-db59a5f6c61e", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/customerreceivable/", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "customerreceivable", "" ] } }, "response": [] } ] }, { "name": "groups", "item": [ { "name": "post_groupprojectsetting_1", "event": [ { "listen": "test", "script": { "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"date\": \"{{date}}\",\r\n\t\"end_date\": \"2018-12-25\",\r\n\t\"standard_price\":{{repair_service_price01}},\r\n\t\"exchange_end_date\": \"2020-01-01\",\r\n\t\"image_uri\": null,\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{repair_service_name01}}\",\r\n\t\"rulelist\": [{\r\n\t\t\"number\": 2,\r\n\t\t\"price\": 140\r\n\t}, {\r\n\t\t\"number\": 3,\r\n\t\t\"price\": 120\r\n\t}, {\r\n\t\t\"number\": 4,\r\n\t\t\"price\": 100\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ] } }, "response": [] }, { "name": "post_groupprojectsetting_2", "event": [ { "listen": "test", "script": { "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"date\": \"{{date}}\",\r\n\t\"end_date\": \"2018-12-25\",\r\n\t\"standard_price\":{{beauty_services_price02}},\r\n\t\"exchange_end_date\": \"2020-01-01\",\r\n\t\"image_uri\": null,\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{beauty_services_name01}}\",\r\n\t\"rulelist\": [{\r\n\t\t\"number\": 2,\r\n\t\t\"price\": 270\r\n\t}, {\r\n\t\t\"number\": 3,\r\n\t\t\"price\": 250\r\n\t}, {\r\n\t\t\"number\": 4,\r\n\t\t\"price\": 220\r\n\t}, {\r\n\t\t\"number\": 5,\r\n\t\t\"price\": 200\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ] } }, "response": [] }, { "name": "post_groupprojectsetting_3", "event": [ { "listen": "test", "script": { "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"date\": \"{{date}}\",\r\n\t\"end_date\": \"2018-12-25\",\r\n\t\"standard_price\":{{car_products_price02}},\r\n\t\"exchange_end_date\": \"2020-01-01\",\r\n\t\"image_uri\": null,\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{car_products_name02}}\",\r\n\t\"rulelist\": [{\r\n\t\t\"number\": 2,\r\n\t\t\"price\": 340\r\n\t}, {\r\n\t\t\"number\": 3,\r\n\t\t\"price\": 320\r\n\t}, {\r\n\t\t\"number\": 4,\r\n\t\t\"price\": 300\r\n\t}, {\r\n\t\t\"number\": 5,\r\n\t\t\"price\": 280\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ] } }, "response": [] }, { "name": "get_groupprojectsetting", "event": [ { "listen": "test", "script": { "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ] } }, "response": [] } ] }, { "name": "wechat", "item": [ { "name": "get_shop_info", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/usershop/?uid={{wx_uid}}&type=info", "host": [ "{{url}}" ], "path": [ "api", "wx", "usershop", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" }, { "key": "type", "value": "info" } ] } }, "response": [] }, { "name": "get_wx_promotioned", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/promotional/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "promotional", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_vip", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/vip/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "vip", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_beautyserviceorder", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/beautyserviceorder/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "beautyserviceorder", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_repairserviceorder", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/repairserviceorder/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "repairserviceorder", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_vipmemberrecharge", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/vipmemberrecharge/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "vipmemberrecharge", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_salesorder", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/salesorder/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "salesorder", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_booking", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/booking/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "booking", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_usercomplaint", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/usercomplaint/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "usercomplaint", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_beautypackage", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/beautypackage/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "beautypackage", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] }, { "name": "get_wx_rechargepackage", "event": [ { "listen": "test", "script": { "id": "405f0aab-aae7-44b6-8aea-1211997f16bd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/wx/rechargepackage/?uid={{wx_uid}}", "host": [ "{{url}}" ], "path": [ "api", "wx", "rechargepackage", "" ], "query": [ { "key": "uid", "value": "{{wx_uid}}" } ] } }, "response": [] } ] }, { "name": "Login_app", "item": [ { "name": "post-user-login", "event": [ { "listen": "test", "script": { "id": "27f2367c-e8bc-4778-b65a-a22158b45345", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// var jsonData = JSON.parse(responseBody);", "// postman.setEnvironmentVariable(\"rongtoken\", jsonData.result.token);", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"password\": \"18159853333\",\r\n\t\"phone\": \"18159853333\"\r\n}" }, "url": { "raw": "{{imurl}}/user/login/", "host": [ "{{imurl}}" ], "path": [ "user", "login", "" ] } }, "response": [] } ] }, { "name": "vipmenber_app", "item": [ { "name": "get_vipmember _info", "event": [ { "listen": "test", "script": { "id": "1de4aa1d-7544-46b5-a9ec-7d61ca177eea", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "// var jsonData = JSON.parse(responseBody);", "// postman.setEnvironmentVariable(\"test-vipmember-id-01\",jsonData.results[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipconsumption/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipconsumption", "" ] } }, "response": [] }, { "name": "get_vipinfo_searchdetail_phone", "event": [ { "listen": "test", "script": { "id": "c3054623-964d-488c-9249-012cc614da62", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/?search={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ], "query": [ { "key": "search", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "get_vipinfo _searchmix_phone", "event": [ { "listen": "test", "script": { "id": "b267ec68-7ad3-40a5-843d-d0ed6c58387d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/?search=18159", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ], "query": [ { "key": "search", "value": "18159" } ] } }, "response": [] }, { "name": "get_consump_all", "event": [ { "listen": "test", "script": { "id": "678bd3ff-7c62-4855-b987-729ccc6752a6", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipconsumption/{{vip_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipconsumption", "{{vip_id01}}", "" ] } }, "response": [] }, { "name": "get_consump_cararea_carcode", "event": [ { "listen": "test", "script": { "id": "9565f68f-f0d1-4dd8-9750-a77c18dcf03b", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipconsumption/?car_area={{areashortid01}}&car_code={{car_code01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipconsumption", "" ], "query": [ { "key": "car_area", "value": "{{areashortid01}}" }, { "key": "car_code", "value": "{{car_code01}}" } ] } }, "response": [] }, { "name": "get_vipinfo_searchmix_carcode", "event": [ { "listen": "test", "script": { "id": "ff6eb7c8-d53e-4469-a7e6-c1c56dfbfcb1", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipconsumption/?car_area=15&car_code=B893", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipconsumption", "" ], "query": [ { "key": "car_area", "value": "15" }, { "key": "car_code", "value": "B893" } ] } }, "response": [] }, { "name": "post_vipmember", "event": [ { "listen": "test", "script": { "id": "0de4921b-0190-41c8-8848-9943035ac532", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;", "", "// var jsonData = JSON.parse(responseBody);", "// postman.setEnvironmentVariable(\"test-vipmember-id\",jsonData.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"phone_number\": \"18159859399\",\r\n\t\"name\": \"梁思成\",\r\n\t\"sex\": \"1\",\r\n\t\"number\": \"18159859399\",\r\n\t\"register_date\": \"{{ymd-date}}\",\r\n\t\"grade\": \"\",\r\n\t\"birthday\": \"1990-10-17\",\r\n\t\"agent\": \"\",\r\n\t\"rem\": \"\"\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ] } }, "response": [] }, { "name": "get_vipmember_all", "event": [ { "listen": "test", "script": { "id": "0de4921b-0190-41c8-8848-9943035ac532", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ] } }, "response": [] }, { "name": "get_vipinfo _searchmix", "event": [ { "listen": "test", "script": { "id": "b267ec68-7ad3-40a5-843d-d0ed6c58387d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"vip_id02\", jsonData.results[0].id);", " postman.setEnvironmentVariable(\"vip_phone02\", jsonData.results[0].phone_number);", " ", " postman.setEnvironmentVariable(\"car_id02\", jsonData.results[0].car[0].id);", " ", " postman.setEnvironmentVariable(\"car_carcategoryid02\", jsonData.results[0].car[0].carcategory);", " ", " postman.setEnvironmentVariable(\"car_code02\", jsonData.results[0].car[0].code);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/?search=1815985939", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ], "query": [ { "key": "search", "value": "1815985939" } ] } }, "response": [] }, { "name": "post_basic_vipcar", "event": [ { "listen": "test", "script": { "id": "2af62f75-5103-4b1f-96ec-be6a477e37fa", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"code\": \"B9876H8\",\r\n\t\"vip\": {{vip_id02}},\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"carcategoryid\": \"3222\",\r\n\t\"carbrand\": \"巴博斯 CLS级\",\r\n\t\"carmodel\": \"3222\",\r\n\t\"carModel\": [{\r\n\t\t\"i\": 3222,\r\n\t\t\"n\": \"2012款 35GC\",\r\n\t\t\"p\": null,\r\n\t\t\"route\": \"carcategory\",\r\n\t\t\"reqParams\": null,\r\n\t\t\"restangularized\": true,\r\n\t\t\"fromServer\": true,\r\n\t\t\"parentResource\": {\r\n\t\t\t\"route\": \"basic\",\r\n\t\t\t\"parentResource\": null\r\n\t\t},\r\n\t\t\"restangularCollection\": false\r\n\t}]\r\n}]" }, "url": { "raw": "{{url}}/api/basic/car/", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ] } }, "response": [] }, { "name": "get_basic_vipcar", "event": [ { "listen": "test", "script": { "id": "2af62f75-5103-4b1f-96ec-be6a477e37fa", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/car/", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ] } }, "response": [] }, { "name": "post-add vipmemberinterest", "event": [ { "listen": "test", "script": { "id": "a2a587af-42ce-4760-b465-111c5dc8924d", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"interest_template\":{{interest_id02}}\r\n}, {\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"interest_template\": {{interest_id03}}\r\n}]" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinterest/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinterest", "" ] } }, "response": [] }, { "name": "get_vipinfo_detail_vip02", "event": [ { "listen": "test", "script": { "id": "0903da08-273d-4764-b7bb-0c10ee05af72", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"vip_name02\", jsonData.results[0].name);", " ", " ", " // postman.setEnvironmentVariable(\"car_code02\", jsonData.results[0].car[0].code);", " ", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/?search={{vip_phone02}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ], "query": [ { "key": "search", "value": "{{vip_phone02}}" } ] } }, "response": [] } ] }, { "name": "valuecard_app", "item": [ { "name": "post_valuecard", "event": [ { "listen": "test", "script": { "id": "bdcf88af-0ec1-4640-98db-8b048ea708dc", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"rem\": \"\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-11-08\",\r\n\t\"state\": 1,\r\n\t\"number\": null,\r\n\t\"amount_recharge\": \"500.00\",\r\n\t\"amount_available\": \"500.00\",\r\n\t\"real_payment\": \"500.00\",\r\n\t\"shop\": null,\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"agent\": {{agent_id02}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"vip_name\": \"{{vip_name02}}\",\r\n\t\"account\": {{account_id02}},\r\n\t\"validity_period\": 6\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ] } }, "response": [] }, { "name": "get_valuecard_vip02", "event": [ { "listen": "test", "script": { "id": "5decff5f-3952-45e0-8d8e-fa5b718741d2", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"card_id02\", jsonData.results[0].id);", "", "postman.setEnvironmentVariable(\"card_number02\", jsonData.results[0].number);", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?phone_number=18159859399", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "phone_number", "value": "18159859399" } ] } }, "response": [] }, { "name": "post_vipmemberrecharge_define", "event": [ { "listen": "test", "script": { "id": "b6b0c653-a0a1-4e42-bc3c-5cab5f7bd102", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"number\": \"\",\r\n\t\"validity_period\": 2,\r\n\t\"bill_date\": \"{{ymd-date}}\",\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"agent\": {{agent_id02}},\r\n\t\"account\": {{account_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"vip_name\": \"{{vip_name02}}\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"sv_card\": {{card_id02}},\r\n\t\"sv_card_number\": \"{{card_number02}}\",\r\n\t\"amount_recharge\": \"1000.00\",\r\n\t\"real_payment\": \"850.00\"\r\n\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrecharge/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrecharge", "" ] } }, "response": [] }, { "name": "post_vipmemberrecharge", "event": [ { "listen": "test", "script": { "id": "b6b0c653-a0a1-4e42-bc3c-5cab5f7bd102", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"number\": \"\",\r\n\t\"validity_period\": {{package_validity01}},\r\n\t\"bill_date\": \"{{ymd-date}}\",\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"agent\": {{agent_id02}},\r\n\t\"account\": {{account_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"vip_name\": \"{{vip_number02}}\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"sv_card\": {{card_id02}},\r\n\t\"sv_card_number\": \"{{card_number02}}\",\r\n\t\"recharge_package\": {{package_id01}},\r\n\t\"amount_recharge\": \"{{package_amout01}}\",\r\n\t\"real_payment\": \"{{package_realpay01}}\",\r\n\t\"shop\": null\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrecharge/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrecharge", "" ] } }, "response": [] }, { "name": "get_valuecard", "event": [ { "listen": "test", "script": { "id": "b909bdd8-3327-4d36-b0d1-fd8a44266cd3", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ] } }, "response": [] }, { "name": "get_valuecard_begindate", "event": [ { "listen": "test", "script": { "id": "b909bdd8-3327-4d36-b0d1-fd8a44266cd3", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?begin_date=2018-11-08", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "begin_date", "value": "2018-11-08" } ] } }, "response": [] }, { "name": "get_valuecard_carcode", "event": [ { "listen": "test", "script": { "id": "be1341fb-ff3c-4e5d-a6aa-1bfb5c19fc9a", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecardrecord/?car_code={{car_code02}}&car_area={{areashort_id13}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecardrecord", "" ], "query": [ { "key": "car_code", "value": "{{car_code02}}" }, { "key": "car_area", "value": "{{areashort_id13}}" } ] } }, "response": [] }, { "name": "get_valuecard_phone", "event": [ { "listen": "test", "script": { "id": "8c50cfd2-bf61-4083-9d79-f418e383a755", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?phone_number={{vip_phone02}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "phone_number", "value": "{{vip_phone02}}" } ] } }, "response": [] }, { "name": "get_valuecard_phone_mix", "event": [ { "listen": "test", "script": { "id": "96e7b413-9657-4952-a79d-0c1525045ee6", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200; " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfo/?pagination=true", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfo", "" ], "query": [ { "key": "pagination", "value": "true" } ] } }, "response": [] } ] }, { "name": "packagecard_app", "item": [ { "name": "post_beautypackages", "event": [ { "listen": "test", "script": { "id": "abd4efe2-4c7d-439e-933e-8e84f7512780", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"release_date\": \"{{ymd-date}}\",\r\n\t\"available\": true,\r\n\t\"name\": \"普通便利套餐\",\r\n\t\"price\": \"200\",\r\n\t\"deadline\": \"2\",\r\n\t\"service_details\": [{\r\n\t\t\"amount\": 3,\r\n\t\t\"beauty_services_id\": {{beauty_item01}},\r\n\t\t\"unit\": 0,\r\n\t\t\"price\": \"{{beauty_prcie01}}\",\r\n\t\t\"name\": \"{{beauty_name01}}\"\r\n\t},\t{\r\n\t\t\"amount\": 2,\r\n\t\t\"beauty_services_id\": {{beauty_item02}},\r\n\t\t\"unit\": 0,\r\n\t\t\"price\": \"{{beauty_prcie02}}\",\r\n\t\t\"name\": \"{{beauty_name02}}\"\r\n\t\t\r\n\t}]\r\n}" }, "url": { "raw": "{{url}}/api/basic/beautypackages/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautypackages", "" ] } }, "response": [] }, { "name": "get_beautypackages", "event": [ { "listen": "test", "script": { "id": "abd4efe2-4c7d-439e-933e-8e84f7512780", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"bp_name02\", jsonData.results[0].name);", "postman.setEnvironmentVariable(\"bp_id02\", jsonData.results[0].id);", "postman.setEnvironmentVariable(\"bp_price02\", jsonData.results[0].price);" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautypackages/", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautypackages", "" ] } }, "response": [] }, { "name": "post_packagecard", "event": [ { "listen": "test", "script": { "id": "1ffc17df-30a8-46fb-bc59-3ae2afb53e4c", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"state\": 1,\r\n\t\"account\": {{account_id03}},\r\n\t\"opencard_amount\": \"{{bp_price02}}\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"agent\": \"{{agent_id01}}\",\r\n\t\"package\": {{bp_id02}},\r\n\t\"package_name\": \"{{bp_name02}}\",\r\n\t\"car\": {{car_id02}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": {{vip_phone02}},\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"vip_name\": \"{{vip_name02}}\",\r\n\t\"carcategory_id\": {{car_carcategoryid02}}\r\n}" }, "url": { "raw": "{{url}}/api/vipmember/packagecard/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecard", "" ] } }, "response": [] }, { "name": "get_packagecard", "event": [ { "listen": "test", "script": { "id": "39a73112-3871-43f3-b1d6-a085dfc5a50d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"package_card01\", jsonData.results[0].id);", "// postman.setEnvironmentVariable(\"test-packagecard-car-code\", jsonData.results[0].car_code);", "// postman.setEnvironmentVariable(\"test-packagecard-id\", jsonData.results[0].id);", "// postman.setEnvironmentVariable(\"test-begin-date\", jsonData.results[1].begin_date);", "// postman.setEnvironmentVariable(\"test-car-code\", jsonData.results[0].car_code);", "// postman.setEnvironmentVariable(\"test-vipmember-name\", jsonData.results[0].vipmember_name);", "// postman.setEnvironmentVariable(\"test-end-date\", jsonData.results[0].end_date);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecard/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecard", "" ] } }, "response": [] }, { "name": "post_vipmemberserviceitem", "event": [ { "listen": "test", "script": { "id": "1ffc17df-30a8-46fb-bc59-3ae2afb53e4c", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"number\": 3,\r\n\t\"already_used\": 0,\r\n\t\"service_item\":{{beauty_item01}},\r\n\t\"package_card\": {{package_card01}},\r\n\t\"unused\": 1\r\n}, {\r\n\t\"number\": 2,\r\n\t\"already_used\": 0,\r\n\t\"service_item\": {{beauty_item02}},\r\n\t\"package_card\": {{package_card01}},\r\n\t\"unused\": 2\r\n}]\r\n\r\n" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberserviceitem/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberserviceitem", "" ] } }, "response": [] }, { "name": "get_packagecard_begindate", "event": [ { "listen": "test", "script": { "id": "312800b8-6721-44b1-8c83-5f1dab92759b", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecard/?begin_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecard", "" ], "query": [ { "key": "begin_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get-_packagecard_phone_mix", "event": [ { "listen": "test", "script": { "id": "ea729b76-f9c7-4a3a-8189-fa31f0652f95", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecard/?vipmember_info__phone_number__contains= 18159859", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecard", "" ], "query": [ { "key": "vipmember_info__phone_number__contains", "value": " 18159859" } ] } }, "response": [] }, { "name": "get_packagecard_phone", "event": [ { "listen": "test", "script": { "id": "7f9eca5a-9fbb-4738-9ddf-6a68928809c5", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecard/?vipmember_info__phone_number__contains={{vip_phone02}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecard", "" ], "query": [ { "key": "vipmember_info__phone_number__contains", "value": "{{vip_phone02}}" } ] } }, "response": [] }, { "name": "get_ packagecard_carcode", "event": [ { "listen": "test", "script": { "id": "59af2ddd-0f77-41cb-8bff-c1743bf24dc2", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecard/?car_code={{car_code02}}&areashort_id={{areashort_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecard", "" ], "query": [ { "key": "car_code", "value": "{{car_code02}}" }, { "key": "areashort_id", "value": "{{areashort_id01}}" } ] } }, "response": [] } ] }, { "name": "beautyservice_app", "item": [ { "name": "post_beautyserviceorderadmin_cash0", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"account_id\":{{account_id03}},\r\n\t\"agent_id\": null,\r\n\t\"areashort_id\":{{areashort_id01}},\r\n\t\"beauty_services_id\":{{beauty_services_id01}},\r\n\t\"car_id\":{{car_id02}},\r\n\t\"car_code\":\"{{car_code02}}\",\r\n\t\"corp_vip_id\": null,\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": \"100.00\"\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"rate\": \"100\",\r\n\t\"service_amount\": \"{{beauty_services_price01}}\",\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\":{{beauty_services_price01}}\r\n\t}],\r\n\t\r\n\t\"vip_id\": {{vip_id02}}\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_redemptionvoucher_sendvoucher", "event": [ { "listen": "test", "script": { "id": "35050668-0c4f-4b8b-a594-ad4ad22294b0", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"D19001\",\r\n\t\"vip\": {{vip_id02}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{beauty_services_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ] } }, "response": [] }, { "name": "get_redemptionvoucher_voucher", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", " var jsonData = JSON.parse(responseBody);", " ", "pm.environment.set(\"voucher_pjid02\", jsonData.results[0].project_extra.id);", "pm.environment.set(\"voucher_name02\", jsonData.results[0].project_extra.name);", "pm.environment.set(\"voucher_price02\", jsonData.results[0].project_extra.price);", "", "pm.environment.set(\"voucher_id02\", jsonData.results[0].id);", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?status=0&vip_phone_number={{vip_phone02}}&project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "status", "value": "0" }, { "key": "vip_phone_number", "value": "{{vip_phone02}}" }, { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_4voucher", "event": [ { "listen": "test", "script": { "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485", "exec": [ "//tests[\"Status code is 200\"] = responseCode.code === 200;", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,202]);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id02}},\r\n\t\"beauty_services_id\":{{voucher_pjid02}},\r\n\t\"service_amount\":{{voucher_price02}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{voucher_id02}},\r\n\t\t\"style\": 4,\r\n\t\t\"arrival_amount\":{{voucher_price02}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"use_date\":\"{{ymd-date}}\",\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_coupon", "event": [ { "listen": "test", "script": { "id": "55ad9a7a-87bf-4b00-97be-5334c78c9606", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"H002\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{beauty_services_price02}}\",\r\n\t\"money\": \"30\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"project_name\": \"{{beauty_services_name02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/coupon/", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ] } }, "response": [] }, { "name": "get_coupon", "event": [ { "listen": "test", "script": { "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", "pm.environment.set(\"coupon_pjid02\", jsonData.results[0].project_id);", "//pm.environment.set(\"coupon_name01\", jsonData.results[0].project_extra.name);", "//pm.environment.set(\"coupon_price01\", jsonData.results[0].project_extra.price);", "pm.environment.set(\"coupon_fullmoney02\", jsonData.results[0].full_money);", "pm.environment.set(\"coupon_money02\", jsonData.results[0].money);", "", "pm.environment.set(\"coupon_id02\", jsonData.results[0].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone02}}&status=0&project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "{{vip_phone02}}" }, { "key": "status", "value": "0" }, { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "post_beautyserviceorderadmin_3coupon_0cash", "event": [ { "listen": "test", "script": { "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;", "", "// var final = postman.getEnvironmentVariable(\"coupon_fullmoney01\");", "", "// var coupon_money01 = JSON.float(postman.getEnvironmentVariable(\"coupon_money01\"));", "", "// final-=coupon_money01;", "", "// postman.setEnvironmentVariable(\"final\",\"final\");" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "039daf69-c376-4f44-8c7c-9e5063c0aea0", "exec": [ "var full02 = JSON.parse(postman.getEnvironmentVariable(\"coupon_fullmoney02\"));", "", "var coupon_money02 = JSON.parse(postman.getEnvironmentVariable(\"coupon_money02\"));", "", "full02-=coupon_money02 ;", "", " postman.setEnvironmentVariable(\"full02\",full02);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id02}},\r\n\t\"beauty_services_id\":{{coupon_pjid02}},\r\n\t\"service_amount\": {{coupon_fullmoney02}}, \r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id03}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{coupon_id02}},\r\n\t\t\"style\": 3,\r\n\t\t\"arrival_amount\":{{coupon_money02}}\r\n\t}, {\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{full}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"use_date\":\"{{ymd-date}}\",\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_2valuecard", "event": [ { "listen": "test", "script": { "id": "d15e393d-9712-4689-b97c-8c6f6487dbb1", "exec": [ "//tests[\"Status code is 200\"] = responseCode.code === 200;", "", "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id02}},\r\n\t\"beauty_services_id\":{{beauty_services_id03}},\r\n\t\"service_amount\": {{beauty_services_price03}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": {{card_id02}},\r\n\t\t\"style\": 2,\r\n\t\t\"arrival_amount\": {{beauty_services_price03}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "get_business_beautyordersettles_stordcard", "event": [ { "listen": "test", "script": { "id": "b295d37d-70e5-4e63-b20b-7430b5c7d6da", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "", "", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"pk_card02\", JSON.stringify(jsonData.package_card[0]));", " //postman.setEnvironmentVariable(\"store_card02\", JSON.stringify(jsonData.store_card));", " //postman.setEnvironmentVariable(\"card_id02\", jsonData.store_card.id);", " // postman.setEnvironmentVariable(\"store_coupons02\", JSON.stringify(jsonData.coupons[0]));", " ", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyordersettles/?car_id={{car_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyordersettles", "" ], "query": [ { "key": "car_id", "value": "{{car_id02}}" } ] } }, "response": [] }, { "name": "get_beautyserviceorderadmin", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/?start_date={{ymd-date}}&end_date={{ymd-date}}&areashort={{areashort_id01}}", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ], "query": [ { "key": "start_date", "value": "{{ymd-date}}" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "areashort", "value": "{{areashort_id01}}" } ] } }, "response": [] }, { "name": "01get_vipmemberappointment_state1_cate0", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"bs_id01\",jsonData.results[0].project_id);", "", "postman.setEnvironmentVariable(\"yues_id01\",jsonData.results[0].id);", "", " postman.setEnvironmentVariable(\"yues01\", JSON.stringify(jsonData.results[0]));" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=1&project_category=0 ", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "state", "value": "1" }, { "key": "project_category", "value": "0 " } ] } }, "response": [] }, { "name": "02get_vipmemberappointment_price", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"bs_price01\",jsonData.price);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/beautyservices/{{bs_id01}}/?id={{bs_id01}}&vip_id={{vip_id01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "beautyservices", "{{bs_id01}}", "" ], "query": [ { "key": "id", "value": "{{bs_id01}}" }, { "key": "vip_id", "value": "{{vip_id01}}" } ] } }, "response": [] }, { "name": "03post_beautyserviceorderadmin_valuecard2", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", " ", "});", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"yues_sdate01\",jsonData.service_date);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"account_id\":{{account_id02}},\r\n\t\"agent_id\": null,\r\n\t\"areashort_id\":{{areashortid01}},\r\n\t\"beauty_services_id\":{{bs_id01}},\r\n\t\"car_id\":{{car_id01}},\r\n\t\"car_code\":\"{{car_code01}}\",\r\n\t\"corp_vip_id\": null,\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": \"100.00\"\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"rate\": \"100\",\r\n\t\"service_amount\": \"{{bs_price01}}\",\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"settles\": [{\r\n\t\t\"style_id\": {{card_id01}},\r\n\t\t\"style\":2,\r\n\t\t\"arrival_amount\":{{bs_price01}}\r\n\t}],\r\n\t\r\n\t\"vip_id\": {{vip_id01}}\r\n\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "04put_appointment_state3", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "82732ba5-0270-478b-a1fc-cffca69e7ef9", "exec": [ "var yues01 = JSON.parse(postman.getEnvironmentVariable(\"yues01\"));", "", "Date.prototype.Format = function (fmt) { //author: meizz ", " var o = {", " \"M+\": this.getMonth() + 1, //月份 ", " \"d+\": this.getDate(), //日 ", " \"h+\": this.getHours(), //小时 ", " \"m+\": this.getMinutes(), //分 ", " \"s+\": this.getSeconds(), //秒 ", " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ", " \"S\": this.getMilliseconds() //毫秒 ", " };", " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));", " for (var k in o)", " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));", " return fmt;", "}", "", "Date.prototype.addHours = function(h) { ", " this.setTime(this.getTime() + (h*60*60*1000)); ", " return this; ", "};", "var date01 = new Date(postman.getEnvironmentVariable(\"yues_sdate01\")).Format(\"yyyy-MM-dd hh:mm\");", "", "", "", "var data = {", "\t", " \t\"id\":yues01.id,", " \t\"vip\": yues01.vip,", " \t\"car\": yues01.car,", " \t\"start_time\": yues01.start_time,", " \t\"end_time\": yues01.end_time,", " \t\"project_category\": yues01.project_category,", " \t\"project_id\": yues01.project_id,", " \t\"rem\": yues01.rem,", " \t\"reply\": yues01.reply,", " \t\"state\": 3,", " \t\"shop\": yues01.shop,", " \t\"complete_date\": date01,", " \t\"new_projects\": []", "}", "", " postman.setEnvironmentVariable(\"state01\",JSON.stringify(data));" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{{state01}}\n\t\n" }, "url": { "raw": "{{url}}/api/vipmember/appointment/{{yues_id01}}/", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "appointment", "{{yues_id01}}", "" ] } }, "response": [] } ] }, { "name": "repairservice_app", "item": [ { "name": "get_repairserviceorderadminview_areashort_status5", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?end_date={{ymd-date}}&areashort={{areashort_id01}}&status=5", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "areashort", "value": "{{areashort_id01}}" }, { "key": "status", "value": "5" } ] } }, "response": [] }, { "name": "get_repairserviceorderadminview_status2", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?status=2", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "status", "value": "2" } ] } }, "response": [] }, { "name": "get_repairserviceorderadminview_vipinfo", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipshortlist/?car_code={{car_code02}}&area_id={{areashort_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipshortlist", "" ], "query": [ { "key": "car_code", "value": "{{car_code02}}" }, { "key": "area_id", "value": "{{areashort_id01}}" } ] } }, "response": [] }, { "name": "get_repairserviceorderadminview_carid", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairrecord/?car_id={{car_id02}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairrecord", "" ], "query": [ { "key": "car_id", "value": "{{car_id02}}" } ] } }, "response": [] }, { "name": "patch_repairserviceorderadminview", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repairservice_id03\", jsonData.id);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"agent_id\": \"{{agent_id01}}\",\r\n\t\"car_id\": {{car_id02}},\r\n\t\"vip_id\": {{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": null,\r\n\t\"other_price\": 200,\r\n\t\"work_price\": \"{{work_price02}}\",\r\n\t\"products_price\": \"{{products_price02}}\",\r\n\t\"r_items\": [{{ritems02}}],\r\n\t\"r_products\": [{{r_products03}},{{r_products04}}],\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"car_detail\": {\r\n\t\t\"driven_distance\": 0,\r\n\t\t\"remaining_oil\": 30,\r\n\t\t\"note\": \" \",\r\n\t\t\"car_damage\": \" \"\r\n\t},\r\n\t\"settles\": {\r\n\t\t\"cash_payment\": {{products_price02}},\r\n\t\t\"items\": []\r\n\t},\r\n\t\"receipt_date_str\": \"{{localdate}}\"\r\n}\r\n\r\n" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ] } }, "response": [] }, { "name": "get_repaircardetail", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"servicedetail_id03\", jsonData.id);", " postman.setEnvironmentVariable(\"prepay_03\", jsonData.prepayments);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id03}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id03}}" } ] } }, "response": [] }, { "name": "put_repaircardetail", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);", "// postman.setEnvironmentVariable(\"prepay_02\", jsonData.prepayments);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\":{{servicedetail_id03}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\": \"\",\r\n\t\"remaining_oil\": \"80\",\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 50,\r\n\t\"sender\": \"{{vip_name02}}\",\r\n\t\"sender_phone\": \"{{vip_phone02}}\",\r\n\t\"driven_distance\": \"5000\",\r\n\t\"car_damage\": \"门板异常;车顶异常\",\r\n\t\"note\": \"尽快完成\",\r\n\t\"guarantee\": null,\r\n\t\"service_order\":{{repairservice_id03}},\r\n\t\"pickup\": null,\r\n\t\"payee\": null,\r\n\t\"account\": null,\r\n\t\"receipt_date_str\": \"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id03}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "{{servicedetail_id03}}", "" ] } }, "response": [] }, { "name": "get_business_repairdispatcheddetail", "event": [ { "listen": "test", "script": { "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"service_id03\", jsonData[0].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id03}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id03}}" } ] } }, "response": [] }, { "name": "patch_repairserviceorderadminview", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t \"id\":{{service_id03}},\r\n\t \"status\":0,\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id03}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id03}}" } ] } }, "response": [] }, { "name": "patch_repairserviceorderadminview", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"id\": {{service_id03}},\r\n\t\"status\": 0\r\n}]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id03}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id03}}" } ] } }, "response": [] }, { "name": "get_repairserviceorderadminview", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", "", "postman.setEnvironmentVariable(\"total03\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));", "", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"vip_name02\", jsonData.results[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id03}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "{{repairservice_id03}}", "" ] } }, "response": [] }, { "name": "post_repairsettleaccountsadminview_cash0", "event": [ { "listen": "prerequest", "script": { "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98", "exec": [ "var sum03 = JSON.parse(postman.getEnvironmentVariable(\"total03\"));", "", "var prepay_03 = JSON.parse(postman.getEnvironmentVariable(\"prepay_03\"));", "", "sum03-=prepay_03;", "", " postman.setEnvironmentVariable(\"sum03\",sum03);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "39c85b02-c440-4926-8463-03b49483e3c8", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"service_order\": \"{{repairservice_id03}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": \"0.00\",\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id02}},\r\n\t\"payee\": {{agent_id02}},\r\n\t\"settles\": [\r\n\t\t{\r\n\t\t\"style\": 0,\r\n\t\t\"style_id\": {{card_id02}},\r\n\t\t\"arrival_amount\": {{sum03}}\r\n\t}\r\n\t\t],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"receipt_date_str\":\"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairsettleaccountsadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairsettleaccountsadminview", "" ] } }, "response": [] }, { "name": "patch3_repairserviceorderadminview_1", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "var repair_item01_all= JSON.parse(postman.getEnvironmentVariable(\"repair_item01_all\"));\r", "var repair_item02_all= JSON.parse(postman.getEnvironmentVariable(\"repair_item02_all\"));\r", "\r", "var repair_service_id01 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id01\"));\r", "var repair_service_id02 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id02\"));\r", "\r", " var data09={\r", "\t\t\"repair_service_id\": repair_service_id01,\r", "\t\t\"standard_fee\": repair_item01_all.standard_fee,\r", "\t\t\"rate\": repair_item01_all.rate,\r", "\t\t\"discounted_price\": repair_item01_all.discounted_price,\r", "\t\t\"id\": null\r", "\t}\r", "\t\r", "\tvar data10={\r", "\t\t\"repair_service_id\": repair_service_id02,\r", "\t\t\"standard_fee\": repair_item02_all.standard_fee,\r", "\t\t\"rate\": repair_item02_all.rate,\r", "\t\t\"discounted_price\": repair_item02_all.discounted_price,\r", "\t\t\"id\": null\r", "\t}\r", "\tpostman.setEnvironmentVariable(\"ritems09\", JSON.stringify(data09));\r", "\tpostman.setEnvironmentVariable(\"ritems10\", JSON.stringify(data10));\r", "\t\r", "\tvar work_price_all = parseFloat(data09.discounted_price) + parseFloat(data10.discounted_price);\r", "\tpostman.setEnvironmentVariable(\"work_price_all\", work_price_all);\r", "\r", "var product05 = JSON.parse(postman.getEnvironmentVariable(\"product05\"));\r", "var product02 = JSON.parse(postman.getEnvironmentVariable(\"product02\")); \r", "var product03 = JSON.parse(postman.getEnvironmentVariable(\"product03\"));\r", "var product04 = JSON.parse(postman.getEnvironmentVariable(\"product04\"));\r", "var data11 ={\r", "\t\t\"car_products_id\": product05.car_products_id,\r", "\t\t\"amount\":1,\r", "\t\t\"rate\": product05.rate,\r", "\t\t\"price\": product05.price,\r", "\t\t\"discounted_price\":0\r", " \r", "}\r", "var data12 ={\r", "\t\"car_products_id\": product02.car_products_id,\r", "\t\"amount\":1,\r", "\t\"rate\": product02.rate,\r", "\t\"price\": product02.price,\r", "\t\"discounted_price\": 0\r", "\t}\r", "\tvar data13 ={\r", "\t\"car_products_id\": product03.car_products_id,\r", "\t\"amount\":1,\r", "\t\"rate\": product03.rate,\r", "\t\"price\": product03.price,\r", "\t\"discounted_price\": 0\r", "\t}\r", "\tvar data14 ={\r", "\t\"car_products_id\": product04.car_products_id,\r", "\t\"amount\":2,\r", "\t\"rate\": product04.rate,\r", "\t\"price\": product04.price,\r", "\t\"discounted_price\": 0\r", "\t}\r", "\r", "var discounted_price11= parseFloat(data11.price) * parseFloat(data11.rate) * parseFloat(data11.amount) /100;\r", " data11.discounted_price = discounted_price11;\r", "postman.setEnvironmentVariable(\"r_products11\", JSON.stringify(data11));\r", "\r", "var discounted_price12 = parseFloat(data11.price) * parseFloat(data11.rate) * parseFloat(data11.amount)/100;\r", "data12.discounted_price = discounted_price12;\r", "postman.setEnvironmentVariable(\"r_products12\", JSON.stringify(data11));\r", "\r", "var discounted_price13 = parseFloat(data13.price) * parseFloat(data13.rate) * parseFloat(data13.amount)/100;\r", "data13.discounted_price = discounted_price13;\r", "postman.setEnvironmentVariable(\"r_products13\", JSON.stringify(data13));\r", "\r", "var discounted_price14 = parseFloat(data14.price) * parseFloat(data14.rate) * parseFloat(data14.amount)/100;\r", "data14.discounted_price = discounted_price14;\r", "postman.setEnvironmentVariable(\"r_products14\", JSON.stringify(data14));\r", " \r", "var total_price = parseFloat(discounted_price11)+parseFloat(discounted_price12)+parseFloat(discounted_price13)+parseFloat(discounted_price14);\r", "\r", "\r", "postman.setEnvironmentVariable(\"products_price01\", total_price );\r", "\r", "\r", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"repairservice_id04\", jsonData.id);" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id02}},\r\n\t\"vip_id\": {{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": null,\r\n\t\"other_price\": 100,\r\n\t\"work_price\": \"{{work_price_all}}\",\r\n\t\"products_price\": \"{{products_price01}}\",\r\n\t\"r_items\": [{{ritems09}},{{ritems10}} ],\r\n\t\"r_products\": [{{r_products11}}, \r\n\t{{r_products12}}, {{r_products13}},{{r_products14}}],\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"car_detail\": {\r\n\t\t\"driven_distance\": 0,\r\n\t\t\"remaining_oil\": 30,\r\n\t\t\"note\": \" \",\r\n\t\t\"car_damage\": \" \"\r\n\t},\r\n\t\"settles\": {\r\n\t\t\"cash_payment\": {{products_price01}},\r\n\t\t\"items\": []\r\n\t}\r\n}\r\n\r\n" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ] } }, "response": [] }, { "name": "get4_repaircardetail_1", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"servicedetail_id04\", jsonData.id);", " postman.setEnvironmentVariable(\"prepay_04\", jsonData.prepayments);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id04}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id04}}" } ] } }, "response": [] }, { "name": "put5_repaircardetail_1", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "", "pm.test(\"Successful POST request\", function () {", " pm.expect(pm.response.code).to.be.oneOf([201,200]);", "});// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);", "// postman.setEnvironmentVariable(\"prepay_02\", jsonData.prepayments);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"id\":{{servicedetail_id04}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\": \"\",\r\n\t\"remaining_oil\": \"60\",\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"{{vip_name02}}\",\r\n\t\"sender_phone\": \"{{vip_phone02}}\",\r\n\t\"driven_distance\": \"10000\",\r\n\t\"car_damage\": \"门板异常\",\r\n\t\"note\": \"客户着急使用,请尽快完成服务\",\r\n\t\"guarantee\": null,\r\n\t\"service_order\":{{repairservice_id04}},\r\n\t\"pickup\": null,\r\n\t\"payee\": null,\r\n\t\"account\": null,\r\n\t\"receipt_date_str\": \"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id04}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repaircardetail", "{{servicedetail_id04}}", "" ] } }, "response": [] }, { "name": "get6_business_repairdispatcheddetail_1", "event": [ { "listen": "test", "script": { "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec", "exec": [ "tests[\"Status code is 200\"] = responseCode.code === 200;", "if(tests[\"Status code is 200\"] ){", " var jsonData = JSON.parse(responseBody);", " ", " postman.setEnvironmentVariable(\"service_id04\", jsonData[0].id);", " postman.setEnvironmentVariable(\"service_id05\", jsonData[0].id);", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id04}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id04}}" } ] } }, "response": [] }, { "name": "patch7_repairserviceorderadminview_1", "event": [ { "listen": "prerequest", "script": { "id": "cb02f258-8e4a-437d-a220-6a22eb415499", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 200;", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "[{\r\n\t \"id\":{{service_id04}},\r\n\t \"status\":0,\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id03}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n},\r\n{\r\n\t \"id\":{{service_id05}},\r\n\t \"status\":0,\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}]\r\n}\r\n]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id04}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id04}}" } ] } }, "response": [] }, { "name": "patch8_repairserviceorderadminview_1", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "1cb94174-e70b-48ee-8703-aff60ac27010", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "[{\r\n\t\"id\": {{service_id04}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id03}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"status\": 0\r\n},\r\n{\r\n\t\"id\": {{service_id05}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"status\": 0\r\n}\r\n]" }, "url": { "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id04}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairdispatcheddetail", "" ], "query": [ { "key": "r_id", "value": "{{repairservice_id04}}" } ] } }, "response": [] }, { "name": "get9_repairserviceorderadminview_1", "event": [ { "listen": "test", "script": { "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", "", "postman.setEnvironmentVariable(\"total04\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));", "", "// var jsonData = JSON.parse(responseBody);", " ", "// postman.setEnvironmentVariable(\"vip_name02\", jsonData.results[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id04}}/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "{{repairservice_id04}}", "" ] } }, "response": [] }, { "name": "post_business_beautyserviceorderadmin_1storecard", "event": [ { "listen": "prerequest", "script": { "id": "eb28acc0-9e08-457b-8110-b1378832e0ce", "exec": [ "var pk_card02 = JSON.parse(postman.getEnvironmentVariable(\"pk_card02\"));", "", " var data = {", " \"style_id\": pk_card02.id,", " \t\t\"style\": 1,", "\t\t\"arrival_amount\": pk_card02.service_item__price", " ", " }", " ", " postman.setEnvironmentVariable(\"settles02\",JSON.stringify(data));", " postman.setEnvironmentVariable(\"service_amount02\",data.arrival_amount);", " postman.setEnvironmentVariable(\"beauty_services_id2\",pk_card02.service_item_id);", " // postman.setEnvironmentVariable(\"beauty_services_id\",pk_card.service_item_id);", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "bcfe68e7-e149-4b44-a11a-1bf5a56523b2", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": " {\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id02}},\r\n\t\"beauty_services_id\": {{beauty_services_id2}},\r\n\t\"service_amount\": {{service_amount02}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id03}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{{settles02}}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ] } }, "response": [] }, { "name": "post10_repairsettleaccountsadminview_0card_1", "event": [ { "listen": "prerequest", "script": { "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98", "exec": [ "var sum04 = JSON.parse(postman.getEnvironmentVariable(\"total04\"));", "", "var prepay_04 = JSON.parse(postman.getEnvironmentVariable(\"prepay_04\"));", "", "sum04-=prepay_04;", "", " postman.setEnvironmentVariable(\"sum04\",sum04);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "39c85b02-c440-4926-8463-03b49483e3c8", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"service_order\": \"{{repairservice_id04}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": \"0.00\",\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id02}},\r\n\t\"payee\": {{agent_id02}},\r\n\t\"settles\": [\r\n\t\t{\r\n\t\t\"style\": 0,\r\n\t\t\"style_id\": {{card_id02}},\r\n\t\t\"arrival_amount\": {{sum04}}\r\n\t}\r\n\t\t],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"receipt_date_str\":\"{{localdate}}\"\r\n}" }, "url": { "raw": "{{url}}/api/business/repairsettleaccountsadminview/", "host": [ "{{url}}" ], "path": [ "api", "business", "repairsettleaccountsadminview", "" ] } }, "response": [] }, { "name": "post_redemptionvoucher_2", "event": [ { "listen": "test", "script": { "id": "ffd13a8d-e5c5-4522-92ec-ac0775c5a9f2", "exec": [ "tests[\"Successful POST request\"] = responseCode.code === 201 ;" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"document_number\": \"D1812001\",\r\n\t\"vip\": {{vip_id02}},\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{repair_service_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\"\r\n}" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ] } }, "response": [] }, { "name": "get_basic_redemptionvoucher_status0_2", "event": [ { "listen": "prerequest", "script": { "id": "15de950d-58eb-4106-b89b-7b217ab928a3", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e", "exec": [ "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", " var jsonData = JSON.parse(responseBody);", " ", "pm.environment.set(\"voucher_pjid03\", jsonData.results[0].project_extra.id);", "pm.environment.set(\"voucher_name03\", jsonData.results[0].project_extra.name);", "pm.environment.set(\"voucher_price03\", jsonData.results[0].project_extra.price);", "", "pm.environment.set(\"voucher_id03\", jsonData.results[0].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?status=0&vip_phone_number={{vip_phone02}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "status", "value": "0" }, { "key": "vip_phone_number", "value": "{{vip_phone02}}" } ] } }, "response": [] }, { "name": "01get_vipmemberappointment_state1_cate1", "event": [ { "listen": "test", "script": { "id": "1c12402b-0774-4210-8586-fd68c1544deb", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=0&project_category=1", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "state", "value": "0" }, { "key": "project_category", "value": "1" } ] } }, "response": [] } ] }, { "name": "report_app", "item": [ { "name": "get_revenuereport_day", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/capital/revenuereport/?day=29&month=11&year=2018", "host": [ "{{url}}" ], "path": [ "api", "capital", "revenuereport", "" ], "query": [ { "key": "day", "value": "29" }, { "key": "month", "value": "11" }, { "key": "year", "value": "2018" } ] } }, "response": [] }, { "name": "get_revenuereport_month", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/capital/revenuereport/?month=11&year=2018", "host": [ "{{url}}" ], "path": [ "api", "capital", "revenuereport", "" ], "query": [ { "key": "month", "value": "11" }, { "key": "year", "value": "2018" } ] } }, "response": [] }, { "name": "get_businessreport_day", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/capital/businessreport/?day=29&month=11&year=2018", "host": [ "{{url}}" ], "path": [ "api", "capital", "businessreport", "" ], "query": [ { "key": "day", "value": "29" }, { "key": "month", "value": "11" }, { "key": "year", "value": "2018" } ] } }, "response": [] }, { "name": "get_businessreport_month", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/capital/businessreport/?month=11&year=2018", "host": [ "{{url}}" ], "path": [ "api", "capital", "businessreport", "" ], "query": [ { "key": "month", "value": "11" }, { "key": "year", "value": "2018" } ] } }, "response": [] }, { "name": "get_staff_salesday", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=salesDaily&monthday=2018-11-29", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "salesDaily" }, { "key": "monthday", "value": "2018-11-29" } ] } }, "response": [] }, { "name": "get_staff_salesmonth", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=salesMonthlyReport&monthday=2018-11-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "salesMonthlyReport" }, { "key": "monthday", "value": "2018-11-01" } ] } }, "response": [] }, { "name": "get_staff_constructionday", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionDaily&monthday=2018-11-29", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "constructionDaily" }, { "key": "monthday", "value": "2018-11-29" } ] } }, "response": [] }, { "name": "get_staff_constructionmonth", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionMonthlyReport&monthday=2018-11-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "constructionMonthlyReport" }, { "key": "monthday", "value": "2018-11-01" } ] } }, "response": [] }, { "name": "get_inventorydetail", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id02}},{{storehouse_id03}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ], "query": [ { "key": "storehouse_ids", "value": "{{storehouse_id02}},{{storehouse_id03}}" } ] } }, "response": [] }, { "name": "get_inventorydetail_search_product", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/?car_products__name__contains={{car_products_name03}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ], "query": [ { "key": "car_products__name__contains", "value": "{{car_products_name03}}" } ] } }, "response": [] }, { "name": "get_inventorydetail_search_storehouse", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ], "query": [ { "key": "storehouse_ids", "value": "{{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}" } ] } }, "response": [] }, { "name": "get_salesordercount_day", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesordercount/?type=2&from_time=2018-11-01&to_time=2018-11-30", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesordercount", "" ], "query": [ { "key": "type", "value": "2" }, { "key": "from_time", "value": "2018-11-01" }, { "key": "to_time", "value": "2018-11-30" } ] } }, "response": [] }, { "name": "get_salesordercount_month", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesordercount/?type=2&from_time=2018-11-29&to_time=2018-11-29", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesordercount", "" ], "query": [ { "key": "type", "value": "2" }, { "key": "from_time", "value": "2018-11-29" }, { "key": "to_time", "value": "2018-11-29" } ] } }, "response": [] }, { "name": "get_salesordercount_day", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseordercount/?type=2&from_time=2018-11-29&to_time=2018-11-29", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseordercount", "" ], "query": [ { "key": "type", "value": "2" }, { "key": "from_time", "value": "2018-11-29" }, { "key": "to_time", "value": "2018-11-29" } ] } }, "response": [] }, { "name": "get_purchaseordercount_month", "event": [ { "listen": "test", "script": { "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseordercount/?type=2&from_time=2018-11-01&to_time=2018-11-30", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseordercount", "" ], "query": [ { "key": "type", "value": "2" }, { "key": "from_time", "value": "2018-11-01" }, { "key": "to_time", "value": "2018-11-30" } ] } }, "response": [] } ] }, { "name": "operatiolmge_search", "item": [ { "name": "get_beauty_areashort", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/?areashort={{areashort_id13}}", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ], "query": [ { "key": "areashort", "value": "{{areashort_id13}}" } ] } }, "response": [] }, { "name": "get_beauty_areashort_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/?areashort={{areashort_id13}}&cellphone=181598523", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ], "query": [ { "key": "areashort", "value": "{{areashort_id13}}" }, { "key": "cellphone", "value": "181598523" } ] } }, "response": [] }, { "name": "get_beauty_dates_areashort_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/beautyserviceorderadmin/?start_date=2019-01-01&end_date={{ymd-date}}&areashort={{areashort_id13}}&cellphone=181598523", "host": [ "{{url}}" ], "path": [ "api", "business", "beautyserviceorderadmin", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "areashort", "value": "{{areashort_id13}}" }, { "key": "cellphone", "value": "181598523" } ] } }, "response": [] }, { "name": "get_repair_areashort", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?areashort={{areashort_id13}}", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "areashort", "value": "{{areashort_id13}}" } ] } }, "response": [] }, { "name": "get_repair_areashort_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?areashort={{areashort_id01}}&cellphone=18159859", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "areashort", "value": "{{areashort_id01}}" }, { "key": "cellphone", "value": "18159859" } ] } }, "response": [] }, { "name": "get_repair_dates_areashort_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/repairserviceorderadminview/?start_date=2019-01-01&end_date={{ymd-date}}&areashort={{areashort_id13}}&cellphone=18159859", "host": [ "{{url}}" ], "path": [ "api", "business", "repairserviceorderadminview", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "areashort", "value": "{{areashort_id13}}" }, { "key": "cellphone", "value": "18159859" } ] } }, "response": [] }, { "name": "get_packagecard_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/?cellphone=18159859", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ], "query": [ { "key": "cellphone", "value": "18159859" } ] } }, "response": [] }, { "name": "get_packagecard_cellphone _dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/packagecardadmin/?cellphone=18159859&start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "packagecardadmin", "" ], "query": [ { "key": "cellphone", "value": "18159859" }, { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_storedvaluecard_cardid", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?stored_card=C18", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "stored_card", "value": "C18" } ] } }, "response": [] }, { "name": "get_storedvaluecard_vipname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/storedvaluecard/?vip_name={{vip_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "storedvaluecard", "" ], "query": [ { "key": "vip_name", "value": "{{vip_name01}}" } ] } }, "response": [] }, { "name": "get_valuecard_recharge_cardnum", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrecharge/?sv_card_number=C18", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrecharge", "" ], "query": [ { "key": "sv_card_number", "value": "C18" } ] } }, "response": [] }, { "name": "get_valuecard_recharge_cardnum_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberrecharge/?sv_card_number=C18&cellphone=18159859", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberrecharge", "" ], "query": [ { "key": "sv_card_number", "value": "C18" }, { "key": "cellphone", "value": "18159859" } ] } }, "response": [] } ] }, { "name": "vipmge_search", "item": [ { "name": "get_vipmember_bangding_yes", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?binding_wechat=1", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "binding_wechat", "value": "1" } ] } }, "response": [] }, { "name": "get_vipmember_bangding_no", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?binding_wechat=0", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "binding_wechat", "value": "0" } ] } }, "response": [] }, { "name": "get_vipmember_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?cellphone=18159859", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "cellphone", "value": "18159859" } ] } }, "response": [] }, { "name": "get_vipmember_carcode", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?car_code=B98", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "car_code", "value": "B98" } ] } }, "response": [] }, { "name": "get_vipmember_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberinfoadmin", "" ], "query": [ { "key": "car_code", "value": "B98", "disabled": true }, { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_vipserviceprice_grade", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberserviceprice/?grade={{grade_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberserviceprice", "" ], "query": [ { "key": "grade", "value": "{{grade_id01}}" } ] } }, "response": [] }, { "name": "get_vipserviceprice_beautyname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberserviceprice/?name={{beauty_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberserviceprice", "" ], "query": [ { "key": "name", "value": "{{beauty_name01}}" } ] } }, "response": [] }, { "name": "get_vipproductprice_grade", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberproductsprice/?grade={{grade_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberproductsprice", "" ], "query": [ { "key": "grade", "value": "{{grade_id01}}" } ] } }, "response": [] }, { "name": "get_vipproductprice_productname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberproductsprice/?name={{product_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberproductsprice", "" ], "query": [ { "key": "name", "value": "{{product_name01}}" } ] } }, "response": [] }, { "name": "get_vipworkprice_grade", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberworkprice/?grade={{grade_id01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberworkprice", "" ], "query": [ { "key": "grade", "value": "{{grade_id01}}" } ] } }, "response": [] }, { "name": "get_vipworkprice_repairservicename", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberworkprice/?name={{repair_service_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberworkprice", "" ], "query": [ { "key": "name", "value": "{{repair_service_name01}}" } ] } }, "response": [] }, { "name": "get_vipscore_vipid_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscore/?vip_id={{vip_id01}}&begin_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscore", "" ], "query": [ { "key": "vip_id", "value": "{{vip_id01}}" }, { "key": "begin_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_integralexchange_repair_type1", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=1", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "1" } ] } }, "response": [] }, { "name": "get_integralexchange_beauty_type2", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "get_integralexchange_beauty2_bname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=2&project_name={{beauty_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "project_name", "value": "{{beauty_name01}}" } ] } }, "response": [] }, { "name": "get_integralexchange_product_type3", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchange/?project_type=3", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchange", "" ], "query": [ { "key": "project_type", "value": "3" } ] } }, "response": [] }, { "name": "get_vipmemberappointment_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?cellphone=181", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "cellphone", "value": "181" } ] } }, "response": [] }, { "name": "get_vipmemberappointment_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberappointment/?start_date=2019-01-01T16:00:00.000Z&end_date={{date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberappointment", "" ], "query": [ { "key": "start_date", "value": "2019-01-01T16:00:00.000Z" }, { "key": "end_date", "value": "{{date}}" } ] } }, "response": [] }, { "name": "get_vipmembersuggestions_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/?cellphone=18159", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "" ], "query": [ { "key": "cellphone", "value": "18159" } ] } }, "response": [] }, { "name": "get_vipmembersuggestions_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/?start_date=2019-01-01T16:00:00.000Z&end_date={{date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "" ], "query": [ { "key": "start_date", "value": "2019-01-01T16:00:00.000Z" }, { "key": "end_date", "value": "{{date}}" } ] } }, "response": [] }, { "name": "get_vipmembersuggestions_dates_cellphone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/complaintsuggestion/?start_date=2019-01-01T16:00:00.000Z&end_date={{date}}&cellphone=1815985", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "complaintsuggestion", "" ], "query": [ { "key": "start_date", "value": "2019-01-01T16:00:00.000Z" }, { "key": "end_date", "value": "{{date}}" }, { "key": "cellphone", "value": "1815985" } ] } }, "response": [] }, { "name": "get_vipmemberscoreadjust_phone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/?vip_phone_number=18159852", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscoreadjust", "" ], "query": [ { "key": "vip_phone_number", "value": "18159852" } ] } }, "response": [] }, { "name": "get_vipmemberscoreadjust_phone_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/?vip_phone_number=18159859&begin_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "vipmemberscoreadjust", "" ], "query": [ { "key": "vip_phone_number", "value": "18159859" }, { "key": "begin_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_integralexchangerule_pname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/?project_name={{beauty_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ], "query": [ { "key": "project_name", "value": "{{beauty_name01}}" } ] } }, "response": [] }, { "name": "get_integralexchangerule_pname_ptype2", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/integralexchangerule/?project_type=2&project_name={{beauty_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "integralexchangerule", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "project_name", "value": "{{beauty_name01}}" } ] } }, "response": [] }, { "name": "get_corpvipmember_corpname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpvipmember/?name__contains={{corp_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpvipmember", "" ], "query": [ { "key": "name__contains", "value": "{{corp_name01}}" } ] } }, "response": [] }, { "name": "get_corpbeautypreferential_corpname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpbeautypreferential/?corp_vip__name__contains={{corp_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpbeautypreferential", "" ], "query": [ { "key": "corp_vip__name__contains", "value": "{{corp_name01}}" } ] } }, "response": [] }, { "name": "get_corprepairpreferential_corpname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corprepairpreferential/?corp_vip__name__contains={{corp_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corprepairpreferential", "" ], "query": [ { "key": "corp_vip__name__contains", "value": "{{corp_name01}}" } ] } }, "response": [] }, { "name": "get_corpcarproductspreferential_corpname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpcarproductspreferential/?corp_vip__name__contains={{corp_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpcarproductspreferential", "" ], "query": [ { "key": "corp_vip__name__contains", "value": "{{corp_name01}}" } ] } }, "response": [] }, { "name": "get_corpbackprofit_corpname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/vipmember/corpbackprofit/?corp_vip__name__contains={{corp_name01}}", "host": [ "{{url}}" ], "path": [ "api", "vipmember", "corpbackprofit", "" ], "query": [ { "key": "corp_vip__name__contains", "value": "{{corp_name01}}" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "89bda3f3-071b-4344-b383-bc018691fc0a", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "44043598-154d-4877-a973-98816b011504", "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "marketmge_search", "item": [ { "name": "get_redemptionvoucher_phone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?vip_phone_number=18159859", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "vip_phone_number", "value": "18159859" } ] } }, "response": [] }, { "name": "get_redemptionvoucher_pname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?project_name={{beauty_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "project_name", "value": "{{beauty_name01}}" } ] } }, "response": [] }, { "name": "get_redemptionvoucher_phone_pname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/redemptionvoucher/?vip_phone_number=1815&project_name={{repair_service_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "redemptionvoucher", "" ], "query": [ { "key": "vip_phone_number", "value": "1815" }, { "key": "project_name", "value": "{{repair_service_name01}}" } ] } }, "response": [] }, { "name": "get_coupon_phone_status0", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?vip_phone_number=181598&status=0", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "vip_phone_number", "value": "181598" }, { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get_coupon_phone_status1", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?status=1&vip_phone_number=181", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "status", "value": "1" }, { "key": "vip_phone_number", "value": "181" } ] } }, "response": [] }, { "name": "get_coupon_ptype1_phone_status0", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?project_type=1&vip_phone_number=181&status=0", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "project_type", "value": "1" }, { "key": "vip_phone_number", "value": "181" }, { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get_coupon_ptype2_phone_status0", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?project_type=2&vip_phone_number=181&status=0", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "vip_phone_number", "value": "181" }, { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get_coupon_ptype3_phone_status0", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/coupon/?project_type=3&vip_phone_number=181&status=0", "host": [ "{{url}}" ], "path": [ "api", "basic", "coupon", "" ], "query": [ { "key": "project_type", "value": "3" }, { "key": "vip_phone_number", "value": "181" }, { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype1_status1", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=1&status=1", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "1" }, { "key": "status", "value": "1" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype2_status1", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=1", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "status", "value": "1" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype3_status1", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=1", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "status", "value": "1" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype1_status2", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "status", "value": "2" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype2_status2", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "status", "value": "2" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype3_status2", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=2", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "2" }, { "key": "status", "value": "2" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype1_status3", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=3&status=3", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "3" }, { "key": "status", "value": "3" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype2_status3", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=3&status=3", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "3" }, { "key": "status", "value": "3" } ] } }, "response": [] }, { "name": "get_bulkcoupon_ptype3_status3", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/bulkcoupon/?project_type=3&status=3", "host": [ "{{url}}" ], "path": [ "api", "basic", "bulkcoupon", "" ], "query": [ { "key": "project_type", "value": "3" }, { "key": "status", "value": "3" } ] } }, "response": [] }, { "name": "get_preferentialsalescampaign_ptype1_beauty", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=1", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ], "query": [ { "key": "project_type", "value": "1" } ] } }, "response": [] }, { "name": "get_preferentialsalescampaign_ptype2_repair", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=2", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ], "query": [ { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "get_preferentialsalescampaign_ptype3_product", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=3", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ], "query": [ { "key": "project_type", "value": "3" } ] } }, "response": [] }, { "name": "get_preferentialsalescampaign_ptype4_package", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=3", "host": [ "{{url}}" ], "path": [ "api", "business", "preferentialsalescampaign", "" ], "query": [ { "key": "project_type", "value": "3" } ] } }, "response": [] }, { "name": "get_groupprojectsetting_ptype1_repair", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/?project_type=1", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ], "query": [ { "key": "project_type", "value": "1" } ] } }, "response": [] }, { "name": "get_groupprojectsetting_ptype2_beauty", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/?project_type=2", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ], "query": [ { "key": "project_type", "value": "2" } ] } }, "response": [] }, { "name": "get_groupprojectsetting_ptype3_product", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/market/groupprojectsetting/?project_type=3", "host": [ "{{url}}" ], "path": [ "api", "market", "groupprojectsetting", "" ], "query": [ { "key": "project_type", "value": "3" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "1afebd30-7f36-4707-b57d-42b03d87fd04", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "3715b015-107a-40ec-ab80-7b8ab14b3c69", "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "purchase_sales_search", "item": [ { "name": "get_sales_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__invoice_date__gte=2019-01-01&sales_order__invoice_date__lte={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorderitem", "" ], "query": [ { "key": "sales_order__invoice_date__gte", "value": "2019-01-01" }, { "key": "sales_order__invoice_date__lte", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_sales_phone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__vipmember_info__phone_number__contains=181", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorderitem", "" ], "query": [ { "key": "sales_order__invoice_date__gte", "value": "2019-01-01", "disabled": true }, { "key": "sales_order__invoice_date__lte", "value": "{{ymd-date}}", "disabled": true }, { "key": "sales_order__vipmember_info__phone_number__contains", "value": "181" } ] } }, "response": [] }, { "name": "get_sales_phone_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__invoice_date__gte=2019-01-01&sales_order__invoice_date__lte={{ymd-date}}&sales_order__vipmember_info__phone_number__contains=18159852", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorderitem", "" ], "query": [ { "key": "sales_order__invoice_date__gte", "value": "2019-01-01" }, { "key": "sales_order__invoice_date__lte", "value": "{{ymd-date}}" }, { "key": "sales_order__vipmember_info__phone_number__contains", "value": "18159852" } ] } }, "response": [] }, { "name": "get_sales_pname_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__invoice_date__gte=2019-01-01&sales_order__invoice_date__lte={{ymd-date}}&car_products__name__contains={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesorderitem", "" ], "query": [ { "key": "sales_order__invoice_date__gte", "value": "2019-01-01" }, { "key": "sales_order__invoice_date__lte", "value": "{{ymd-date}}" }, { "key": "car_products__name__contains", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_salesback_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesbackorderitem/?sales_back_order__invoice_date__gte=2019-01-01&sales_back_order__invoice_date__lte={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesbackorderitem", "" ], "query": [ { "key": "sales_back_order__invoice_date__gte", "value": "2019-01-01" }, { "key": "sales_back_order__invoice_date__lte", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_salesback_dates_phone", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesbackorderitem/?sales_back_order__invoice_date__gte=2019-01-01&sales_back_order__invoice_date__lte={{ymd-date}}&sales_back_order__vipmember_info__phone_number__contains=18159852", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesbackorderitem", "" ], "query": [ { "key": "sales_back_order__invoice_date__gte", "value": "2019-01-01" }, { "key": "sales_back_order__invoice_date__lte", "value": "{{ymd-date}}" }, { "key": "sales_back_order__vipmember_info__phone_number__contains", "value": "18159852" } ] } }, "response": [] }, { "name": "get_salesback_pname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesbackorderitem/?sales_order_item__car_products__name__contains={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesbackorderitem", "" ], "query": [ { "key": "sales_order_item__car_products__name__contains", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_salesreport_first_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesreport", "" ], "query": [ { "key": "type", "value": "first" }, { "key": "begin_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_salesreport_second_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesreport/?type=second&begin_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesreport", "" ], "query": [ { "key": "type", "value": "second" }, { "key": "begin_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_salesreport_third_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/salesreport/?type=third&begin_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "salesreport", "" ], "query": [ { "key": "type", "value": "third" }, { "key": "begin_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_purchase_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_purchase_supplier", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorderitem/?supplier={{supplier_name01}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01", "disabled": true }, { "key": "end_date", "value": "{{ymd-date}}", "disabled": true }, { "key": "supplier", "value": "{{supplier_name01}}" } ] } }, "response": [] }, { "name": "get_purchase_pname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorderitem/?car_products_name={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorderitem", "" ], "query": [ { "key": "car_products_name", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_purchase_dates_supplier", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&supplier={{supplier_name01}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "supplier", "value": "{{supplier_name01}}" } ] } }, "response": [] }, { "name": "get_purchase_dates_pname", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&car_products_name={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchaseorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "car_products_name", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_purchaseback_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchasebackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchasebackorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_purchaseback_dates_supplier", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchasebackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&supplier={{supplier_name01}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchasebackorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "supplier", "value": "{{supplier_name01}}" } ] } }, "response": [] }, { "name": "get_purchaseback_supplier_carproduct", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/purchasebackorderitem/?supplier={{supplier_name01}}&car_products_name={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "purchasebackorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01", "disabled": true }, { "key": "end_date", "value": "{{ymd-date}}", "disabled": true }, { "key": "supplier", "value": "{{supplier_name01}}" }, { "key": "car_products_name", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_carpurchasestatistics_first", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/carpurchasestatistics/?type=first&year=2019&month=01", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "carpurchasestatistics", "" ], "query": [ { "key": "type", "value": "first" }, { "key": "year", "value": "2019" }, { "key": "month", "value": "01" } ] } }, "response": [] }, { "name": "get_carpurchasestatistics_second", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/carpurchasestatistics/?type=second&year=2019&month=01", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "carpurchasestatistics", "" ], "query": [ { "key": "type", "value": "second" }, { "key": "year", "value": "2019" }, { "key": "month", "value": "01" } ] } }, "response": [] }, { "name": "get_carpurchasestatistics_third", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/carpurchasestatistics/?type=third&year=2019&month=01", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "carpurchasestatistics", "" ], "query": [ { "key": "type", "value": "third" }, { "key": "year", "value": "2019" }, { "key": "month", "value": "01" } ] } }, "response": [] }, { "name": "get_receivematerialsorderitem_product", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"rebackmaterail_id01\",jsonData.results[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/receivematerialsorderitem/?car_products_name={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "receivematerialsorderitem", "" ], "query": [ { "key": "car_products_name", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_receivematerialsorderitem_dates_product", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "// var jsonData = JSON.parse(responseBody);", "// postman.setEnvironmentVariable(\"rebackmaterail_id01\",jsonData.results[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/receivematerialsorderitem/?car_products_name={{car_products_name02}}&start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "receivematerialsorderitem", "" ], "query": [ { "key": "car_products_name", "value": "{{car_products_name02}}" }, { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_receivematerialsbackorderitem_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/receivematerialsbackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "receivematerialsbackorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_receivematerialsbackorderitem_dates_ordername", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/receivematerialsbackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&order_name=rebackmaterail_id01", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "receivematerialsbackorderitem", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "order_name", "value": "rebackmaterail_id01" } ] } }, "response": [] }, { "name": "get_inventoryadjustmentorder_dates", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventoryadjustmentorder/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventoryadjustmentorder", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_inventoryadjustmentorder_dates_category", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventoryadjustmentorder/?start_date=2019-01-01&end_date={{ymd-date}}&category={{category_id01}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventoryadjustmentorder", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "category", "value": "{{category_id01}}" } ] } }, "response": [] }, { "name": "get_inventoryadjustmentorder_dates_category_name", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventoryadjustmentorder/?start_date=2019-01-01&end_date={{ymd-date}}&category={{category_id01}}&name={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventoryadjustmentorder", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "category", "value": "{{category_id01}}" }, { "key": "name", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_inventorycheck_name", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorycheck/?name={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorycheck", "" ], "query": [ { "key": "name", "value": "{{car_products_name02}}" } ] } }, "response": [] }, { "name": "get_inventorydetail_storehouseid", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ], "query": [ { "key": "storehouse_ids", "value": "{{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}" } ] } }, "response": [] }, { "name": "get_inventorydetail_storehouseid_carproductcategory", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}}&category_ids={{carproduct_category01}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ], "query": [ { "key": "storehouse_ids", "value": "{{storehouse_id01}}" }, { "key": "category_ids", "value": "{{carproduct_category01}}" } ] } }, "response": [] }, { "name": "get_inventorydetail_storehouseid_carproductcategory_product", "event": [ { "listen": "test", "script": { "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}}&category_ids={{carproduct_category01}}&car_products__name__contains={{car_products_name02}}", "host": [ "{{url}}" ], "path": [ "api", "invoicing", "inventorydetail", "" ], "query": [ { "key": "storehouse_ids", "value": "{{storehouse_id01}}" }, { "key": "category_ids", "value": "{{carproduct_category01}}" }, { "key": "car_products__name__contains", "value": "{{car_products_name02}}" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "52442da5-f2a4-436a-82fa-d878b3942f17", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "25dfada3-21b3-44c9-b0bc-8941fd23cf9c", "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "paymentreceived_search", "item": [ { "name": "get_receipt_dates", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/receipt/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "receipt", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_receipt_dates_receiptcategory", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/receipt/?start_date=2019-01-01&end_date={{ymd-date}}&receipt_category={{receipt_category01}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "receipt", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "receipt_category", "value": "{{receipt_category01}}" } ] } }, "response": [] }, { "name": "get_payorder_dates", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/payorder/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "payorder", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_payorder_dates_paycategory", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/payorder/?start_date=2019-01-01&end_date={{ymd-date}}&pay_category={{paycategory_id01}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "payorder", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "pay_category", "value": "{{paycategory_id01}}" } ] } }, "response": [] }, { "name": "get_accounttransfer_dates", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/accounttransfer/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "accounttransfer", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_accounttransfer_dates_accountout_accountin", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/accounttransfer/?start_date=2019-01-01&end_date={{ymd-date}}&account_out={{account_id01}}&account_in={{account_id02}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "accounttransfer", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "account_out", "value": "{{account_id01}}" }, { "key": "account_in", "value": "{{account_id02}}" } ] } }, "response": [] }, { "name": "get_vendorpayable_dates", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/vendorpayable/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "vendorpayable", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "account_out", "value": "{{account_id01}}", "disabled": true }, { "key": "account_in", "value": "{{account_id02}}", "disabled": true } ] } }, "response": [] }, { "name": "get_vendorpayable_dates_status0", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/vendorpayable/?start_date=2019-01-01&end_date={{ymd-date}}&status=0", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "vendorpayable", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get_vendorpayable_verdorname", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/vendorpayable/?vendor_name={{supplier_name01}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "vendorpayable", "" ], "query": [ { "key": "vendor_name", "value": "{{supplier_name01}}" } ] } }, "response": [] }, { "name": "get_customerreceivable_dates", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/customerreceivable/?start_date=2019-01-01&end_date={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "customerreceivable", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_customerreceivable_dates_status0", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/customerreceivable/?start_date=2019-01-01&end_date={{ymd-date}}&status=0", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "customerreceivable", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "status", "value": "0" } ] } }, "response": [] }, { "name": "get_customerreceivable_dates_status0_corpname", "event": [ { "listen": "test", "script": { "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/receivepayment/customerreceivable/?start_date=2019-01-01&end_date={{ymd-date}}&status=0&vendor_name={{corp_name01}}", "host": [ "{{url}}" ], "path": [ "api", "receivepayment", "customerreceivable", "" ], "query": [ { "key": "start_date", "value": "2019-01-01" }, { "key": "end_date", "value": "{{ymd-date}}" }, { "key": "status", "value": "0" }, { "key": "vendor_name", "value": "{{corp_name01}}" } ] } }, "response": [] } ] }, { "name": "employee _performance_search", "item": [ { "name": "get_employee_name", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/employee/?emplyee_name={{agent_name02}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "employee", "" ], "query": [ { "key": "emplyee_name", "value": "{{agent_name02}}" } ] } }, "response": [] }, { "name": "get_calendardata", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/calendardata/?date=2019-01-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "calendardata", "" ], "query": [ { "key": "date", "value": "2019-01-01" } ] } }, "response": [] }, { "name": "get_calendardata_emplyname", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/calendardata/?date=2019-01-01&employee={{agent_name01}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "calendardata", "" ], "query": [ { "key": "date", "value": "2019-01-01" }, { "key": "employee", "value": "{{agent_name01}}" } ] } }, "response": [] }, { "name": "get_attendanceabnormal_dates", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/attendanceabnormal/?year=2019&month=01", "host": [ "{{url}}" ], "path": [ "api", "staff", "attendanceabnormal", "" ], "query": [ { "key": "year", "value": "2019" }, { "key": "month", "value": "01" } ] } }, "response": [] }, { "name": "get_payrolladjustment_dates", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/payrolladjustment/?year=2019&month=01", "host": [ "{{url}}" ], "path": [ "api", "staff", "payrolladjustment", "" ], "query": [ { "key": "year", "value": "2019" }, { "key": "month", "value": "01" } ] } }, "response": [] }, { "name": "get_performancecommissionperson", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/performancecommissionperson/?monthly_commission=2018-11-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "performancecommissionperson", "" ], "query": [ { "key": "monthly_commission", "value": "2018-11-01" } ] } }, "response": [] }, { "name": "get_performancecommissionperson_emplyname", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/performancecommissionperson/?monthly_commission=2018-11-01&user__user__username__contains={{agent_name01}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "performancecommissionperson", "" ], "query": [ { "key": "monthly_commission", "value": "2018-11-01" }, { "key": "user__user__username__contains", "value": "{{agent_name01}}" } ] } }, "response": [] }, { "name": "get_salarycalculation_dates", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/salarycalculation/?monthly_salary=2018-12-01", "host": [ "{{url}}" ], "path": [ "api", "staff", "salarycalculation", "" ], "query": [ { "key": "monthly_salary", "value": "2018-12-01" } ] } }, "response": [] }, { "name": "get_salarycalculation_dates_emplyname", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/salarycalculation/?monthly_salary=2018-12-01&user__user__username__contains={{agent_name01}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "salarycalculation", "" ], "query": [ { "key": "monthly_salary", "value": "2018-12-01" }, { "key": "user__user__username__contains", "value": "{{agent_name01}}" } ] } }, "response": [] }, { "name": "get_salarysetting_emplyname", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/salarysetting/?employee={{agent_name01}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "salarysetting", "" ], "query": [ { "key": "employee", "value": "{{agent_name01}}" } ] } }, "response": [] }, { "name": "get_monthrestdays_emplyname", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/monthrestdays/?employee_name={{agent_name01}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "monthrestdays", "" ], "query": [ { "key": "employee_name", "value": "{{agent_name01}}" } ] } }, "response": [] }, { "name": "get_staffperformancereport_daily_saletype", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=salesDaily&monthday={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "salesDaily" }, { "key": "monthday", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_staffperformancereport_month_saletype", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=salesMonthlyReport&monthday={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "salesMonthlyReport" }, { "key": "monthday", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_staffperformancereport_daily_contype", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionDaily&monthday={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "constructionDaily" }, { "key": "monthday", "value": "{{ymd-date}}" } ] } }, "response": [] }, { "name": "get_staffperformancereport_conmonth_contype", "event": [ { "listen": "test", "script": { "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionMonthlyReport&monthday={{ymd-date}}", "host": [ "{{url}}" ], "path": [ "api", "staff", "staffperformancereport", "" ], "query": [ { "key": "types", "value": "constructionMonthlyReport" }, { "key": "monthday", "value": "{{ymd-date}}" } ] } }, "response": [] } ] }, { "name": "basic_search", "item": [ { "name": "get_supplier_name", "event": [ { "listen": "test", "script": { "id": "63740b30-aa43-4040-aefc-074668e0467f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/supplier/?name_contains={{supplier_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "supplier", "" ], "query": [ { "key": "name_contains", "value": "{{supplier_name01}}" } ] } }, "response": [] }, { "name": "get_car_vipname", "event": [ { "listen": "test", "script": { "id": "63740b30-aa43-4040-aefc-074668e0467f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/car/?vip__name__contains={{vip_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ], "query": [ { "key": "vip__name__contains", "value": "{{vip_name01}}" } ] } }, "response": [] }, { "name": "get_car_vipphone", "event": [ { "listen": "test", "script": { "id": "63740b30-aa43-4040-aefc-074668e0467f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/car/?vip__phone_number__contains={{vip_phone01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ], "query": [ { "key": "vip__phone_number__contains", "value": "{{vip_phone01}}" } ] } }, "response": [] }, { "name": "get_car_carcode", "event": [ { "listen": "test", "script": { "id": "63740b30-aa43-4040-aefc-074668e0467f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Rong {{shoptoken}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/car/?code_contains={{car_code01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ], "query": [ { "key": "code_contains", "value": "{{car_code01}}" } ] } }, "response": [] }, { "name": "get_car_vipphone_vipname", "event": [ { "listen": "test", "script": { "id": "63740b30-aa43-4040-aefc-074668e0467f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/car/?vip__phone_number__contains={{vip_phone01}}&vip__name__contains={{vip_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "car", "" ], "query": [ { "key": "vip__phone_number__contains", "value": "{{vip_phone01}}" }, { "key": "vip__name__contains", "value": "{{vip_name01}}" } ] } }, "response": [] }, { "name": "get_brand_name", "event": [ { "listen": "test", "script": { "id": "63740b30-aa43-4040-aefc-074668e0467f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "type": "text", "value": "Rong {{shoptoken}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/api/basic/brands/?name__contains={{brand_name01}}", "host": [ "{{url}}" ], "path": [ "api", "basic", "brands", "" ], "query": [ { "key": "name__contains", "value": "{{brand_name01}}" } ] } }, "response": [] } ] } ] }