From 1115ba492bd6afe4b9ae07284accbaa3ad4e1596 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 16 四月 2024 11:35:41 +0800
Subject: [PATCH] 添加重量字段
---
docs/docs.go | 306 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 299 insertions(+), 7 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 07d8fc6..a9b4d8d 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -936,6 +936,48 @@
}
}
},
+ "/api-wms/v1/locationProductAmount/getLocationProductAmount": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "搴撳瓨鐩樼偣"
+ ],
+ "summary": "鑾峰彇浣嶇疆浜у搧淇℃伅",
+ "parameters": [
+ {
+ "description": "鍏ュ弬",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.GetRuleList"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/util.Response"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "$ref": "#/definitions/models.LocationProductAmount"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/locationProductAmount/getRuleList": {
"post": {
"produces": [
@@ -1173,6 +1215,51 @@
"description": "鎴愬姛",
"schema": {
"$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/operation/getPersonnelList": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "鍏ュ簱/鍑哄簱"
+ ],
+ "summary": "鑾峰彇浜哄憳鍒楄〃",
+ "parameters": [
+ {
+ "description": "鍙傛暟",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.OperationCondition"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/util.ResponseList"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/inventory_order.WorkerInfo"
+ }
+ }
+ }
+ }
+ ]
}
}
}
@@ -2116,6 +2203,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 +2953,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": [
@@ -2967,6 +3111,17 @@
"WhetherTypeAlways",
"ReservationNever"
]
+ },
+ "inventory_order.WorkerInfo": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
},
"models.Attachment": {
"type": "object",
@@ -3118,6 +3273,61 @@
"$ref": "#/definitions/constvar.LocationType"
}
]
+ },
+ "updateTime": {
+ "type": "string"
+ },
+ "warehouse": {
+ "description": "浠撳簱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/models.Warehouse"
+ }
+ ]
+ },
+ "warehouseId": {
+ "description": "浠撳簱ID",
+ "type": "integer"
+ }
+ }
+ },
+ "models.LocationProductAmount": {
+ "type": "object",
+ "properties": {
+ "amount": {
+ "description": "搴撳瓨鏁伴噺",
+ "type": "number"
+ },
+ "createDate": {
+ "description": "鏃ユ湡",
+ "type": "string"
+ },
+ "createTime": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "location": {
+ "$ref": "#/definitions/models.Location"
+ },
+ "locationId": {
+ "description": "LocationProductId int ` + "`" + `json:\"locationProductId\" gorm:\"type:int;not null;comment:涓婃灦瑙勫垯id\"` + "`" + ` //涓婃灦瑙勫垯id\nLocationProduct LocationProduct ` + "`" + `json:\"locationProduct\" gorm:\"foreignKey:LocationProductId;references:Id\"` + "`" + `",
+ "type": "integer"
+ },
+ "product": {
+ "$ref": "#/definitions/models.Material"
+ },
+ "productCategory": {
+ "$ref": "#/definitions/models.ProductCategory"
+ },
+ "productCategoryId": {
+ "description": "浜у搧绉嶇被id",
+ "type": "integer"
+ },
+ "productId": {
+ "description": "浜у搧id",
+ "type": "string"
},
"updateTime": {
"type": "string"
@@ -3412,6 +3622,12 @@
"models.Operation": {
"type": "object",
"properties": {
+ "accountant": {
+ "type": "string"
+ },
+ "accountantId": {
+ "type": "string"
+ },
"auditDate": {
"type": "string"
},
@@ -3439,6 +3655,12 @@
"type": "string"
},
"createTime": {
+ "type": "string"
+ },
+ "custodian": {
+ "type": "string"
+ },
+ "custodianId": {
"type": "string"
},
"details": {
@@ -3472,6 +3694,12 @@
"description": "鐗╂祦閲嶉噺",
"type": "number"
},
+ "manager": {
+ "type": "string"
+ },
+ "managerId": {
+ "type": "string"
+ },
"number": {
"description": "鍗曞彿",
"type": "string"
@@ -3479,6 +3707,14 @@
"operationDate": {
"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",
@@ -3495,6 +3731,9 @@
"type": "string"
},
"receiverPhone": {
+ "type": "string"
+ },
+ "salesDetailsNumber": {
"type": "string"
},
"source": {
@@ -3725,9 +3964,6 @@
},
"models.Warehouse": {
"type": "object",
- "required": [
- "code"
- ],
"properties": {
"active": {
"description": "鏄惁鍚敤锛屼紶true灏辫",
@@ -3743,9 +3979,7 @@
},
"code": {
"description": "浠撳簱缂栫爜",
- "type": "string",
- "maxLength": 5,
- "minLength": 1
+ "type": "string"
},
"company": {
"$ref": "#/definitions/models.Company"
@@ -3768,7 +4002,7 @@
"type": "integer"
},
"locationId": {
- "description": "浣嶇疆id",
+ "description": "榛樿浣嶇疆id",
"type": "integer"
},
"name": {
@@ -3893,6 +4127,12 @@
"request.AddOperation": {
"type": "object",
"properties": {
+ "accountant": {
+ "type": "string"
+ },
+ "accountantId": {
+ "type": "string"
+ },
"comment": {
"description": "澶囨敞",
"type": "string"
@@ -3911,6 +4151,12 @@
},
"contacterName": {
"description": "鑱旂郴浜哄鍚�-闈炲繀濉�",
+ "type": "string"
+ },
+ "custodian": {
+ "type": "string"
+ },
+ "custodianId": {
"type": "string"
},
"details": {
@@ -3932,6 +4178,12 @@
"logisticWeight": {
"description": "鐗╂祦閲嶉噺",
"type": "number"
+ },
+ "manager": {
+ "type": "string"
+ },
+ "managerId": {
+ "type": "string"
},
"number": {
"description": "鍗曞彿",
@@ -4466,6 +4718,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": {
@@ -4605,6 +4879,12 @@
"request.UpdateOperation": {
"type": "object",
"properties": {
+ "accountant": {
+ "type": "string"
+ },
+ "accountantId": {
+ "type": "string"
+ },
"baseOperationType": {
"description": "鍩虹浣滀笟绫诲瀷",
"allOf": [
@@ -4633,6 +4913,12 @@
"description": "鑱旂郴浜哄鍚�-闈炲繀濉�",
"type": "string"
},
+ "custodian": {
+ "type": "string"
+ },
+ "custodianId": {
+ "type": "string"
+ },
"details": {
"type": "array",
"items": {
@@ -4653,6 +4939,12 @@
"description": "鐗╂祦閲嶉噺",
"type": "number"
},
+ "manager": {
+ "type": "string"
+ },
+ "managerId": {
+ "type": "string"
+ },
"number": {
"description": "鍗曞彿",
"type": "string"
--
Gitblit v1.8.0