From ee20ffe2a2d1494af0a1285440605d67a5846da6 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 21 九月 2023 09:34:50 +0800 Subject: [PATCH] 1.出入库一部分代码 --- docs/docs.go | 117 ++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 65 insertions(+), 52 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index e0a89ae..bc7b478 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -467,6 +467,34 @@ } } }, + "/api-wms/v1/operation/finish/{id}": { + "put": { + "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/operation": { "get": { "consumes": [ @@ -537,7 +565,7 @@ } }, "/api-wms/v1/operation/operation/{id}": { - "put": { + "post": { "produces": [ "application/json" ], @@ -605,7 +633,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "鏌ヨ浣滀笟绫诲瀷鍒楄〃", "parameters": [ @@ -656,7 +684,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "娣诲姞浣滀笟绫诲瀷", "parameters": [ @@ -686,7 +714,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "缂栬緫浣滀笟绫诲瀷", "parameters": [ @@ -721,7 +749,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "鍒犻櫎浣滀笟绫诲瀷", "parameters": [ @@ -1622,10 +1650,6 @@ "models.Material": { "type": "object", "properties": { - "HSCode": { - "description": "HS缂栫爜", - "type": "string" - }, "amount": { "description": "鏁伴噺", "type": "number" @@ -1679,14 +1703,14 @@ "type": "number" }, "deliveryAdvanceTime": { - "description": "浜よ揣鎻愬墠鏃堕棿(澶�)", - "type": "integer" + "description": "瀹㈡埛鍓嶇疆鏃堕棿(澶�)", + "type": "number" }, "id": { "type": "string" }, "inStorageExplain": { - "description": "鍏ュ簱璇存槑", + "description": "HSCode string ` + "`" + `gorm:\"type:varchar(255);comment:HS缂栫爜\" json:\"HSCode\"` + "`" + ` //HS缂栫爜\nOriginCountryId int ` + "`" + `gorm:\"type:int(11);comment:鍘熶骇鍦癷d\" json:\"originCountryId\"` + "`" + ` //鍘熶骇鍦癷d\nOriginCountryName string ` + "`" + `gorm:\"type:varchar(255);comment:鍘熶骇鍦板悕绉癨" json:\"originCountryName\"` + "`" + ` //鍘熶骇鍦板悕绉�", "type": "string" }, "internalNotes": { @@ -1713,6 +1737,10 @@ "description": "PurchaseType constvar.PurchaseType ` + "`" + `gorm:\"type:int(11);comment:閲囪喘绫诲瀷\" json:\"purchaseType\"` + "`" + `", "type": "boolean" }, + "makeAdvanceTime": { + "description": "鍒堕�犲墠缃椂闂�(澶�)", + "type": "number" + }, "maxInventory": { "description": "鏈�澶у簱瀛�", "type": "number" @@ -1737,6 +1765,10 @@ "description": "鐗╂枡鍚嶇О", "type": "string" }, + "orderAdvanceTime": { + "description": "璁㈠崟鍑嗗澶╂暟(澶�)", + "type": "number" + }, "orderCreation": { "description": "璁㈠崟鍒涘缓", "allOf": [ @@ -1744,14 +1776,6 @@ "$ref": "#/definitions/constvar.OrderCreation" } ] - }, - "originCountryId": { - "description": "鍘熶骇鍦癷d", - "type": "integer" - }, - "originCountryName": { - "description": "鍘熶骇鍦板悕绉�", - "type": "string" }, "outStorageExplain": { "description": "鍑哄簱璇存槑", @@ -2089,22 +2113,24 @@ "request.AddOperation": { "type": "object", "properties": { - "carrierID": { - "type": "integer" - }, - "carrierName": { + "comment": { + "description": "澶囨敞", "type": "string" }, "companyID": { + "description": "鍏徃ID-瀹㈡埛", "type": "integer" }, "companyName": { + "description": "鍏徃鍚嶇О-瀹㈡埛鍚嶇О", "type": "string" }, "contacterID": { + "description": "鑱旂郴浜篒D-闈炲繀濉�", "type": "integer" }, "contacterName": { + "description": "鑱旂郴浜哄鍚�-闈炲繀濉�", "type": "string" }, "details": { @@ -2125,6 +2151,7 @@ "type": "string" }, "operationDate": { + "description": "瀹夋帓鏃ユ湡", "type": "string" }, "operationTypeId": { @@ -2146,15 +2173,6 @@ "toLocationId": { "description": "鐩爣浣嶇疆id", "type": "integer" - }, - "tracking": { - "type": "string" - }, - "transferWeight": { - "type": "number" - }, - "weight": { - "type": "number" } } }, @@ -2302,13 +2320,13 @@ "request.OperationDetails": { "type": "object", "properties": { - "finishQuantity": { - "description": "瀹屾垚鏁伴噺", - "type": "number" + "OperationId": { + "description": "鎿嶄綔id", + "type": "integer" }, "productId": { "description": "浜у搧id", - "type": "integer" + "type": "string" }, "productName": { "description": "浜у搧鍚嶇О", @@ -2317,6 +2335,9 @@ "quantity": { "description": "鏁伴噺", "type": "number" + }, + "unit": { + "type": "string" } } }, @@ -2359,22 +2380,24 @@ "request.UpdateOperation": { "type": "object", "properties": { - "carrierID": { - "type": "integer" - }, - "carrierName": { + "comment": { + "description": "澶囨敞", "type": "string" }, "companyID": { + "description": "鍏徃ID-瀹㈡埛", "type": "integer" }, "companyName": { + "description": "鍏徃鍚嶇О-瀹㈡埛鍚嶇О", "type": "string" }, "contacterID": { + "description": "鑱旂郴浜篒D-闈炲繀濉�", "type": "integer" }, "contacterName": { + "description": "鑱旂郴浜哄鍚�-闈炲繀濉�", "type": "string" }, "details": { @@ -2395,6 +2418,7 @@ "type": "string" }, "operationDate": { + "description": "瀹夋帓鏃ユ湡", "type": "string" }, "operationTypeId": { @@ -2416,15 +2440,6 @@ "toLocationId": { "description": "鐩爣浣嶇疆id", "type": "integer" - }, - "tracking": { - "type": "string" - }, - "transferWeight": { - "type": "number" - }, - "weight": { - "type": "number" } } }, @@ -2546,8 +2561,6 @@ Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", } func init() { -- Gitblit v1.8.0