From ea02a2a9a8219d44b103f0a31cf9fc81ff8495e1 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 23 九月 2023 16:57:48 +0800 Subject: [PATCH] 产品列表添加类型名称 --- docs/docs.go | 326 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 267 insertions(+), 59 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index f67d02f..bce2dc6 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -294,6 +294,207 @@ } } }, + "/api-wms/v1/location/addLocation": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浣嶇疆" + ], + "summary": "娣诲姞浣嶇疆淇℃伅", + "parameters": [ + { + "description": "浣嶇疆淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/models.Location" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/location/deleteLocation/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "浣嶇疆" + ], + "summary": "鍒犻櫎浣嶇疆", + "parameters": [ + { + "type": "string", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/location/getLocationDetails/{id}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浣嶇疆" + ], + "summary": "鑾峰彇浣嶇疆璇︽儏", + "parameters": [ + { + "type": "string", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.Location" + } + } + } + ] + } + } + } + } + }, + "/api-wms/v1/location/getLocationList": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浣嶇疆" + ], + "summary": "鑾峰彇浣嶇疆鍒楄〃", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetProductList" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.Location" + } + } + } + } + ] + } + } + } + } + }, + "/api-wms/v1/location/updateLocation": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浣嶇疆" + ], + "summary": "淇敼浣嶇疆", + "parameters": [ + { + "description": "浜у搧淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/models.Location" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/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": [ @@ -432,7 +633,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "鏌ヨ浣滀笟绫诲瀷鍒楄〃", "parameters": [ @@ -483,7 +684,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "娣诲姞浣滀笟绫诲瀷", "parameters": [ @@ -513,7 +714,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "缂栬緫浣滀笟绫诲瀷", "parameters": [ @@ -548,7 +749,7 @@ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "涓氬姟绫诲瀷" ], "summary": "鍒犻櫎浣滀笟绫诲瀷", "parameters": [ @@ -1383,14 +1584,6 @@ "models.Location": { "type": "object", "properties": { - "company": { - "description": "鍏徃", - "allOf": [ - { - "$ref": "#/definitions/models.Company" - } - ] - }, "companyId": { "description": "鍏徃id", "type": "integer" @@ -1401,6 +1594,14 @@ }, "createTime": { "type": "string" + }, + "forceRemovalStrategy": { + "description": "涓嬫灦绛栫暐", + "allOf": [ + { + "$ref": "#/definitions/constvar.ForceRemovalStrategy" + } + ] }, "id": { "type": "integer" @@ -1417,8 +1618,20 @@ "description": "浣嶇疆鍚嶇О", "type": "string" }, + "nextCount": { + "description": "涓嬫鐩樼偣", + "type": "string" + }, + "notes": { + "description": "澶栭儴澶囨敞", + "type": "string" + }, "parentId": { "description": "涓婄骇id", + "type": "string" + }, + "recentlyCount": { + "description": "鏈�杩戠洏鐐�", "type": "string" }, "replenishLocation": { @@ -1426,7 +1639,7 @@ "type": "boolean" }, "type": { - "description": "浣嶇疆绫诲瀷", + "description": "Company Company ` + "`" + `json:\"company\" gorm:\"foreignKey:CompanyId\"` + "`" + ` //鍏徃", "allOf": [ { "$ref": "#/definitions/constvar.LocationType" @@ -1441,10 +1654,6 @@ "models.Material": { "type": "object", "properties": { - "HSCode": { - "description": "HS缂栫爜", - "type": "string" - }, "amount": { "description": "鏁伴噺", "type": "number" @@ -1498,14 +1707,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": { @@ -1532,6 +1741,10 @@ "description": "PurchaseType constvar.PurchaseType ` + "`" + `gorm:\"type:int(11);comment:閲囪喘绫诲瀷\" json:\"purchaseType\"` + "`" + `", "type": "boolean" }, + "makeAdvanceTime": { + "description": "鍒堕�犲墠缃椂闂�(澶�)", + "type": "number" + }, "maxInventory": { "description": "鏈�澶у簱瀛�", "type": "number" @@ -1556,6 +1769,10 @@ "description": "鐗╂枡鍚嶇О", "type": "string" }, + "orderAdvanceTime": { + "description": "璁㈠崟鍑嗗澶╂暟(澶�)", + "type": "number" + }, "orderCreation": { "description": "璁㈠崟鍒涘缓", "allOf": [ @@ -1563,14 +1780,6 @@ "$ref": "#/definitions/constvar.OrderCreation" } ] - }, - "originCountryId": { - "description": "鍘熶骇鍦癷d", - "type": "integer" - }, - "originCountryName": { - "description": "鍘熶骇鍦板悕绉�", - "type": "string" }, "outStorageExplain": { "description": "鍑哄簱璇存槑", @@ -1606,7 +1815,7 @@ }, "selectProduct": { "description": "鍙�変骇鍝乮d", - "type": "integer" + "type": "string" }, "sellExplain": { "description": "閿�鍞鏄�", @@ -1696,11 +1905,19 @@ "description": "榛樿婧愪綅缃甶d", "type": "integer" }, + "earlyOperations": { + "description": "棰勫~鍐欎綔涓氳鎯�", + "type": "boolean" + }, "id": { "type": "integer" }, "name": { "description": "浠撳簱鍚嶇О", + "type": "string" + }, + "prefix": { + "description": "鍓嶇紑", "type": "string" }, "printLabel": { @@ -1908,22 +2125,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": { @@ -1944,6 +2163,7 @@ "type": "string" }, "operationDate": { + "description": "瀹夋帓鏃ユ湡", "type": "string" }, "operationTypeId": { @@ -1965,15 +2185,6 @@ "toLocationId": { "description": "鐩爣浣嶇疆id", "type": "integer" - }, - "tracking": { - "type": "string" - }, - "transferWeight": { - "type": "number" - }, - "weight": { - "type": "number" } } }, @@ -2121,13 +2332,13 @@ "request.OperationDetails": { "type": "object", "properties": { - "finishQuantity": { - "description": "瀹屾垚鏁伴噺", - "type": "number" + "OperationId": { + "description": "鎿嶄綔id", + "type": "integer" }, "productId": { "description": "浜у搧id", - "type": "integer" + "type": "string" }, "productName": { "description": "浜у搧鍚嶇О", @@ -2136,6 +2347,9 @@ "quantity": { "description": "鏁伴噺", "type": "number" + }, + "unit": { + "type": "string" } } }, @@ -2178,22 +2392,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": { @@ -2214,6 +2430,7 @@ "type": "string" }, "operationDate": { + "description": "瀹夋帓鏃ユ湡", "type": "string" }, "operationTypeId": { @@ -2235,15 +2452,6 @@ "toLocationId": { "description": "鐩爣浣嶇疆id", "type": "integer" - }, - "tracking": { - "type": "string" - }, - "transferWeight": { - "type": "number" - }, - "weight": { - "type": "number" } } }, -- Gitblit v1.8.0