diff --git a/postman/云印测试环境.postman_collection.json b/postman/云印测试环境.postman_collection.json index 6adc785..fa28c96 100644 --- a/postman/云印测试环境.postman_collection.json +++ b/postman/云印测试环境.postman_collection.json @@ -70,7 +70,7 @@ "response": [] }, { - "name": "小程序验证码登录", + "name": "跟单王微信登录", "request": { "method": "POST", "header": [ @@ -81,13 +81,55 @@ }, { "key": "X-APP-ID", - "value": "503258978847952999", + "value": "503258978847952995", "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"account\": \"18219557422\",\r\n \"accountType\": \"MOBILE\",\r\n \"captcha\": \"888888\"\r\n}", + "raw": "{\r\n \"authCode\": \"091AGP000efHkK1Yhy100EvYhr0AGP0r\",\r\n \"authMethod\": \"WeChatOpenApp\"\r\n} ", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://api-cloudprint-dev.qniao.cn/cloud-print-user-center/authorize/by-oauth2", + "protocol": "https", + "host": [ + "api-cloudprint-dev", + "qniao", + "cn" + ], + "path": [ + "cloud-print-user-center", + "authorize", + "by-oauth2" + ] + } + }, + "response": [] + }, + { + "name": "小程序登录", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json;charset=UTF-8" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "503258978847952999" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"encryptedData\": \"fxSWiDl9XaSRSNInC6d5eLgEUeYY8YT6/OJqF51vExOheYePeFm37FukFtEBPwfyx+4RFo0AbTy3TAVCYIh/c3Cvr2S8EOOFGMxn+GhZp/sZb/vgIq/Hl2rZNcnmyNpDCq4hFYAeRPhsCaKu8WMLsoOMN44jO4P8W94AiRy5xzETfdbObjFRqw/w4I+TqlIkH09qSX5czs7QskgRRnqP38y7LNoEgMOqD3hVtOcYHmXDzUQE9Er0H2AwH2C4JxhaomfS8+RT4LxQHhgPTCh7geWO1aeJKjovTkhkmSEijry1SJwu7JmXY/kZy4xigqI0BvnqtwW8d1L5RnollBO0rUZHdLnMx0QQxZ9t06rJElS9dRuOwVEd3uZEKj\",\r\n \"iv\": \"YjayEzCmaGx60dNKQ2sHNg==\",\r\n \"tmpAuthToken\": \"0632215f-8488-4bde-9905-8e93bcd05f01\"\r\n}", "options": { "raw": { "language": "json" @@ -95,7 +137,7 @@ } }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-user-center/authorize/by-captcha", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-user-center/authorize/by-wechat-applet", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -105,7 +147,7 @@ "path": [ "cloud-print-user-center", "authorize", - "by-captcha" + "by-wechat-applet" ] } }, @@ -2544,35 +2586,32 @@ "name": "跟单王_设备用户表", "item": [ { - "name": "获取设备用户", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, + "name": "保存设备用户", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json;charset=UTF-8", - "type": "text" + "type": "text", + "value": "application/json;charset=UTF-8" }, { "key": "X-APP-ID", - "value": "1", - "type": "text" + "type": "text", + "value": "1" }, { "key": "Authorization", - "value": "{{gdwtoken}}", - "type": "text" + "type": "text", + "value": "{{gdwtoken}}" } ], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"id\": 0,\r\n \"machineId\": 0,\r\n \"userId\": 0,\r\n \"userName\": 0\r\n }\r\n]" + "raw": "{\r\n \"machineId\": 505051965659680768,\r\n \"userMachineDtoList\": [\r\n {\r\n \"id\": \"\",\r\n \"machineId\": 505051965659680768,\r\n \"userId\": 504650715583614976,\r\n \"userName\": \"大弟\"\r\n }\r\n ]\r\n}" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/machine-user", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/save/machine-user", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -2581,7 +2620,7 @@ ], "path": [ "cloud-print-cloud-factory", - "get", + "save", "machine-user" ] } @@ -2589,32 +2628,35 @@ "response": [] }, { - "name": "保存设备用户", + "name": "获取设备用户", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json;charset=UTF-8" + "value": "application/json;charset=UTF-8", + "type": "text" }, { "key": "X-APP-ID", - "type": "text", - "value": "1" + "value": "1", + "type": "text" }, { "key": "Authorization", - "type": "text", - "value": "{{gdwtoken}}" + "value": "{{gdwtoken}}", + "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"machineId\": 0,\r\n \"userMachineDtoList\": [\r\n {\r\n \"id\": 0,\r\n \"machineId\": 0,\r\n \"userId\": 0,\r\n \"userName\": 0\r\n }\r\n ]\r\n}" + "raw": "" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/save/machine-user", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/machine-user?machineId=505051965659680768", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -2623,8 +2665,14 @@ ], "path": [ "cloud-print-cloud-factory", - "save", + "get", "machine-user" + ], + "query": [ + { + "key": "machineId", + "value": "505051965659680768" + } ] } }, @@ -2659,7 +2707,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"customerContactsId\": \"\",\r\n \"customerContactsMobile\": \"18219557422\",\r\n \"customerContactsName\": \"大哥\",\r\n \"customerEnterpriseId\": \"\",\r\n \"customerEnterpriseName\": \"\",\r\n \"deliveryCityId\": \"440100\",\r\n \"deliveryCityName\": \"市\",\r\n \"deliveryDetails\": \"车陂街道联合社区\",\r\n \"deliveryDistrictId\": \"440106\",\r\n \"deliveryDistrictName\": \"区\",\r\n \"deliveryMethod\": \"送货\",\r\n \"deliveryProvinceId\": \"440000\",\r\n \"deliveryProvinceName\": \"省\",\r\n \"id\": \"\",\r\n \"merchandiser\": \"\",\r\n \"packingMethond\": \"打包\",\r\n \"paymentMethod\": \"\",\r\n \"purchasingOrderItems\": [\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-22\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": \"100\",\r\n \"productId\": \"\",\r\n \"productName\": \"产品名称\",\r\n \"quantity\": 99,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"单位\",\r\n \"unitPrice\": 9.9\r\n }\r\n ],\r\n \"remark\": \"备注\",\r\n \"supplierContactsId\": \"\",\r\n \"supplierContactsMobile\": \"13800138000\",\r\n \"supplierContactsName\": \"大姐姐\",\r\n \"supplierEnterpriseId\": \"\",\r\n \"supplierEnterpriseName\": \"大姐姐企业\",\r\n \"totalOfferPrice\": \"\",\r\n \"totalSettlementPrice\": \"\"\r\n}" + "raw": "{\r\n \"customerContactsId\": \"\",\r\n \"customerContactsMobile\": \"18219557422\",\r\n \"customerContactsName\": \"大哥\",\r\n \"customerEnterpriseId\": \"\",\r\n \"customerEnterpriseName\": \"\",\r\n \"deliveryCityId\": \"440100\",\r\n \"deliveryCityName\": \"市\",\r\n \"deliveryDetails\": \"车陂街道联合社区\",\r\n \"deliveryDistrictId\": \"440106\",\r\n \"deliveryDistrictName\": \"区\",\r\n \"deliveryMethod\": \"送货\",\r\n \"deliveryProvinceId\": \"440000\",\r\n \"deliveryProvinceName\": \"省\",\r\n \"id\": \"\",\r\n \"merchandiser\": \"\",\r\n \"packingMethond\": \"打包\",\r\n \"paymentMethod\": \"\",\r\n \"purchasingOrderItems\": [\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-22\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": \"100\",\r\n \"productId\": \"\",\r\n \"productName\": \"产品名称\",\r\n \"quantity\": 99,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"单位\",\r\n \"unitPrice\": 9.9\r\n }\r\n ],\r\n \"remark\": \"备注\",\r\n \"supplierContactsId\": \"\",\r\n \"supplierContactsMobile\": \"13800138000\",\r\n \"supplierContactsName\": \"2\",\r\n \"supplierEnterpriseId\": \"504363963916619776\",\r\n \"supplierEnterpriseName\": \"2企业\",\r\n \"totalOfferPrice\": \"\",\r\n \"totalSettlementPrice\": \"\"\r\n}" }, "url": { "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/save/purchasing-order/as-customer", @@ -2749,7 +2797,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"customerContactsId\": \"\",\r\n \"customerContactsMobile\": \"13500135000\",\r\n \"customerContactsName\": \"小姐姐\",\r\n \"customerEnterpriseId\": \"\",\r\n \"customerEnterpriseName\": \"小姐姐的企业\",\r\n \"deliveryCityId\": \"440100\",\r\n \"deliveryCityName\": \"市\",\r\n \"deliveryDetails\": \"D栋408\",\r\n \"deliveryDistrictId\": \"440106\",\r\n \"deliveryDistrictName\": \"区\",\r\n \"deliveryMethod\": \"自提\",\r\n \"deliveryProvinceId\": \"440000\",\r\n \"deliveryProvinceName\": \"省\",\r\n \"id\": \"\",\r\n \"merchandiser\": \"\",\r\n \"packingMethond\": \"包装\",\r\n \"paymentMethod\": \"\",\r\n \"purchasingOrderItems\": [\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-22\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": 888,\r\n \"productId\": \"\",\r\n \"productName\": \"产品名称\",\r\n \"quantity\": 88,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"只\",\r\n \"unitPrice\": 888\r\n },\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-22\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": 888,\r\n \"productId\": \"\",\r\n \"productName\": \"产品名称\",\r\n \"quantity\": 88,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"只\",\r\n \"unitPrice\": 888\r\n }\r\n ],\r\n \"remark\": \"备注\",\r\n \"supplierContactsId\": \"\",\r\n \"supplierContactsMobile\": \"13800138000\",\r\n \"supplierContactsName\": \"大哥\",\r\n \"supplierEnterpriseId\": \"\",\r\n \"supplierEnterpriseName\": \"\",\r\n \"totalOfferPrice\": \"\",\r\n \"totalSettlementPrice\": \"0\"\r\n}" + "raw": "{\r\n \"customerContactsId\": \"\",\r\n \"customerContactsMobile\": \"13500135000\",\r\n \"customerContactsName\": \"1\",\r\n \"customerEnterpriseId\": \"504363963916619776\",\r\n \"customerEnterpriseName\": \"企业\",\r\n \"deliveryCityId\": \"440100\",\r\n \"deliveryCityName\": \"市\",\r\n \"deliveryDetails\": \"D栋408\",\r\n \"deliveryDistrictId\": \"440106\",\r\n \"deliveryDistrictName\": \"区\",\r\n \"deliveryMethod\": \"自提\",\r\n \"deliveryProvinceId\": \"440000\",\r\n \"deliveryProvinceName\": \"省\",\r\n \"id\": \"\",\r\n \"merchandiser\": \"\",\r\n \"packingMethond\": \"包装\",\r\n \"paymentMethod\": \"\",\r\n \"purchasingOrderItems\": [\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-22\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": 888,\r\n \"productId\": \"\",\r\n \"productName\": \"产品名称\",\r\n \"quantity\": 88,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"只\",\r\n \"unitPrice\": 888\r\n },\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-22\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": 888,\r\n \"productId\": \"\",\r\n \"productName\": \"产品名称\",\r\n \"quantity\": 88,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"只\",\r\n \"unitPrice\": 888\r\n }\r\n ],\r\n \"remark\": \"备注\",\r\n \"supplierContactsId\": \"\",\r\n \"supplierContactsMobile\": \"13800138000\",\r\n \"supplierContactsName\": \"大哥\",\r\n \"supplierEnterpriseId\": \"\",\r\n \"supplierEnterpriseName\": \"\",\r\n \"totalOfferPrice\": \"\",\r\n \"totalSettlementPrice\": \"0\"\r\n}" }, "url": { "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/save/purchasing-order/as-supplier", @@ -2974,7 +3022,7 @@ "name": "跟单王_工序流程设计", "item": [ { - "name": "提交流程", + "name": "提交工序流程设计", "request": { "method": "POST", "header": [ @@ -2996,7 +3044,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"id\": \"\",\r\n \"parentId\": 0,\r\n \"processNodeList\": [\r\n {\r\n \"id\": \"\",\r\n \"nodeTypeId\": 504704965521051648,\r\n \"nodeTypeName\": \"UV\",\r\n \"nodeUnit\": \"个\", \r\n \"proccessId\": 504437514996682752,\r\n \"productId\": 505897269665599489,\r\n \"serialNumber\": 1,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"totalQuantity\": 100,\r\n \"wipName\": \"物料\",\r\n \"wipSize\": \"规格\"\r\n }\r\n ],\r\n \"productId\": 505897269665599489\r\n}" + "raw": "{\r\n \"id\": \"\",\r\n \"parentId\": 0,\r\n \"processNodeList\": [\r\n {\r\n \"id\": \"\",\r\n \"nodeTypeId\": 504704965521051648,\r\n \"nodeTypeName\": \"UV\",\r\n \"nodeUnit\": \"个\", \r\n \"processId\": 504437514996682752,\r\n \"productId\": 505897269665599489,\r\n \"serialNumber\": 1,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"totalQuantity\": 100,\r\n \"wipName\": \"物料\",\r\n \"wipSize\": \"规格\"\r\n }\r\n ],\r\n \"productId\": 505897269665599489\r\n}" }, "url": { "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/submit/process-flow-design", @@ -3016,32 +3064,35 @@ "response": [] }, { - "name": "获取流程节点详情", + "name": "获取产品工序流程设计", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json;charset=UTF-8" + "value": "application/json;charset=UTF-8", + "type": "text" }, { "key": "X-APP-ID", - "type": "text", - "value": "1" + "value": "1", + "type": "text" }, { "key": "Authorization", - "type": "text", - "value": "{{gdwtoken}}" + "value": "{{gdwtoken}}", + "type": "text" } ], "body": { "mode": "raw", - "raw": "{\r\n \"id\": 0,\r\n \"processNodeList\": [\r\n {\r\n \"id\": 0,\r\n \"nextNodeId\": \"string\",\r\n \"nodeTypeId\": \"string\",\r\n \"nodeTypeName\": \"string\",\r\n \"nodeUnit\": \"string\",\r\n \"priorNodeId\": \"string\",\r\n \"processId\": 0,\r\n \"productId\": \"string\",\r\n \"quantity\": 0,\r\n \"quantityCompletion\": 0,\r\n \"remainingQuantity\": 0,\r\n \"remark\": \"string\",\r\n \"status\": \"string\",\r\n \"wipName\": \"string\",\r\n \"wipSize\": \"string\"\r\n }\r\n ],\r\n \"productId\": 0\r\n}" + "raw": "" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/submit/process-flow-design?processNodeId", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/product/process-flow-design?productId=505897269665599489", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -3050,14 +3101,15 @@ ], "path": [ "cloud-print-cloud-factory", - "submit", + "get", + "product", "process-flow-design" ], "query": [ { - "key": "processNodeId", - "value": null, - "description": "流程节点标识" + "key": "productId", + "value": "505897269665599489", + "description": "产品标识" } ] } @@ -3065,27 +3117,24 @@ "response": [] }, { - "name": "获取产品工序流程设计", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, + "name": "获取流程节点详情;暂时不用", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json;charset=UTF-8", - "type": "text" + "type": "text", + "value": "application/json;charset=UTF-8" }, { "key": "X-APP-ID", - "value": "1", - "type": "text" + "type": "text", + "value": "1" }, { "key": "Authorization", - "value": "{{gdwtoken}}", - "type": "text" + "type": "text", + "value": "{{gdwtoken}}" } ], "body": { @@ -3093,7 +3142,7 @@ "raw": "" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/product/process-flow-design?productId", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/process-node/details?processNodeId=506094609705865217", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -3103,14 +3152,14 @@ "path": [ "cloud-print-cloud-factory", "get", - "product", - "process-flow-design" + "process-node", + "details" ], "query": [ { - "key": "productId", - "value": null, - "description": "产品标识" + "key": "processNodeId", + "value": "506094609705865217", + "description": "流程节点标识" } ] } @@ -3146,7 +3195,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"createManufactureOrderDtoList\": [\r\n {\r\n \"createTime\": \"2020-09-22T02:32:37.954Z\",\r\n \"finishDate\": \"2020-09-22T02:32:37.954Z\",\r\n \"id\": 0,\r\n \"machineId\": 0,\r\n \"nextNodeId\": \"string\",\r\n \"nodeTypeId\": \"string\",\r\n \"priorNodeId\": \"string\",\r\n \"processId\": 0,\r\n \"processNodeId\": 0,\r\n \"productId\": 0,\r\n \"productionQuantity\": 0,\r\n \"userId\": 0\r\n }\r\n ]\r\n}" + "raw": "{\r\n \"createManufactureOrderDtoList\": [\r\n {\r\n \"completedQuantity\": \"\",\r\n \"factoryId\": 504729194060713984,\r\n \"factoryName\": \"千鸟1工厂\",\r\n \"finishDate\": \"2020-09-23\",\r\n \"id\": \"\",\r\n \"machineId\": 505051965659680768,\r\n \"machineName\": \"千鸟1号机\",\r\n \"nextNodeId\": \"\",\r\n \"nodeTypeId\": 504704929756221440,\r\n \"nodeTypeName\": \"哑膜\",\r\n \"nodeUnit\": \"只\",\r\n \"parentId\": \"\",\r\n \"priorNodeId\": \"\",\r\n \"processFlowId\": 506094609705865216,\r\n \"processId\": 504437462521745408,\r\n \"processNodeId\": 506094609705865217,\r\n \"productId\": 505897269665599489,\r\n \"serialNumber\": 1,\r\n \"status\": \"\",\r\n \"totalQuantity\": 9999,\r\n \"wipName\": \"物料\",\r\n \"wipSize\": \"规格\"\r\n }\r\n ],\r\n \"processFlowId\": 506094609705865216,\r\n \"productId\": 505897269665599489,\r\n \"productName\": \"产品名称\"\r\n}\r\n" }, "url": { "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/save/manufacture-order/self-produce", @@ -3189,7 +3238,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"createPurchasingOrderDTO\": {\r\n \"customerContactsId\": 0,\r\n \"customerContactsMobile\": \"string\",\r\n \"customerContactsName\": \"string\",\r\n \"customerEnterpriseId\": 0,\r\n \"customerEnterpriseName\": \"string\",\r\n \"deliveryCityId\": \"string\",\r\n \"deliveryCityName\": \"string\",\r\n \"deliveryDetails\": \"string\",\r\n \"deliveryDistrictId\": \"string\",\r\n \"deliveryDistrictName\": \"string\",\r\n \"deliveryMethod\": \"string\",\r\n \"deliveryProvinceId\": \"string\",\r\n \"deliveryProvinceName\": \"string\",\r\n \"id\": 0,\r\n \"merchandiser\": 0,\r\n \"packingMethond\": \"string\",\r\n \"paymentMethod\": \"string\",\r\n \"purchasingOrderItems\": [\r\n {\r\n \"createTime\": \"2020-09-22T02:35:13.961Z\",\r\n \"deliveryDate\": \"string\",\r\n \"imgUrlList\": [\r\n \"string\"\r\n ],\r\n \"materialsRequirement\": \"string\",\r\n \"offerPrice\": 0,\r\n \"productId\": \"string\",\r\n \"productName\": \"string\",\r\n \"quantity\": 0,\r\n \"remark\": \"string\",\r\n \"status\": \"string\",\r\n \"trimmedSize\": \"string\",\r\n \"unit\": \"string\",\r\n \"unitPrice\": 0\r\n }\r\n ],\r\n \"remark\": \"string\",\r\n \"supplierContactsId\": 0,\r\n \"supplierContactsMobile\": \"string\",\r\n \"supplierContactsName\": \"string\",\r\n \"supplierEnterpriseId\": 0,\r\n \"supplierEnterpriseName\": \"string\",\r\n \"totalOfferPrice\": 0,\r\n \"totalSettlementPrice\": 0\r\n },\r\n \"processNodeDto\": [\r\n {\r\n \"nextNodeId\": \"string\",\r\n \"nodeTypeId\": \"string\",\r\n \"priorNodeId\": \"string\",\r\n \"processId\": 0,\r\n \"processNodeId\": 0,\r\n \"productionQuantity\": 0,\r\n \"quantity\": 0,\r\n \"remark\": \"string\",\r\n \"wipName\": 0,\r\n \"wipSize\": \"string\"\r\n }\r\n ]\r\n}" + "raw": "{\r\n \"createPurchasingOrderDTO\": {\r\n \"customerContactsId\": \"\",\r\n \"customerContactsMobile\": \"18219557422\",\r\n \"customerContactsName\": \"大哥\",\r\n \"customerEnterpriseId\": \"\",\r\n \"customerEnterpriseName\": \"大哥企业\",\r\n \"deliveryCityId\": 440100,\r\n \"deliveryCityName\": \"广州\",\r\n \"deliveryDetails\": \"东圃\",\r\n \"deliveryDistrictId\": 440106,\r\n \"deliveryDistrictName\": \"天河\",\r\n \"deliveryMethod\": \"配送\",\r\n \"deliveryProvinceId\": 440000,\r\n \"deliveryProvinceName\": \"广东\",\r\n \"id\": \"\",\r\n \"merchandiser\": \"\",\r\n \"orderDate\": \"2020-09-23\",\r\n \"packingMethond\": \"包装\",\r\n \"paymentMethod\": \"微信支付\",\r\n \"purchasingOrderItems\": [\r\n {\r\n \"createTime\": \"\",\r\n \"deliveryDate\": \"2020-09-23\",\r\n \"enterpriseId\": \"\",\r\n \"imgUrlList\": [\r\n \"\"\r\n ],\r\n \"materialsRequirement\": \"材质要求\",\r\n \"offerPrice\": 120,\r\n \"orderId\": \"\",\r\n \"parentId\": \"\",\r\n \"productId\": 505897269665599489,\r\n \"productName\": \"名称\",\r\n \"quantity\": 119,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"trimmedSize\": \"规格\",\r\n \"unit\": \"单位\",\r\n \"unitPrice\": 110\r\n }\r\n ],\r\n \"remark\": \"备注\",\r\n \"supplierContactsId\": \"\",\r\n \"supplierContactsMobile\": \"13800138000\",\r\n \"supplierContactsName\": \"千鸟\",\r\n \"supplierEnterpriseId\": \"\",\r\n \"supplierEnterpriseName\": \"千鸟互联\",\r\n \"totalOfferPrice\": \"\",\r\n \"totalSettlementPrice\": \"\"\r\n },\r\n \"processFlowDesignDTO\": {\r\n \"id\": 0,\r\n \"parentId\": 0,\r\n \"processNodeList\": [\r\n {\r\n \"id\": \"\",\r\n \"nodeTypeId\": 504704965521051648,\r\n \"nodeTypeName\": \"UV\",\r\n \"nodeUnit\": \"个\", \r\n \"processId\": 504437514996682752,\r\n \"productId\": 505897269665599489,\r\n \"serialNumber\": 1,\r\n \"remark\": \"备注\",\r\n \"status\": \"\",\r\n \"totalQuantity\": 100,\r\n \"wipName\": \"物料\",\r\n \"wipSize\": \"规格\"\r\n }\r\n ],\r\n \"productId\": 505897269665599489\r\n }\r\n}" }, "url": { "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/save/procurement-order/outgoing-procurement", @@ -3217,8 +3266,11 @@ "item": [ { "name": "获取企业员工生产单列表", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3241,7 +3293,7 @@ "raw": "" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/enterprise-employees/production-order/list?status", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/enterprise-employees/production-order/list?status=0", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -3258,8 +3310,7 @@ "query": [ { "key": "status", - "value": null, - "description": "状态" + "value": "0" } ] } @@ -3268,8 +3319,11 @@ }, { "name": "获取生产单详情", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3292,7 +3346,7 @@ "raw": "" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/enterprise/production-order/details?id", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/enterprise/production-order/details/by/506232296924385280", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -3304,14 +3358,9 @@ "get", "enterprise", "production-order", - "details" - ], - "query": [ - { - "key": "id", - "value": null, - "description": "生产单标识" - } + "details", + "by", + "506232296924385280" ] } }, @@ -3319,8 +3368,11 @@ }, { "name": "获取企业生产单分页列表", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3363,8 +3415,11 @@ }, { "name": "获取流程节点关联单统计详情", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3387,7 +3442,7 @@ "raw": "{\r\n \"processNodeId\": [\r\n \"string\"\r\n ],\r\n \"productId\": 0\r\n}" }, "url": { - "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/enterprise/production-order/page", + "raw": "http://api-cloudprint-dev.qniao.cn/cloud-print-cloud-factory/get/process-node/associated-bills-statistica/details", "protocol": "http", "host": [ "api-cloudprint-dev", @@ -3397,9 +3452,9 @@ "path": [ "cloud-print-cloud-factory", "get", - "enterprise", - "production-order", - "page" + "process-node", + "associated-bills-statistica", + "details" ] } }, @@ -3499,8 +3554,11 @@ }, { "name": "获取生产任务工单", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", diff --git a/postman/纸通宝测试环境.postman_collection.json b/postman/纸通宝测试环境.postman_collection.json index 033ffdc..72be975 100644 --- a/postman/纸通宝测试环境.postman_collection.json +++ b/postman/纸通宝测试环境.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "058e33d2-7037-4b9e-a91f-24e18e6af64c", + "_postman_id": "2d054424-8621-4f76-95db-b486b83b9e8b", "name": "纸通宝测试环境", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, @@ -14,7 +14,7 @@ { "listen": "test", "script": { - "id": "f25b0ce8-f712-4231-ad4e-8f881334b9ab", + "id": "702939ff-b83c-4dfc-8ba9-bc93e561b4f3", "exec": [ "var result = pm.response.json().data.token\r", "pm.environment.set(\"apptoken\",result);\r", @@ -70,7 +70,7 @@ { "listen": "test", "script": { - "id": "233a01b1-ce9e-480a-a7a9-393a31454379", + "id": "a09d7db3-b3b8-4217-96b6-3fc5f08e0a59", "exec": [ "var result = pm.response.headers.get('Authorization')\r", "pm.environment.set(\"token\", result);\r", @@ -1062,7 +1062,7 @@ { "listen": "test", "script": { - "id": "b797e90e-b880-49dd-b80b-79dab286a5c1", + "id": "9ddc3324-0a49-4998-aa22-c82331afdd01", "exec": [ "" ], @@ -1243,7 +1243,7 @@ { "listen": "test", "script": { - "id": "25b5df8c-4e44-4c4c-a47b-c9ad0cbf4eca", + "id": "d6035d2b-cbd1-48f5-b8ff-526e46d34f9e", "exec": [ "pm.test(\"Your test name\", function () {\r", " var jsonData = pm.response.json();\r", @@ -2768,7 +2768,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"dailyMax\": 0,\r\n \"enable\": 0,\r\n \"eventName\": \"string\",\r\n \"iconUrl\": \"string\",\r\n \"id\": 0,\r\n \"linkUrl\": \"string\",\r\n \"point\": \"string\",\r\n \"timeRule\": 0\r\n}" + "raw": "{\r\n \"createTime\": \"\",\r\n \"dailyMax\": 0,\r\n \"enable\": 1,\r\n \"eventName\": \"开通店铺\",\r\n \"iconUrl\": \"\",\r\n \"id\": \"\",\r\n \"linkUrl\": \"\",\r\n \"linkUrlJson\": {},\r\n \"point\": 500,\r\n \"timeRule\": 1,\r\n \"updateTime\": \"\"\r\n}" }, "url": { "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-task/save/point-task", @@ -2866,7 +2866,7 @@ "raw": "" }, "url": { - "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-task/get/point-task/{id}", + "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-task/get/point-task/1", "protocol": "https", "host": [ "api-admin-test", @@ -2879,7 +2879,7 @@ "point-task", "get", "point-task", - "{id}" + "1" ] } }, @@ -2908,10 +2908,10 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"dailyMax\": 0,\r\n \"enable\": 0,\r\n \"eventName\": \"string\",\r\n \"iconUrl\": \"string\",\r\n \"id\": 0,\r\n \"linkUrl\": \"string\",\r\n \"point\": \"string\",\r\n \"timeRule\": 0\r\n}" + "raw": "{\r\n \"createTime\": \"\",\r\n \"dailyMax\": 0,\r\n \"enable\": 1,\r\n \"eventName\": \"开通店铺\",\r\n \"iconUrl\": \"\",\r\n \"id\": \"\",\r\n \"linkUrl\": \"\",\r\n \"linkUrlJson\": {},\r\n \"point\": 500,\r\n \"timeRule\": 1,\r\n \"updateTime\": \"\"\r\n}" }, "url": { - "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/update/point-product/{id}", + "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/update/point-product/1", "protocol": "https", "host": [ "api-admin-test", @@ -2924,7 +2924,7 @@ "point-product", "update", "point-product", - "{id}" + "1" ] } }, @@ -2959,7 +2959,7 @@ "raw": "" }, "url": { - "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-task/delete/point-task/{id}", + "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-task/delete/point-task/7", "protocol": "https", "host": [ "api-admin-test", @@ -2972,7 +2972,7 @@ "point-task", "delete", "point-task", - "{id}" + "7" ] } }, @@ -3001,7 +3001,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"id\": 0,\r\n \"imageUrl\": \"string\",\r\n \"name\": \"string\",\r\n \"price\": 0\r\n}" + "raw": "{\r\n \"id\": \"\",\r\n \"imageUrl\": \"\",\r\n \"name\": \"3天纸通宝vip\",\r\n \"price\": 150\r\n}" }, "url": { "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/save/point-product", @@ -3098,7 +3098,7 @@ "raw": "" }, "url": { - "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/get/point-product/{id}", + "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/get/point-product/1", "protocol": "https", "host": [ "api-admin-test", @@ -3111,7 +3111,7 @@ "point-product", "get", "point-product", - "{id}" + "1" ] } }, @@ -3140,7 +3140,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"id\": 0,\r\n \"imageUrl\": \"string\",\r\n \"name\": \"string\",\r\n \"price\": 0\r\n}" + "raw": "{\r\n \"id\": \"\",\r\n \"imageUrl\": \"\",\r\n \"name\": \"3天纸通宝vip\",\r\n \"price\": 150\r\n}" }, "url": { "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-task/update/point-task/{id}", @@ -3191,7 +3191,7 @@ "raw": "" }, "url": { - "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/delete/point-product/{id}", + "raw": "https://api-admin-test.qniao.cn/recycle-service/admin/point-product/delete/point-product/4", "protocol": "https", "host": [ "api-admin-test", @@ -3204,14 +3204,14 @@ "point-product", "delete", "point-product", - "{id}" + "4" ] } }, "response": [] }, { - "name": "前台查询积分任务列表", + "name": "前台查询积分产品列表", "protocolProfileBehavior": { "disableBodyPruning": true }, @@ -3257,7 +3257,7 @@ "response": [] }, { - "name": "前台查询积分产品列表", + "name": "前台查询积分任务列表", "protocolProfileBehavior": { "disableBodyPruning": true }, @@ -3302,13 +3302,100 @@ } }, "response": [] - } - ], - "protocolProfileBehavior": {} - }, - { - "name": "积分记录", - "item": [ + }, + { + "name": "前台分享成功增加用户积分", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "QNT {{apptoken}}" + } + ], + "body": { + "mode": "formdata", + "formdata": [] + }, + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/point-task/fenxiang/callback", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "point-task", + "fenxiang", + "callback" + ] + } + }, + "response": [] + }, + { + "name": "前台购买积分产品", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "QNT {{apptoken}}" + } + ], + "body": { + "mode": "formdata", + "formdata": [] + }, + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/point-product/buy/point-product/1", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "point-product", + "buy", + "point-product", + "1" + ] + } + }, + "response": [] + }, { "name": "获取积分记录", "protocolProfileBehavior": { @@ -3409,6 +3496,382 @@ { "name": "纸厂", "item": [ + { + "name": "移动端_纸厂报价", + "item": [ + { + "name": "获取全部纸厂列表", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "X-APP-ID", + "value": "1", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{apptoken}}", + "type": "text" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/all-paper-mill", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "all-paper-mill" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂品类列表", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"paperMillId\": 493892149964836860\r\n}" + }, + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-category", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-category" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂所有地区列表", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-city", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-city" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂列表", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-list?name&shortName", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-list" + ], + "query": [ + { + "key": "name", + "value": null + }, + { + "key": "shortName", + "value": null + } + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂品类价格信息详情", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-paper-category-price-details/493889815142600704", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-paper-category-price-details", + "493889815142600704" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂品类价格信息列表", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-paper-category-price-list", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-paper-category-price-list" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂品类价格趋势", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \"paperMillCategoryId\": 498492951777906688,\r\n \"paperMillId\": 498492951731769344\r\n}" + }, + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-paper-category-price-trend", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-paper-category-price-trend" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂今日收货量(排队)列表", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-received-weight-list/on-today", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-received-weight-list", + "on-today" + ] + } + }, + "response": [] + }, + { + "name": "获取纸厂收货量(排队)趋势数据", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-APP-ID", + "type": "text", + "value": "1" + }, + { + "key": "Authorization", + "type": "text", + "value": "{{apptoken}}" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service/get/paper-mill-received-weight-trend?paperMillId=498492951731769344", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "get", + "paper-mill-received-weight-trend" + ], + "query": [ + { + "key": "paperMillId", + "value": "498492951731769344", + "description": "纸厂id" + } + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true + }, { "name": "新增纸厂信息", "request": { @@ -4353,6 +4816,54 @@ } ], "protocolProfileBehavior": {} + }, + { + "name": "纸厂分享", + "item": [ + { + "name": "分享纸厂今日报价信息", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "X-APP-ID", + "value": "1", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{apptoken}}", + "type": "text" + } + ], + "url": { + "raw": "https://api-test.qniao.cn/recycle-service//share/paper-mill/{paperMillId}/categories-daily-price/on-today", + "protocol": "https", + "host": [ + "api-test", + "qniao", + "cn" + ], + "path": [ + "recycle-service", + "", + "share", + "paper-mill", + "{paperMillId}", + "categories-daily-price", + "on-today" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} } ], "protocolProfileBehavior": {}