From b784b08a26808e9faccb7ea397de946501a939eb Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期三, 27 九月 2023 20:08:43 +0800 Subject: [PATCH] 1.二期一部分代码 --- docs/docs.go | 364 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 358 insertions(+), 6 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index d20b847..4f78bf4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -294,6 +294,141 @@ } } }, + "/api-wms/v1/forms/getHistory": { + "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/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/getLocationForms": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鎶ヨ〃" + ], + "summary": "鑾峰彇浣嶇疆鎶ヨ〃", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.PageInfo" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/response.LocationForms" + } + } + } + } + ] + } + } + } + } + }, "/api-wms/v1/location/addLocation": { "post": { "produces": [ @@ -632,6 +767,36 @@ "required": true, "schema": { "$ref": "#/definitions/request.PageInfo" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/locationProductAmount/update": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "搴撳瓨鐩樼偣" + ], + "summary": "淇敼搴撳瓨鐩樼偣淇℃伅", + "parameters": [ + { + "description": "鍏ュ簱/鍑哄簱淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateLocationProductAmount" } } ], @@ -2791,6 +2956,55 @@ } } }, + "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": { @@ -2862,9 +3076,6 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" - }, - "sourceNumber": { - "type": "string" } } }, @@ -2894,9 +3105,6 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" - }, - "sourceNumber": { - "type": "string" } } }, @@ -3022,6 +3230,31 @@ }, "productCategoryId": { "description": "浜у搧绉嶇被id", + "type": "integer" + }, + "productId": { + "description": "浜у搧id", + "type": "string" + } + } + }, + "request.UpdateLocationProductAmount": { + "type": "object", + "properties": { + "Amount": { + "description": "搴撳瓨鏁伴噺", + "type": "number" + }, + "adjustAmount": { + "description": "LocationProductAmountId int ` + "`" + `json:\"locationProductAmountId\"` + "`" + ` //搴撳瓨鐩樼偣id", + "type": "number" + }, + "differenceAmount": { + "description": "璁℃暟鏁伴噺", + "type": "number" + }, + "operationId": { + "description": "鍑哄叆搴搃d", "type": "integer" }, "productId": { @@ -3180,6 +3413,125 @@ } } }, + "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" + } + } + }, + "response.LocationForms": { + "type": "object", + "properties": { + "amount": { + "description": "鏁伴噺", + "type": "number" + }, + "locationName": { + "description": "浣嶇疆鍚嶇О", + "type": "string" + }, + "produceId": { + "description": "浜у搧id", + "type": "string" + }, + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" + }, + "productTypeName": { + "description": "浜у搧绫诲埆", + "type": "string" + }, + "unit": { + "description": "鍗曚綅", + "type": "string" + }, + "value": { + "description": "鎬讳环鍊�", + "type": "number" + } + } + }, "util.Response": { "type": "object", "properties": { -- Gitblit v1.8.0