From 63558d60419edd772f8f8c8b413326d4550783f0 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 07 三月 2024 14:53:26 +0800 Subject: [PATCH] 获取wms仓库和操作记录信息 --- docs/docs.go | 373 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 351 insertions(+), 22 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 55a08e3..4fda355 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -16,6 +16,112 @@ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { + "/code/getAutoCode": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "缂栫爜" + ], + "summary": "鑾峰彇鑷姩缂栫爜", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/code.CodeStandard" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + } + } + } + ] + } + } + } + } + }, + "/code/getCodeList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "缂栫爜" + ], + "summary": "鑾峰彇缂栫爜鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "codeStandID", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/code.CodeStandard" + } + } + } + } + ] + } + } + } + } + }, "/con/createContract": { "post": { "security": [ @@ -1096,7 +1202,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.GetById" + "$ref": "#/definitions/srm_model_common_request.GetById" } } ], @@ -1495,6 +1601,99 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"棰勮鎴愬姛\"}", "schema": { "type": "string" + } + } + } + } + }, + "/purchase/getOperationInfo/{id}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇鎿嶄綔淇℃伅", + "responses": { + "200": { + "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" + } + } + } + } + ] + } + } + } + } + }, + "/purchase/getWarehouseInfo": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇浠撳簱鍒楄〃", + "parameters": [ + { + "type": "integer", + "description": "閲囪喘鍗旾D", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" + } + } + } + } + ] } } } @@ -2188,7 +2387,8 @@ "in": "query" }, { - "type": "integer", + "type": "string", + "example": "0", "description": "涓婚敭ID", "name": "id", "in": "query" @@ -2349,7 +2549,8 @@ "in": "query" }, { - "type": "integer", + "type": "string", + "example": "0", "description": "涓婚敭ID", "name": "id", "in": "query" @@ -2915,6 +3116,69 @@ } }, "definitions": { + "code.CodeAuto": { + "type": "object", + "properties": { + "AutoLength": { + "type": "integer" + }, + "Desc": { + "type": "string" + }, + "PrefixMethod": { + "type": "integer" + }, + "PrefixValue": { + "type": "string" + }, + "SuffixMethod": { + "type": "integer" + } + } + }, + "code.CodeRule": { + "type": "object", + "properties": { + "Desc": { + "type": "string" + }, + "Length": { + "type": "integer" + }, + "Name": { + "type": "string" + } + } + }, + "code.CodeStandard": { + "type": "object", + "properties": { + "AutoRule": { + "$ref": "#/definitions/code.CodeAuto" + }, + "ID": { + "type": "string" + }, + "List": { + "type": "array", + "items": { + "$ref": "#/definitions/code.CodeRule" + } + }, + "Method": { + "type": "integer" + }, + "Name": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Type": { + "type": "string" + } + } + }, "config.CORS": { "type": "object", "properties": { @@ -3478,7 +3742,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "invoiceAmount": { "description": "宸叉敹绁ㄩ噾棰�", @@ -3521,7 +3786,7 @@ ] }, "principal": { - "description": "閲囪喘璐熻矗浜�", + "description": "浠撳簱璐熻矗浜�", "type": "string" }, "purchaseType": { @@ -3529,7 +3794,8 @@ }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", - "type": "integer" + "type": "string", + "example": "0" }, "quantity": { "description": "閲囪喘鏁伴噺", @@ -3551,6 +3817,10 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "sourceOrder": { + "description": "鏉ユ簮鍗曟嵁", + "type": "string" + }, "status": { "description": "鐘舵��", "allOf": [ @@ -3564,7 +3834,8 @@ }, "supplierId": { "description": "渚涘簲鍟唅d", - "type": "integer" + "type": "string", + "example": "0" }, "totalPrice": { "description": "浠风◣鍚堣", @@ -3579,6 +3850,10 @@ }, "warehouse": { "description": "鏀惰揣浠撳簱", + "type": "string" + }, + "warehouseAddress": { + "description": "鏀惰揣浠撳簱鍦板潃", "type": "string" }, "wholeDiscount": { @@ -3642,7 +3917,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘绫诲瀷", @@ -3676,6 +3952,34 @@ "WholeDiscountTypeDiscount" ] }, + "purchase_wms.SrmGetWarehouseInfoResponse": { + "type": "object", + "properties": { + "info": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase_wms.SrmWarehouseInfo" + } + } + } + }, + "purchase_wms.SrmWarehouseInfo": { + "type": "object", + "properties": { + "address": { + "description": "浠撳簱鍦板潃", + "type": "string" + }, + "name": { + "description": "浠撳簱鍚�", + "type": "string" + }, + "principal": { + "description": "浠撳簱璐熻矗浜�", + "type": "string" + } + } + }, "purchaserequest.AddPurchase": { "type": "object", "properties": { @@ -3703,7 +4007,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘鍚嶇О", @@ -3733,9 +4038,14 @@ } ] }, + "principal": { + "description": "浠撳簱璐熻矗浜�", + "type": "string" + }, "purchaseTypeId": { "description": "閲囪喘绫诲瀷id", - "type": "integer" + "type": "string", + "example": "0" }, "quantity": { "description": "閲囪喘鏁伴噺", @@ -3753,6 +4063,10 @@ "description": "绛剧害鏃ユ湡", "type": "string" }, + "sourceOrder": { + "description": "鏉ユ簮鍗曟嵁", + "type": "string" + }, "status": { "description": "鐘舵��", "allOf": [ @@ -3763,11 +4077,20 @@ }, "supplierId": { "description": "渚涘簲鍟唅d", - "type": "integer" + "type": "string", + "example": "0" }, "totalPrice": { "description": "浠风◣鍚堣", "type": "number" + }, + "warehouse": { + "description": "鏀惰揣浠撳簱", + "type": "string" + }, + "warehouseAddress": { + "description": "鏀惰揣浠撳簱鍦板潃", + "type": "string" }, "wholeDiscount": { "description": "鏁村崟鎶樻墸鍊�", @@ -3788,7 +4111,8 @@ "properties": { "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "name": { "description": "閲囪喘绫诲瀷", @@ -3815,15 +4139,6 @@ }, "purchase": { "$ref": "#/definitions/purchaserequest.Purchase" - } - } - }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" } } }, @@ -3978,6 +4293,10 @@ "purchasePrice": { "type": "number" }, + "remark": { + "description": "鎻忚堪", + "type": "string" + }, "shippingDuration": { "type": "integer" }, @@ -4016,6 +4335,15 @@ "data": {}, "msg": { "type": "string" + } + } + }, + "srm_model_common_request.GetById": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" } } }, @@ -4122,7 +4450,8 @@ }, "id": { "description": "涓婚敭ID", - "type": "integer" + "type": "string", + "example": "0" }, "industry": { "type": "string" -- Gitblit v1.8.0