From 5c1dfdd9f0d51821ac47a46cba74ef94bfe0141e Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 27 九月 2023 17:28:13 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS --- docs/docs.go | 388 ++++++++++++++++++++++--------------------------------- 1 files changed, 156 insertions(+), 232 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 00d724a..d20b847 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -294,96 +294,6 @@ } } }, - "/api-wms/v1/forms/getInventoryForms": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "鎶ヨ〃" - ], - "summary": "鑾峰彇搴撳瓨鎶ヨ〃", - "parameters": [ - { - "description": "鏌ヨ鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetInventoryForms" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/util.ResponseList" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/response.InventoryForms" - } - } - } - } - ] - } - } - } - } - }, - "/api-wms/v1/forms/getInventoryHistory": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "鎶ヨ〃" - ], - "summary": "鑾峰彇搴撳瓨鍘嗗彶", - "parameters": [ - { - "description": "鏌ヨ鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetInventoryHistory" - } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/util.ResponseList" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/response.InventoryHistory" - } - } - } - } - ] - } - } - } - } - }, "/api-wms/v1/location/addLocation": { "post": { "produces": [ @@ -621,9 +531,9 @@ "application/json" ], "tags": [ - "搴撳瓨鐩樼偣" + "涓婃灦瑙勫垯" ], - "summary": "搴撳瓨鐩樼偣鍒楄〃", + "summary": "涓婃灦瑙勫垯鍒楄〃", "parameters": [ { "description": "鏌ヨ鍙傛暟", @@ -656,12 +566,72 @@ "summary": "淇敼涓婃灦瑙勫垯", "parameters": [ { - "description": "鍏ュ簱淇℃伅", + "description": "淇敼鍙傛暟", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateLocationProduct" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/locationProductAmount/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "搴撳瓨鐩樼偣" + ], + "summary": "娣诲姞搴撳瓨鐩樼偣淇℃伅", + "parameters": [ + { + "description": "鍏ュ簱/鍑哄簱淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddLocationProductAmount" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/locationProductAmount/list": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "搴撳瓨鐩樼偣" + ], + "summary": "搴撳瓨鐩樼偣鍒楄〃", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.PageInfo" } } ], @@ -1354,6 +1324,51 @@ } } }, + "/api-wms/v1/product/listHistory": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "浜у搧浣嶇疆鍘嗗彶淇℃伅", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.QueryOperationHistory" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.Operation" + } + } + } + } + ] + } + } + } + } + }, "/api-wms/v1/product/listOperaton": { "post": { "produces": [ @@ -1774,10 +1789,13 @@ 5, 6, 7, - 8 + 8, + 9 ], "x-enum-comments": { + "LocationTypeAdjust": "搴撳瓨鐩樼偣", "LocationTypeCustomer": "瀹㈡埛浣嶇疆", + "LocationTypeDisuse": "鎶ュ簾浣嶇疆", "LocationTypeInternal": "鍐呴儴浣嶇疆", "LocationTypeInventoryLoss": "搴撳瓨鎹熷け", "LocationTypeProduction": "鐢熶骇", @@ -1793,7 +1811,8 @@ "LocationTypeInventoryLoss", "LocationTypeProduction", "LocationTypeTransit", - "LocationTypeDisuse" + "LocationTypeDisuse", + "LocationTypeAdjust" ] }, "constvar.MaterialMode": { @@ -2554,6 +2573,29 @@ } } }, + "request.AddLocationProductAmount": { + "type": "object", + "properties": { + "Amount": { + "description": "搴撳瓨鏁伴噺", + "type": "number" + }, + "adjustAmount": { + "description": "宸��", + "type": "number" + }, + "differenceAmount": { + "description": "璁℃暟鏁伴噺", + "type": "number" + }, + "locationId": { + "type": "integer" + }, + "productId": { + "type": "string" + } + } + }, "request.AddOperation": { "type": "object", "properties": { @@ -2749,55 +2791,6 @@ } } }, - "request.GetInventoryForms": { - "type": "object", - "properties": { - "categoryIds": { - "description": "浜у搧绫诲瀷id", - "type": "array", - "items": { - "type": "integer" - } - }, - "page": { - "description": "椤电爜", - "type": "integer" - }, - "pageSize": { - "description": "姣忛〉澶у皬", - "type": "integer" - }, - "warehouseCode": { - "description": "浠撳簱缂╁啓", - "type": "string" - } - } - }, - "request.GetInventoryHistory": { - "type": "object", - "properties": { - "page": { - "description": "椤电爜", - "type": "integer" - }, - "pageSize": { - "description": "姣忛〉澶у皬", - "type": "integer" - }, - "produceId": { - "description": "浜у搧id", - "type": "string" - }, - "productName": { - "description": "浜у搧鍚嶇О", - "type": "string" - }, - "unit": { - "description": "鍗曚綅", - "type": "string" - } - } - }, "request.GetProductList": { "type": "object", "properties": { @@ -2903,6 +2896,25 @@ "type": "integer" }, "sourceNumber": { + "type": "string" + } + } + }, + "request.QueryOperationHistory": { + "type": "object", + "properties": { + "locationId": { + "type": "integer" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "productId": { "type": "string" } } @@ -3168,92 +3180,6 @@ } } }, - "response.InventoryForms": { - "type": "object", - "properties": { - "amount": { - "description": "鍦ㄥ簱鏁伴噺", - "type": "number" - }, - "availableNumber": { - "description": "鍙敤搴撳瓨", - "type": "number" - }, - "cost": { - "description": "鎴愭湰", - "type": "number" - }, - "in": { - "description": "鍏ュ簱", - "type": "number" - }, - "out": { - "description": "鍑哄簱", - "type": "number" - }, - "produceId": { - "description": "浜у搧id", - "type": "string" - }, - "productName": { - "description": "浜у搧鍚嶇О", - "type": "string" - }, - "productType": { - "description": "浜у搧绫诲瀷", - "type": "string" - }, - "unit": { - "description": "鍗曚綅", - "type": "string" - }, - "value": { - "description": "鎬讳环鍊�", - "type": "number" - } - } - }, - "response.InventoryHistory": { - "type": "object", - "properties": { - "amount": { - "description": "鏁伴噺", - "type": "number" - }, - "baseOperationType": { - "description": "鍩虹浣滀笟绫诲瀷", - "allOf": [ - { - "$ref": "#/definitions/constvar.BaseOperationType" - } - ] - }, - "contactedName": { - "description": "瀹屾垚鑰�", - "type": "string" - }, - "date": { - "description": "鏃ユ湡", - "type": "string" - }, - "fromLocation": { - "description": "婧愪綅缃�", - "type": "string" - }, - "number": { - "description": "鍗曞彿", - "type": "string" - }, - "toLocation": { - "description": "鐩爣浣嶇疆", - "type": "string" - }, - "unit": { - "description": "鍗曚綅", - "type": "string" - } - } - }, "util.Response": { "type": "object", "properties": { @@ -3300,8 +3226,6 @@ Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", } func init() { -- Gitblit v1.8.0