From 6becb6b281b34e17197a25af86acd35628e88811 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期三, 20 九月 2023 17:51:18 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS --- docs/docs.go | 435 +++++++++++++++++++++++++++++++++--------------------- 1 files changed, 265 insertions(+), 170 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index c19f52e..f67d02f 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -426,6 +426,150 @@ } } }, + "/api-wms/v1/operationType/operationType": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浣滀笟绫诲瀷" + ], + "summary": "鏌ヨ浣滀笟绫诲瀷鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.OperationType" + } + } + } + } + ] + } + } + } + }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浣滀笟绫诲瀷" + ], + "summary": "娣诲姞浣滀笟绫诲瀷", + "parameters": [ + { + "description": "浣滀笟绫诲瀷淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddOperationType" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/api-wms/v1/operationType/operationType/{id}": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "浣滀笟绫诲瀷" + ], + "summary": "缂栬緫浣滀笟绫诲瀷", + "parameters": [ + { + "description": "浣滀笟绫诲瀷淇℃伅", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateOperationType" + } + }, + { + "type": "string", + "description": "浣滀笟绫诲瀷id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + }, + "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/product/addProduct": { "post": { "produces": [ @@ -772,32 +916,22 @@ } } }, - "/api-wms/v1/warehouse/operationType": { + "/api-wms/v1/warehouse/getWarehouseDetails/{id}": { "get": { "produces": [ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "浠撳簱" ], - "summary": "鏌ヨ浣滀笟绫诲瀷鍒楄〃", + "summary": "鑾峰彇浠撳簱璇︽儏", "parameters": [ { "type": "string", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" + "description": "浠撳簱id", + "name": "id", + "in": "path", + "required": true } ], "responses": { @@ -806,16 +940,13 @@ "schema": { "allOf": [ { - "$ref": "#/definitions/util.ResponseList" + "$ref": "#/definitions/util.Response" }, { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/models.OperationType" - } + "$ref": "#/definitions/models.Warehouse" } } } @@ -823,87 +954,26 @@ } } } - }, + } + }, + "/api-wms/v1/warehouse/updateWarehouse": { "post": { "produces": [ "application/json" ], "tags": [ - "浣滀笟绫诲瀷" + "浠撳簱" ], - "summary": "娣诲姞浣滀笟绫诲瀷", + "summary": "缂栬緫浠撳簱", "parameters": [ { - "description": "浣滀笟绫诲瀷淇℃伅", + "description": "浠撳簱淇℃伅", "name": "object", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.AddOperationType" + "$ref": "#/definitions/models.Warehouse" } - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/util.Response" - } - } - } - } - }, - "/api-wms/v1/warehouse/operationType/{id}": { - "put": { - "produces": [ - "application/json" - ], - "tags": [ - "浣滀笟绫诲瀷" - ], - "summary": "缂栬緫浣滀笟绫诲瀷", - "parameters": [ - { - "description": "浣滀笟绫诲瀷淇℃伅", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.UpdateOperationType" - } - }, - { - "type": "string", - "description": "浣滀笟绫诲瀷id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/util.Response" - } - } - } - }, - "delete": { - "produces": [ - "application/json" - ], - "tags": [ - "浣滀笟绫诲瀷" - ], - "summary": "鍒犻櫎浣滀笟绫诲瀷", - "parameters": [ - { - "type": "string", - "description": "浣滀笟绫诲瀷id", - "name": "id", - "in": "path", - "required": true } ], "responses": { @@ -998,41 +1068,6 @@ } }, "/api-wms/v1/warehouse/warehouse/{id}": { - "put": { - "produces": [ - "application/json" - ], - "tags": [ - "浠撳簱" - ], - "summary": "缂栬緫浠撳簱", - "parameters": [ - { - "description": "浠撳簱淇℃伅", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.UpdateWarehouse" - } - }, - { - "type": "string", - "description": "浠撳簱id", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "鎴愬姛", - "schema": { - "$ref": "#/definitions/util.Response" - } - } - } - }, "delete": { "produces": [ "application/json" @@ -1235,6 +1270,24 @@ "TaskAndObject" ] }, + "constvar.ProductType": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { + "Consumables": "娑堣�楀搧", + "Server": "鏈嶅姟", + "StoredProduct": "鍙偍瀛樼殑浜у搧" + }, + "x-enum-varnames": [ + "Consumables", + "Server", + "StoredProduct" + ] + }, "constvar.ReservationMethod": { "type": "integer", "enum": [ @@ -1366,7 +1419,7 @@ }, "parentId": { "description": "涓婄骇id", - "type": "integer" + "type": "string" }, "replenishLocation": { "description": "鏄惁琛ュ厖浣嶇疆", @@ -1389,9 +1442,11 @@ "type": "object", "properties": { "HSCode": { + "description": "HS缂栫爜", "type": "string" }, "amount": { + "description": "鏁伴噺", "type": "number" }, "barcode": { @@ -1399,6 +1454,7 @@ "type": "string" }, "buyExplain": { + "description": "閲囪喘璇存槑", "type": "string" }, "canBePurchased": { @@ -1409,20 +1465,32 @@ "description": "浜у搧绫诲埆id", "type": "integer" }, + "categoryName": { + "description": "浜у搧绫诲埆鍚嶇О", + "type": "string" + }, "companyId": { + "description": "鍏徃id", "type": "integer" }, "companyName": { + "description": "鍏徃鍚嶇О", "type": "string" }, "controlStrategy": { - "$ref": "#/definitions/constvar.InvoicingStrategy" + "description": "鎺у埗绛栫暐", + "allOf": [ + { + "$ref": "#/definitions/constvar.InvoicingStrategy" + } + ] }, "cost": { "description": "鎴愭湰", "type": "number" }, "currencyName": { + "description": "甯佺鍚嶇О", "type": "string" }, "customerTaxes": { @@ -1430,12 +1498,14 @@ "type": "number" }, "deliveryAdvanceTime": { + "description": "浜よ揣鎻愬墠鏃堕棿(澶�)", "type": "integer" }, "id": { "type": "string" }, "inStorageExplain": { + "description": "鍏ュ簱璇存槑", "type": "string" }, "internalNotes": { @@ -1447,10 +1517,11 @@ "type": "string" }, "internalTransferExplain": { + "description": "鍐呴儴璋冩嫧璇存槑", "type": "string" }, "invoicingStrategy": { - "description": "wms娣诲姞瀛楁", + "description": "寮�绁ㄧ瓥鐣�", "allOf": [ { "$ref": "#/definitions/constvar.InvoicingStrategy" @@ -1462,6 +1533,7 @@ "type": "boolean" }, "maxInventory": { + "description": "鏈�澶у簱瀛�", "type": "number" }, "minInventory": { @@ -1481,18 +1553,27 @@ ] }, "name": { + "description": "鐗╂枡鍚嶇О", "type": "string" }, "orderCreation": { - "$ref": "#/definitions/constvar.OrderCreation" + "description": "璁㈠崟鍒涘缓", + "allOf": [ + { + "$ref": "#/definitions/constvar.OrderCreation" + } + ] }, "originCountryId": { + "description": "鍘熶骇鍦癷d", "type": "integer" }, "originCountryName": { + "description": "鍘熶骇鍦板悕绉�", "type": "string" }, "outStorageExplain": { + "description": "鍑哄簱璇存槑", "type": "string" }, "principal": { @@ -1500,26 +1581,43 @@ "type": "string" }, "productTagId": { - "description": "浜у搧鏍囩", + "description": "浜у搧鏍囩id", "type": "integer" }, "productTagName": { + "description": "浜у搧鏍囩鍚嶇О", "type": "string" }, + "productType": { + "description": "wms娣诲姞瀛楁", + "allOf": [ + { + "$ref": "#/definitions/constvar.ProductType" + } + ] + }, "purchasePrice": { + "description": "閲囪喘浠锋牸", "type": "number" }, "salePrice": { + "description": "閿�鍞崟浠�", "type": "number" }, "selectProduct": { + "description": "鍙�変骇鍝乮d", "type": "integer" }, "sellExplain": { + "description": "閿�鍞鏄�", "type": "string" }, "supplier": { "description": "FSource string ` + "`" + `gorm:\"type:varchar(191);comment:鐢熶骇杞﹂棿\" json:\"-\"` + "`" + `\nStatus constvar.MaterialStatus ` + "`" + `gorm:\"type:int(11);comment:鐘舵�乗" json:\"status\"` + "`" + `", + "type": "string" + }, + "templateID": { + "description": "Note string ` + "`" + `gorm:\"type:varchar(1024);comment:澶囨敞\" json:\"note\"` + "`" + `", "type": "string" }, "unit": { @@ -1689,6 +1787,7 @@ "type": "integer" }, "routeId": { + "description": "璺嚎id", "type": "integer" }, "routeName": { @@ -1706,6 +1805,10 @@ "active": { "description": "鏄惁鍚敤锛屼紶true灏辫", "type": "boolean" + }, + "address": { + "description": "鍦板潃", + "type": "string" }, "buyToResupply": { "description": "鏄惁璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�", @@ -1729,9 +1832,21 @@ "id": { "type": "integer" }, + "inboundTransportation": { + "description": "鍏ュ悜杩愯緭", + "type": "integer" + }, + "locationId": { + "description": "浣嶇疆id", + "type": "integer" + }, "name": { "description": "浠撳簱鍚嶇О", "type": "string" + }, + "outboundTransportation": { + "description": "鍑哄簱杩愯緭", + "type": "integer" }, "partnerId": { "description": "鍚堜綔浼欎即id", @@ -1752,6 +1867,10 @@ } }, "updateTime": { + "type": "string" + }, + "warehouseLocation": { + "description": "搴撳瓨浣嶇疆", "type": "string" } } @@ -1940,6 +2059,10 @@ "description": "鏄惁鍚敤锛屼紶true灏辫", "type": "boolean" }, + "address": { + "description": "鍦板潃", + "type": "string" + }, "buyToResupply": { "description": "璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�", "type": "boolean" @@ -1950,9 +2073,21 @@ "maxLength": 5, "minLength": 1 }, + "inboundTransportation": { + "description": "鍏ュ悜杩愯緭", + "type": "integer" + }, + "locationId": { + "description": "浣嶇疆id", + "type": "integer" + }, "name": { "description": "浠撳簱鍚嶇О", "type": "string" + }, + "outboundTransportation": { + "description": "鍑哄簱杩愯緭", + "type": "integer" }, "partnerId": { "description": "鍚堜綔浼欎即id", @@ -2181,46 +2316,6 @@ "warehouseId": { "description": "浠撳簱id", "type": "integer" - } - } - }, - "request.UpdateWarehouse": { - "type": "object", - "required": [ - "code" - ], - "properties": { - "active": { - "description": "鏄惁鍚敤锛屼紶true灏辫", - "type": "boolean" - }, - "buyToResupply": { - "description": "璐拱琛ョ粰锛屽凡璐拱浜у搧鑳藉鍙戦�佸埌姝や粨搴�", - "type": "boolean" - }, - "code": { - "description": "浠撳簱缂栫爜", - "type": "string", - "maxLength": 5, - "minLength": 1 - }, - "id": { - "type": "integer" - }, - "name": { - "description": "浠撳簱鍚嶇О", - "type": "string" - }, - "partnerId": { - "description": "鍚堜綔浼欎即id", - "type": "integer" - }, - "resupplyWhIds": { - "description": "琛ョ粰鏉ユ簮浠撳簱ID", - "type": "array", - "items": { - "type": "string" - } } } }, -- Gitblit v1.8.0