From 93c71a94d77ffe1f36654decc0bada0a2ac27c88 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期二, 16 七月 2024 20:14:10 +0800 Subject: [PATCH] 添加方法,获取庄口列表 --- docs/docs.go | 390 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 377 insertions(+), 13 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index aee23f5..1e95ad9 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -691,6 +691,122 @@ } } }, + "/api-wms/v1/dict/getSilkDictList/{type}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鑾峰彇搴勫彛鍒楄〃", + "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "瀛楀吀绫诲瀷", + "name": "type", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.SilkDict" + } + } + } + } + ] + } + } + } + } + }, + "/api-wms/v1/dict/getUserList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "鏁版嵁瀛楀吀" + ], + "summary": "鑾峰彇鐢ㄦ埛鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "nickName", + "in": "query" + }, + { + "type": "string", + "name": "parentId", + "in": "query" + }, + { + "type": "string", + "name": "pos", + "in": "query" + }, + { + "type": "string", + "name": "userName", + "in": "query" + }, + { + "type": "integer", + "name": "userType", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/user.GetUserRequest" + } + } + } + } + ] + } + } + } + } + }, "/api-wms/v1/dict/save": { "post": { "produces": [ @@ -1681,6 +1797,13 @@ "summary": "娣诲姞搴撳瓨鐩樼偣淇℃伅", "parameters": [ { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { "description": "鍏ュ簱/鍑哄簱淇℃伅", "name": "object", "in": "body", @@ -1710,6 +1833,13 @@ ], "summary": "搴旂敤銆侀獙璇�", "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, { "description": "鍏ュ弬", "name": "object", @@ -1895,6 +2025,13 @@ "summary": "淇敼搴撳瓨鐩樼偣淇℃伅", "parameters": [ { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { "description": "鍏ュ簱/鍑哄簱淇℃伅", "name": "object", "in": "body", @@ -1952,6 +2089,13 @@ ], "summary": "鏇存敼璁板綍鐘舵��", "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, { "type": "integer", "description": "id", @@ -2119,6 +2263,13 @@ "summary": "鍏ュ簱/鍑哄簱鍒楄〃", "parameters": [ { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { "description": "鏌ヨ鍙傛暟", "name": "object", "in": "body", @@ -2224,6 +2375,13 @@ "summary": "娣诲姞鍏ュ簱/鍑哄簱", "parameters": [ { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, + { "description": "鍏ュ簱/鍑哄簱淇℃伅", "name": "object", "in": "body", @@ -2253,6 +2411,13 @@ ], "summary": "鍒犻櫎鍏ュ簱/鍑哄簱淇℃伅", "parameters": [ + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + }, { "type": "integer", "description": "id", @@ -4658,6 +4823,7 @@ "type": "string" }, "warehouseId": { + "description": "浠撳簱id", "type": "integer" } } @@ -5186,12 +5352,15 @@ "type": "object", "properties": { "accountant": { + "description": "浼氳鍚嶇О", "type": "string" }, "accountantId": { + "description": "浼氳id", "type": "string" }, "auditDate": { + "description": "瀹℃壒鏃堕棿", "type": "string" }, "baseOperationType": { @@ -5203,39 +5372,50 @@ ] }, "checkedBy": { + "description": "楠岃瘉鑰匲serId", "type": "string" }, "comment": { + "description": "澶囨敞", "type": "string" }, "companyID": { + "description": "鍏徃ID-瀹㈡埛", "type": "string" }, "companyName": { + "description": "鍏徃鍚嶇О-瀹㈡埛", "type": "string" }, "contacterID": { + "description": "鑱旂郴浜篒D", "type": "integer" }, "contacterName": { + "description": "鑱旂郴浜哄鍚�", "type": "string" }, "createBy": { + "description": "鍒涘缓鑰匲serId", "type": "string" }, "createTime": { "type": "string" }, "custodian": { + "description": "淇濈鍛樺悕绉�", "type": "string" }, "custodianId": { + "description": "淇濈鍛榠d", "type": "string" }, "dealerType": { + "description": "璋冩嫧鍑哄叆搴撶被鍨�", "type": "string" }, "details": { + "description": "鎿嶄綔鏄庣粏", "type": "array", "items": { "$ref": "#/definitions/models.OperationDetails" @@ -5261,9 +5441,15 @@ "type": "integer" }, "logisticCompany": { - "$ref": "#/definitions/models.LogisticCompany" + "description": "鐗╂祦鍏徃淇℃伅", + "allOf": [ + { + "$ref": "#/definitions/models.LogisticCompany" + } + ] }, "logisticCompanyId": { + "description": "鐗╂祦鍏徃id", "type": "string" }, "logisticWeight": { @@ -5271,9 +5457,11 @@ "type": "number" }, "manager": { + "description": "涓荤鍚嶇О", "type": "string" }, "managerId": { + "description": "涓荤id", "type": "string" }, "number": { @@ -5281,6 +5469,7 @@ "type": "string" }, "operationDate": { + "description": "瀹夋帓鏃ユ湡", "type": "string" }, "operationSource": { @@ -5300,21 +5489,31 @@ "type": "string" }, "receiverAddr": { + "description": "鏀惰揣鍦板潃", "type": "string" }, "receiverName": { + "description": "鏀惰揣浜哄鍚�", "type": "string" }, "receiverPhone": { + "description": "鑱旂郴鐢佃瘽", "type": "string" }, "remark": { + "description": "澶囨敞", "type": "string" }, "salesDetailsNumber": { + "description": "閿�鍞槑缁嗙紪鐮�", + "type": "string" + }, + "silkMarket": { + "description": "鍢夎仈浠撳偍娣诲姞 SilkMarket", "type": "string" }, "source": { + "description": "鏉ユ簮绯荤粺", "type": "string" }, "sourceNumber": { @@ -5345,9 +5544,15 @@ "type": "string" }, "warehouse": { - "$ref": "#/definitions/models.Warehouse" + "description": "浠撳簱淇℃伅", + "allOf": [ + { + "$ref": "#/definitions/models.Warehouse" + } + ] }, "warehouseId": { + "description": "浠撳簱id", "type": "integer" }, "waybillNumber": { @@ -5368,9 +5573,11 @@ "type": "number" }, "auxiliaryAmount": { + "description": "杈呭姪鏁伴噺", "type": "number" }, "auxiliaryUnit": { + "description": "杈呭姪鍗曚綅", "type": "string" }, "baseOperationType": { @@ -5412,7 +5619,7 @@ "type": "boolean" }, "operationId": { - "description": "鎿嶄綔id", + "description": "鎿嶄綔璁板綍id", "type": "integer" }, "product": { @@ -5428,11 +5635,20 @@ "type": "string" }, "remark": { + "description": "澶囨敞", "type": "string" }, "salePrice": { "description": "閿�鍞崟浠�", "type": "number" + }, + "silkMarket": { + "description": "鍢夎仈浠撳偍娣诲姞 SilkMarket銆丼ilkMarketClose", + "type": "string" + }, + "silkMarketClose": { + "description": "搴勫彛鍏抽棴", + "type": "string" }, "stockAmount": { "description": "搴撳瓨鏁伴噺锛岀洏鐐规椂鐢�", @@ -5451,9 +5667,11 @@ "type": "integer" }, "totalGrossWeight": { + "description": "鎬绘瘺閲�", "type": "number" }, "totalNetWeight": { + "description": "鎬诲噣閲�", "type": "number" }, "updateTime": { @@ -5574,6 +5792,64 @@ "type": "string" } } + }, + "models.SilkDict": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "dictType": { + "description": "瀛楀吀绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/models.SilkDictType" + } + ] + }, + "id": { + "type": "integer" + }, + "name": { + "description": "鍚嶇О", + "type": "string" + }, + "number": { + "description": "缂栧彿", + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.SilkDictType": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "DictTypeColor": "棰滆壊", + "DictTypeMarket": "搴勫彛", + "DictTypeSpec": "瑙勬牸", + "DictTypeWorkshop": "杞﹂棿" + }, + "x-enum-varnames": [ + "DictTypeMarket", + "DictTypeWorkshop", + "DictTypeColor", + "DictTypeSpec" + ] }, "models.SystemConfig": { "type": "object", @@ -5963,13 +6239,15 @@ "type": "object", "properties": { "accountant": { + "description": "浼氳鍚嶇О", "type": "string" }, "accountantId": { + "description": "浼氳id", "type": "string" }, "baseOperationType": { - "description": "鍩虹浣滀笟绫诲瀷 5搴撳瓨鐩樼偣", + "description": "鍩虹浣滀笟绫诲瀷 1 鍏ュ簱 2 鍑哄簱 3 鍐呴儴璋冩嫧 4 鎶ュ簾 5 搴撳瓨鐩樼偣", "allOf": [ { "$ref": "#/definitions/constvar.BaseOperationType" @@ -5997,15 +6275,19 @@ "type": "string" }, "custodian": { + "description": "淇濈鍛樺悕绉�", "type": "string" }, "custodianId": { + "description": "淇濈鍛榠d", "type": "string" }, "dealerType": { + "description": "璋冩嫧鍑哄叆搴撶被鍨�", "type": "string" }, "details": { + "description": "璇︽儏", "type": "array", "items": { "$ref": "#/definitions/request.OperationDetails" @@ -6019,6 +6301,7 @@ "type": "integer" }, "logisticCompanyId": { + "description": "鐗╂祦鍏徃id", "type": "string" }, "logisticWeight": { @@ -6026,9 +6309,11 @@ "type": "number" }, "manager": { + "description": "涓荤鍚嶇О", "type": "string" }, "managerId": { + "description": "涓荤id", "type": "string" }, "number": { @@ -6036,7 +6321,7 @@ "type": "string" }, "operationDate": { - "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" gorm:\"type:int;not null;comment:婧愪綅缃甶d\"` + "`" + ` //婧愪綅缃甶d\nToLocationId int ` + "`" + `json:\"toLocationId\" gorm:\"type:int;not null;comment:鐩爣浣嶇疆id\"` + "`" + ` //鐩爣浣嶇疆id", + "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" ` + "`" + ` //婧愪綅缃甶d\nToLocationId int ` + "`" + `json:\"toLocationId\" ` + "`" + ` //鐩爣浣嶇疆id", "type": "string" }, "operationTypeId": { @@ -6048,12 +6333,19 @@ "type": "string" }, "receiverAddr": { + "description": "鏀惰揣鍦板潃", "type": "string" }, "receiverName": { + "description": "鏀惰揣浜哄鍚�", "type": "string" }, "receiverPhone": { + "description": "鑱旂郴鐢佃瘽", + "type": "string" + }, + "silkMarket": { + "description": "搴勫彛", "type": "string" }, "sourceNumber": { @@ -6333,9 +6625,9 @@ "description": "姣忛〉澶у皬", "type": "integer" }, - "warehouseCode": { - "description": "浠撳簱缂╁啓", - "type": "string" + "warehouseId": { + "description": "WarehouseCode string ` + "`" + `json:\"warehouseCode\"` + "`" + ` //浠撳簱缂╁啓", + "type": "integer" } } }, @@ -6372,6 +6664,13 @@ }, "unit": { "description": "鍗曚綅", + "type": "string" + }, + "warehouseCode": { + "type": "string" + }, + "warehouseId": { + "description": "浠撳簱ID", "type": "string" } } @@ -6593,6 +6892,7 @@ "type": "object", "properties": { "number": { + "description": "鍗曞彿", "type": "string" }, "page": { @@ -6604,6 +6904,7 @@ "type": "integer" }, "sourceNumber": { + "description": "婧愬崟鍙�", "type": "string" } } @@ -6612,6 +6913,7 @@ "type": "object", "properties": { "condition": { + "description": "妯$硦鏌ヨ鏉′欢", "type": "string" }, "keyword": { @@ -6644,7 +6946,7 @@ "type": "integer" }, "amount": { - "description": "ProductName string ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:浜у搧鍚嶇О\"` + "`" + ` //浜у搧鍚嶇О", + "description": "ProductName string ` + "`" + `json:\"productName\" ` + "`" + ` //浜у搧鍚嶇О", "type": "number" }, "auxiliaryAmount": { @@ -6660,7 +6962,7 @@ "type": "number" }, "fromLocationId": { - "description": "Unit string ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:鍗曚綅\"` + "`" + ` //鍗曚綅\nProduct models.Material ` + "`" + `json:\"product\" gorm:\"foreignKey:ProductId;references:ID\"` + "`" + `", + "description": "Unit string ` + "`" + `json:\"unit\"` + "`" + ` //鍗曚綅\nProduct models.Material ` + "`" + `json:\"product\" ` + "`" + ` // 浜у搧", "type": "integer" }, "productId": { @@ -6668,11 +6970,20 @@ "type": "string" }, "remark": { + "description": "澶囨敞", "type": "string" }, "salePrice": { "description": "閿�鍞崟浠�", "type": "number" + }, + "silkMarket": { + "description": "搴勫彛", + "type": "string" + }, + "silkMarketClose": { + "description": "搴勫彛鍏抽棴", + "type": "string" }, "stockAmount": { "description": "搴撳瓨鏁伴噺锛岀洏鐐规椂鐢�", @@ -6696,7 +7007,7 @@ "type": "object", "properties": { "baseOperationType": { - "description": "1 鍏ュ簱 2 鍑哄簱 3 鍐呴儴璋冩嫧 4 鎶ュ簾 5 搴撳瓨鐩樼偣", + "description": "鍩虹浣滀笟绫诲瀷 1 鍏ュ簱 2 鍑哄簱 3 鍐呴儴璋冩嫧 4 鎶ュ簾 5 搴撳瓨鐩樼偣", "allOf": [ { "$ref": "#/definitions/constvar.BaseOperationType" @@ -6704,9 +7015,11 @@ ] }, "number": { + "description": "鍗曞彿", "type": "string" }, "operationTypeId": { + "description": "浣滀笟绫诲瀷id", "type": "integer" }, "page": { @@ -6718,7 +7031,12 @@ "type": "integer" }, "status": { - "$ref": "#/definitions/constvar.OperationStatus" + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/constvar.OperationStatus" + } + ] } } }, @@ -7034,9 +7352,11 @@ "type": "object", "properties": { "accountant": { + "description": "浼氳鍚嶇О", "type": "string" }, "accountantId": { + "description": "浼氳id", "type": "string" }, "baseOperationType": { @@ -7068,12 +7388,15 @@ "type": "string" }, "custodian": { + "description": "淇濈鍛樺悕绉�", "type": "string" }, "custodianId": { + "description": "淇濈鍛榠d", "type": "string" }, "details": { + "description": "璇︽儏", "type": "array", "items": { "$ref": "#/definitions/request.OperationDetails" @@ -7083,6 +7406,7 @@ "type": "integer" }, "inventoryDealerType": { + "description": "璋冩嫧鍑哄叆搴撳垎绫�(瀵瑰簲dict瀛楀吀琛ㄧ殑ID)", "type": "integer" }, "locationId": { @@ -7097,9 +7421,11 @@ "type": "number" }, "manager": { + "description": "涓荤鍚嶇О", "type": "string" }, "managerId": { + "description": "涓荤id", "type": "string" }, "number": { @@ -7107,7 +7433,7 @@ "type": "string" }, "operationDate": { - "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" gorm:\"type:int;not null;comment:婧愪綅缃甶d\"` + "`" + ` //婧愪綅缃甶d\nToLocationId int ` + "`" + `json:\"toLocationId\" gorm:\"type:int;not null;comment:鐩爣浣嶇疆id\"` + "`" + ` //鐩爣浣嶇疆id", + "description": "FromLocationId int ` + "`" + `json:\"fromLocationId\" ` + "`" + ` //婧愪綅缃甶d\nToLocationId int ` + "`" + `json:\"toLocationId\" ` + "`" + ` //鐩爣浣嶇疆id", "type": "string" }, "operationTypeId": { @@ -7119,12 +7445,19 @@ "type": "string" }, "receiverAddr": { + "description": "鏀惰揣鍦板潃", "type": "string" }, "receiverName": { + "description": "鏀惰揣浜哄鍚�", "type": "string" }, "receiverPhone": { + "description": "鑱旂郴鐢佃瘽", + "type": "string" + }, + "silkMarket": { + "description": "搴勫彛", "type": "string" }, "sourceNumber": { @@ -7288,8 +7621,16 @@ "description": "浜у搧id", "type": "string" }, + "productCategory": { + "description": "浜у搧绫诲埆", + "type": "string" + }, "productName": { "description": "浜у搧鍚嶇О", + "type": "string" + }, + "productSpecs": { + "description": "浜у搧瑙勬牸", "type": "string" }, "productType": { @@ -7369,6 +7710,29 @@ } } }, + "user.GetUserRequest": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nickName": { + "type": "string" + }, + "parentId": { + "type": "string" + }, + "pos": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "userType": { + "type": "integer" + } + } + }, "util.Response": { "type": "object", "properties": { -- Gitblit v1.8.0