From 6dec2342316aecf4084c8f4efb43f33fbb72892f Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 09 四月 2024 14:07:43 +0800 Subject: [PATCH] 更新计量单位字典 --- docs/docs.go | 182 +++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 175 insertions(+), 7 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 5a2c468..b81598e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1930,6 +1930,40 @@ } } }, + "/api-wms/v1/product/getUnitInfo": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "鑾峰彇鍗曚綅淇℃伅", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.UnitDict" + } + } + } + } + ] + } + } + } + } + }, "/api-wms/v1/product/getUserInfo": { "get": { "produces": [ @@ -2077,6 +2111,36 @@ } } ] + } + } + } + } + }, + "/api-wms/v1/product/saveUnitDict": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鏇存柊璁¢噺鍗曚綅瀛楀吀", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SaveUnitDict" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" } } } @@ -2802,6 +2866,33 @@ "MaterialModeVirtual" ] }, + "constvar.OperationSource": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "x-enum-comments": { + "OperationSourceOutsourcing": "濮斿鍏ュ簱", + "OperationSourceOutsourcingApply": "濮斿棰嗘枡", + "OperationSourceProduction": "鐢熶骇鍏ュ簱", + "OperationSourceProductionApply": "鐢熶骇棰嗘枡", + "OperationSourcePurchase": "閲囪喘鍏ュ簱", + "OperationSourceSaleDelivery": "閿�鍞彂璐�" + }, + "x-enum-varnames": [ + "OperationSourcePurchase", + "OperationSourceProduction", + "OperationSourceOutsourcing", + "OperationSourceProductionApply", + "OperationSourceOutsourcingApply", + "OperationSourceSaleDelivery" + ] + }, "constvar.OperationStatus": { "type": "integer", "enum": [ @@ -3087,6 +3178,18 @@ }, "updateTime": { "type": "string" + }, + "warehouse": { + "description": "浠撳簱", + "allOf": [ + { + "$ref": "#/definitions/models.Warehouse" + } + ] + }, + "warehouseId": { + "description": "浠撳簱ID", + "type": "integer" } } }, @@ -3125,6 +3228,7 @@ "type": "number" }, "attachmentIDs": { + "description": "浠ヤ笅涓轰笉瀛樺簱鐨勫瓧娈�", "type": "array", "items": { "type": "integer" @@ -3229,6 +3333,14 @@ "description": "鏄惁閿�鍞�", "type": "boolean" }, + "isStorage": { + "description": "鏃犲簱瀛樼殑鍦╳ms浠ュ強srm涓渶瑕佽繃婊ゆ帀", + "type": "integer" + }, + "isVirtual": { + "description": "铏氭嫙鐗╂枡鍦∕RP璁$畻鏃惰烦杩囪灞傜骇鐩存帴棰嗙敤涓嬬骇鐗╂枡锛岃櫄鎷熺墿鏂欎笉鐢熸垚宸ュ崟", + "type": "integer" + }, "makeAdvanceTime": { "description": "鍒堕�犲墠缃椂闂�(澶�)", "type": "number" @@ -3316,6 +3428,12 @@ }, "purchaseType": { "$ref": "#/definitions/constvar.PurchaseType" + }, + "purchaseTypeList": { + "type": "array", + "items": { + "type": "integer" + } }, "reorderRuleNum": { "type": "integer" @@ -3431,6 +3549,14 @@ "description": "FromLocationID int ` + "`" + `json:\"fromLocationId\" gorm:\"type:int;not null;comment:婧愪綅缃甶d\"` + "`" + ` //婧愪綅缃甶d\nFromLocation Location ` + "`" + `json:\"fromLocation\" gorm:\"foreignKey:FromLocationID;references:Id\"` + "`" + ` //婧愪綅缃甛nToLocationID int ` + "`" + `json:\"toLocationId\" gorm:\"type:int;not null;comment:鐩爣浣嶇疆id\"` + "`" + ` //鐩爣浣嶇疆id\nToLocation Location ` + "`" + `json:\"toLocation\" gorm:\"foreignKey:ToLocationID;references:Id\"` + "`" + ` //鐩爣浣嶇疆", "type": "string" }, + "operationSource": { + "description": "鎿嶄綔鏉ユ簮", + "allOf": [ + { + "$ref": "#/definitions/constvar.OperationSource" + } + ] + }, "operationTypeId": { "description": "浣滀笟绫诲瀷id", "type": "integer" @@ -3446,6 +3572,9 @@ "type": "string" }, "receiverPhone": { + "type": "string" + }, + "salesDetailsNumber": { "type": "string" }, "source": { @@ -3660,11 +3789,22 @@ } } }, + "models.UnitDict": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "isDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, "models.Warehouse": { "type": "object", - "required": [ - "code" - ], "properties": { "active": { "description": "鏄惁鍚敤锛屼紶true灏辫", @@ -3680,15 +3820,17 @@ }, "code": { "description": "浠撳簱缂栫爜", - "type": "string", - "maxLength": 5, - "minLength": 1 + "type": "string" }, "company": { "$ref": "#/definitions/models.Company" }, "companyId": { "type": "integer" + }, + "contacts": { + "description": "鑱旂郴浜�", + "type": "string" }, "createTime": { "type": "string" @@ -3701,7 +3843,7 @@ "type": "integer" }, "locationId": { - "description": "浣嶇疆id", + "description": "榛樿浣嶇疆id", "type": "integer" }, "name": { @@ -4016,6 +4158,10 @@ "type": "string", "maxLength": 5, "minLength": 1 + }, + "contacts": { + "description": "鑱旂郴浜�", + "type": "string" }, "inboundTransportation": { "description": "鍏ュ悜杩愯緭", @@ -4395,6 +4541,28 @@ } } }, + "request.SaveUnitDict": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UnitDict" + } + } + } + }, + "request.UnitDict": { + "type": "object", + "properties": { + "isDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, "request.UpdateCompany": { "type": "object", "properties": { -- Gitblit v1.8.0