From f89bbcf77dae0465e829ca6f7548cd36ef57aaa6 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期五, 22 九月 2023 16:37:06 +0800 Subject: [PATCH] 1.调拨接口 --- docs/docs.go | 387 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 328 insertions(+), 59 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 0e06838..3a58589 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -495,11 +495,8 @@ } } }, - "/api-wms/v1/operation/operation": { - "get": { - "consumes": [ - "application/json" - ], + "/api-wms/v1/operation/list": { + "post": { "produces": [ "application/json" ], @@ -509,21 +506,13 @@ "summary": "鍏ュ簱/鍑哄簱鍒楄〃", "parameters": [ { - "type": "integer", - "name": "operationTypeId", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.OperationList" + } } ], "responses": { @@ -534,7 +523,39 @@ } } } - }, + } + }, + "/api-wms/v1/operation/listAll": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鍏ュ簱/鍑哄簱" + ], + "summary": "璋冩嫧", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.OperationAllList" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/operation/operation": { "post": { "produces": [ "application/json" @@ -565,7 +586,35 @@ } }, "/api-wms/v1/operation/operation/{id}": { - "put": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "鍏ュ簱/鍑哄簱" + ], + "summary": "鍒犻櫎鍏ュ簱/鍑哄簱淇℃伅", + "parameters": [ + { + "type": "integer", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/operation/update": { + "post": { "produces": [ "application/json" ], @@ -582,39 +631,6 @@ "schema": { "$ref": "#/definitions/request.UpdateOperation" } - }, - { - "type": "integer", - "description": "鍏ュ簱淇℃伅id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/util.Response" - } - } - } - }, - "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "鍏ュ簱/鍑哄簱" - ], - "summary": "鍒犻櫎鍏ュ簱/鍑哄簱淇℃伅", - "parameters": [ - { - "type": "integer", - "description": "id", - "name": "id", - "in": "path", - "required": true } ], "responses": { @@ -1047,6 +1063,51 @@ "type": "array", "items": { "$ref": "#/definitions/models.Material" + } + } + } + } + ] + } + } + } + } + }, + "/api-wms/v1/product/listOperaton": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "浜у搧鍘嗗彶鍑哄叆搴撲俊鎭�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.QueryOperationList" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.Operation" } } } @@ -1614,12 +1675,28 @@ "description": "鏄惁鎶ュ簾浣嶇疆", "type": "boolean" }, + "jointName": { + "description": "鎷兼帴鍚嶇О", + "type": "string" + }, "name": { "description": "浣嶇疆鍚嶇О", "type": "string" }, + "nextCount": { + "description": "涓嬫鐩樼偣", + "type": "string" + }, + "notes": { + "description": "澶栭儴澶囨敞", + "type": "string" + }, "parentId": { "description": "涓婄骇id", + "type": "string" + }, + "recentlyCount": { + "description": "鏈�杩戠洏鐐�", "type": "string" }, "replenishLocation": { @@ -1831,6 +1908,125 @@ } } }, + "models.Operation": { + "type": "object", + "properties": { + "comment": { + "type": "string" + }, + "companyID": { + "type": "integer" + }, + "companyName": { + "type": "string" + }, + "contacterID": { + "type": "integer" + }, + "contacterName": { + "type": "string" + }, + "createTime": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/models.OperationDetails" + } + }, + "fromLocation": { + "description": "婧愪綅缃�", + "allOf": [ + { + "$ref": "#/definitions/models.Location" + } + ] + }, + "fromLocationId": { + "description": "婧愪綅缃甶d", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "number": { + "description": "鍗曞彿", + "type": "string" + }, + "operationDate": { + "type": "string" + }, + "operationTypeId": { + "description": "浣滀笟绫诲瀷id", + "type": "integer" + }, + "operationTypeName": { + "description": "浣滀笟绫诲瀷鍚嶇О", + "type": "string" + }, + "sourceNumber": { + "description": "婧愬崟鍙�", + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/constvar.OperationStatus" + } + ] + }, + "toLocation": { + "description": "鐩爣浣嶇疆", + "allOf": [ + { + "$ref": "#/definitions/models.Location" + } + ] + }, + "toLocationId": { + "description": "鐩爣浣嶇疆id", + "type": "integer" + }, + "updateTime": { + "type": "string" + } + } + }, + "models.OperationDetails": { + "type": "object", + "properties": { + "amount": { + "description": "鏁伴噺", + "type": "number" + }, + "createTime": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "operationId": { + "description": "鎿嶄綔id", + "type": "integer" + }, + "productId": { + "description": "浜у搧id", + "type": "string" + }, + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" + }, + "unit": { + "type": "string" + }, + "updateTime": { + "type": "string" + } + } + }, "models.OperationType": { "type": "object", "properties": { @@ -1893,11 +2089,19 @@ "description": "榛樿婧愪綅缃甶d", "type": "integer" }, + "earlyOperations": { + "description": "棰勫~鍐欎綔涓氳鎯�", + "type": "boolean" + }, "id": { "type": "integer" }, "name": { "description": "浠撳簱鍚嶇О", + "type": "string" + }, + "prefix": { + "description": "鍓嶇紑", "type": "string" }, "printLabel": { @@ -2150,6 +2354,10 @@ "description": "浣滀笟绫诲瀷id", "type": "integer" }, + "operationTypeName": { + "description": "浣滀笟绫诲瀷鍚嶇О", + "type": "string" + }, "sourceNumber": { "description": "婧愬崟鍙�", "type": "string" @@ -2309,12 +2517,35 @@ } } }, + "request.OperationAllList": { + "type": "object", + "properties": { + "number": { + "type": "string" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "sourceNumber": { + "type": "string" + } + } + }, "request.OperationDetails": { "type": "object", "properties": { "OperationId": { "description": "鎿嶄綔id", "type": "integer" + }, + "amount": { + "description": "鏁伴噺", + "type": "number" }, "productId": { "description": "浜у搧id", @@ -2324,11 +2555,45 @@ "description": "浜у搧鍚嶇О", "type": "string" }, - "quantity": { - "description": "鏁伴噺", - "type": "number" - }, "unit": { + "type": "string" + } + } + }, + "request.OperationList": { + "type": "object", + "properties": { + "number": { + "type": "string" + }, + "operationTypeId": { + "type": "integer" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "sourceNumber": { + "type": "string" + } + } + }, + "request.QueryOperationList": { + "type": "object", + "properties": { + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "productId": { "type": "string" } } @@ -2417,6 +2682,10 @@ "description": "浣滀笟绫诲瀷id", "type": "integer" }, + "operationTypeName": { + "description": "浣滀笟绫诲瀷鍚嶇О", + "type": "string" + }, "sourceNumber": { "description": "婧愬崟鍙�", "type": "string" -- Gitblit v1.8.0