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 | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 104 insertions(+), 7 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 07d8fc6..b81598e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2116,6 +2116,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" + } + } + } + } + }, "/api-wms/v1/product/updateDisuse": { "post": { "produces": [ @@ -2836,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": [ @@ -3121,6 +3178,18 @@ }, "updateTime": { "type": "string" + }, + "warehouse": { + "description": "浠撳簱", + "allOf": [ + { + "$ref": "#/definitions/models.Warehouse" + } + ] + }, + "warehouseId": { + "description": "浠撳簱ID", + "type": "integer" } } }, @@ -3480,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" @@ -3495,6 +3572,9 @@ "type": "string" }, "receiverPhone": { + "type": "string" + }, + "salesDetailsNumber": { "type": "string" }, "source": { @@ -3725,9 +3805,6 @@ }, "models.Warehouse": { "type": "object", - "required": [ - "code" - ], "properties": { "active": { "description": "鏄惁鍚敤锛屼紶true灏辫", @@ -3743,9 +3820,7 @@ }, "code": { "description": "浠撳簱缂栫爜", - "type": "string", - "maxLength": 5, - "minLength": 1 + "type": "string" }, "company": { "$ref": "#/definitions/models.Company" @@ -3768,7 +3843,7 @@ "type": "integer" }, "locationId": { - "description": "浣嶇疆id", + "description": "榛樿浣嶇疆id", "type": "integer" }, "name": { @@ -4466,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